|
@@ -114,9 +114,12 @@ public class KuaiShouActivityItemListServiceImpl extends ServiceImpl<KuaiShouAct
|
|
|
item.setSampleApplyType(jsonObject.getString("sampleApplyType"));
|
|
|
if (activityStatus == 4) { // 招商活动结束
|
|
|
Integer status = itemMap.get(itemId);
|
|
|
- if (status != 4) {
|
|
|
- activityItemListMapper.updateItemStatusByItem(itemId, 4); // 招商活动失效,修改商品状态为活动结束
|
|
|
+ if (!Check.isNull(status)) {
|
|
|
+ if (status != 4) {
|
|
|
+ activityItemListMapper.updateItemStatusByItem(itemId, 4); // 招商活动失效,修改商品状态为活动结束
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
} else if (activityStatus == 3) { // 招商活动正常
|
|
|
Integer status = itemMap.get(itemId);
|
|
|
if (!Check.isNull(status)) { // 0 下架 1在售
|