查询问题

This commit is contained in:
2025-12-19 16:13:00 +08:00
parent 8a918cc0c0
commit 903121aa61
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@
detail.shop_id = #{shopId} detail.shop_id = #{shopId}
and detail.is_del = 0 and detail.is_del = 0
<if test="param.orderNo != null"> <if test="param.orderNo != null">
and detail.order_no = #{param.orderNo} and detail.order_no LIKE CONCAT('%', #{param.orderNo}, '%')
</if> </if>
<if test="param.groupOrderNo != null"> <if test="param.groupOrderNo != null">
AND detail.group_order_no = #{param.groupOrderNo} AND detail.group_order_no = #{param.groupOrderNo}
@@ -79,7 +79,7 @@
order by order by
<if test="param.status != null"> <if test="param.status != null">
<if test="param.status == '退款'"> <if test="param.status == '退款'">
detail.`status` desc,detail.pay_time desc detail.`status` desc,detail.pay_time desc,
</if> </if>
</if> </if>
detail.create_time desc detail.create_time desc

View File

@@ -252,7 +252,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
@PostConstruct @PostConstruct
public void initProductListCache() { public void initProductListCache() {
log.info("系统启动后初始化商品列表缓存,开始..."); log.info("系统启动后初始化商品列表缓存,开始...");
List<Long> shopIdList = DbChain.table("tb_shop_info").select("id").objListAs(Long.class); List<Long> shopIdList = DbChain.table("tb_shop_info").select("id").listAs(Long.class);
for (Long shopId : shopIdList) { for (Long shopId : shopIdList) {
log.info("商品列表缓存>>当前店铺:{}", shopId); log.info("商品列表缓存>>当前店铺:{}", shopId);
ProductDTO dto = new ProductDTO(); ProductDTO dto = new ProductDTO();