李雨欣 8.28 19:51 查询订单信息接口迭代

master
liyuxin 2024-08-28 19:52:01 +08:00
parent 2447cb8af6
commit 836345a54e
4 changed files with 4 additions and 18 deletions

View File

@ -51,7 +51,6 @@ public class OrdersController {
@RequestMapping(path = "/orderSelect",method = RequestMethod.POST)
@Operation(summary = "查询订单",description = "根据接口查看订单信息")
public Result<List<OrdersSelectResp>> findByorderList(@RequestBody OrdersSelectResp ordersSelectResp){
return Result.success(orderService.findByorderList(ordersSelectResp));
}

View File

@ -1,19 +1,15 @@
package com.muyu.market.server.service.Impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.market.admain.Orders;
import com.muyu.market.admain.Product;
import com.muyu.market.admain.response.OrdersSelectResp;
import com.muyu.market.server.mapper.OrdersMapper;
import com.muyu.market.server.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import com.muyu.common.security.utils.SecurityUtils;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.Date;
import java.util.List;
import java.util.UUID;

View File

@ -23,13 +23,10 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
@Override
public List<ProductListResp> findByproductList(ProductListResp productListResp) {
LambdaQueryWrapper<Product> lambdaQueryWrapperlist = new LambdaQueryWrapper<>();
/**
*
*/
if (StringUtils.isNotBlank(productListResp.getProductName())) {
lambdaQueryWrapperlist.like(Product::getProductName, productListResp.getProductName());
}
@ -42,7 +39,6 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
Product::getProductPrice,productListResp.getBegin()
);
}
/**
*
* le(<=)
@ -52,9 +48,6 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
Product::getProductPrice,productListResp.getEnd()
);
}
List<Product> productlist = this.list(lambdaQueryWrapperlist);
// return productlist.stream()

View File

@ -15,9 +15,7 @@
<result property="updateTime" column="update_time" />
<result property="note" column="note" />
</resultMap>
<select id="findByorderList" resultMap="OrderDetailDTOMap">
<select id="findByorderList" resultType="com.muyu.market.admain.response.OrdersSelectResp">
SELECT
orders.*,
sys_user.user_name,