Merge branch 'ww' into test

# Conflicts:
#	src/main/java/com/chaozhanggui/system/cashierservice/dao/TbActivateInRecordMapper.java
#	src/main/java/com/chaozhanggui/system/cashierservice/service/impl/TbActivateInRecordServiceImpl.java
#	src/main/resources/mapper/TbActivateInRecordMapper.xml
This commit is contained in:
2024-08-23 10:06:27 +08:00
4 changed files with 3 additions and 10 deletions

View File

@@ -2,9 +2,7 @@ package com.chaozhanggui.system.cashierservice.dao;
import com.chaozhanggui.system.cashierservice.entity.TbActivateInRecord;
import com.chaozhanggui.system.cashierservice.entity.TbProduct;
import com.chaozhanggui.system.cashierservice.entity.vo.VipProductsLimits;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;

View File

@@ -821,7 +821,7 @@ public class CartService {
} catch (Exception e) {
log.info("长链接错误 addCart{}", e.getMessage());
log.info("长链接错误 createOrder{}", e.getMessage());
e.printStackTrace();
}
}

View File

@@ -35,11 +35,6 @@ public class TbActivateInRecordServiceImpl implements TbActivateInRecordService
@Override
public List<TbProduct> queryByVipIdAndShopId(Integer vipUserId, Integer shopId) {
// List<TbProduct> tbProducts = tbActivateInRecordMapper.queryByVipIdAndShopId(vipUserId, shopId);
// for (TbProduct tbProduct : tbProducts) {
// tbProduct.setLimitNumber(tbActivateInRecordMapper.queryByVipIdAndShopIdAndProId(vipUserId, shopId,tbProduct.getId()));
// }
// return tbProducts;
return tbActivateInRecordMapper.queryByVipIdAndShopId(vipUserId, shopId);
}

View File

@@ -53,9 +53,9 @@
<include refid="Base_Column_List"/>
from tb_activate_in_record
WHERE
vip_user_id = #{id}
vip_user_id = #{vipUserId}
and shop_id = #{shopId}
and pro_id = #{proId}
and pro_id = #{productId}
and over_num > 0
order by create_time
</select>