|
|
@@ -112,9 +112,9 @@ public class CmsGroupServiceImpl extends ServiceImpl<GroupsMapper,GroupsTrips> i
|
|
|
.last("limit 1"));
|
|
|
if (alertCount > 0) {
|
|
|
alertMapper.update(null, Wrappers.lambdaUpdate(GroupsRelationAlert.class)
|
|
|
- .set(GroupsRelationAlert::getIsRest, true)
|
|
|
+ .set(GroupsRelationAlert::getIsReset, true)
|
|
|
.eq(GroupsRelationAlert::getSkuId, sku.getId())
|
|
|
- .eq(GroupsRelationAlert::getIsRest, false));
|
|
|
+ .eq(GroupsRelationAlert::getIsReset, false));
|
|
|
}
|
|
|
return groups;
|
|
|
}
|
|
|
@@ -278,9 +278,9 @@ public class CmsGroupServiceImpl extends ServiceImpl<GroupsMapper,GroupsTrips> i
|
|
|
.last("limit 1"));
|
|
|
if (alertCount > 0) {
|
|
|
alertMapper.update(null, Wrappers.lambdaUpdate(GroupsRelationAlert.class)
|
|
|
- .set(GroupsRelationAlert::getIsRest, true)
|
|
|
+ .set(GroupsRelationAlert::getIsReset, true)
|
|
|
.eq(GroupsRelationAlert::getSkuId, sku.getId())
|
|
|
- .eq(GroupsRelationAlert::getIsRest, false));
|
|
|
+ .eq(GroupsRelationAlert::getIsReset, false));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -371,6 +371,7 @@ public class CmsGroupServiceImpl extends ServiceImpl<GroupsMapper,GroupsTrips> i
|
|
|
public Integer getAvailableRelation(Long goodsId, Long skuId) {
|
|
|
//chatGPT
|
|
|
GoodsDonSku sku = skuMapper.selectById(skuId);
|
|
|
+ goodsId = sku.getGoodsId();
|
|
|
Integer skuNum = sku.getNum();
|
|
|
if (Constant.AI_goodsIds.contains(sku.getGoodsId()) && sku.getNum() > 1) {
|
|
|
Integer extraNum = Constant.AI_EXTRACT_NUM;
|