|
@@ -99,6 +99,7 @@ public class KuaiShouActivityItemListServiceImpl extends ServiceImpl<KuaiShouAct
|
|
|
}
|
|
|
|
|
|
Integer itemStatus = jsonObject.getInteger("itemStatus");
|
|
|
+ Integer itemAuditStatus = jsonObject.getInteger("itemAuditStatus"); // 5 失效
|
|
|
item.setItemStatus(itemStatus);
|
|
|
item.setActivityShowContactTypeList(jsonObject.getString("activityShowContactTypeList"));
|
|
|
item.setIdentity(jsonObject.getInteger("identity"));
|
|
@@ -123,9 +124,9 @@ public class KuaiShouActivityItemListServiceImpl extends ServiceImpl<KuaiShouAct
|
|
|
} else if (activityStatus == 3) { // 招商活动正常
|
|
|
Integer status = itemMap.get(itemId);
|
|
|
if (!Check.isNull(status)) { // 0 下架 1在售
|
|
|
- if (itemStatus == 0) {
|
|
|
+ if (itemStatus == 0 || itemAuditStatus == 5) {
|
|
|
activityItemListMapper.updateItemStatusByItem(itemId, 5); // 商品失效
|
|
|
- } else if (itemStatus == 1) {
|
|
|
+ } else {
|
|
|
activityItemListMapper.updateItemStatusByItem(itemId, 2); // 商品在售
|
|
|
}
|
|
|
}
|