霸王餐报错修复

This commit is contained in:
张松 2025-11-05 14:19:47 +08:00
parent dafc70aea4
commit 608921b366
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@ import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboReference; import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService; import org.apache.dubbo.config.annotation.DubboService;
import java.util.ArrayList;
/** /**
* 霸王餐配置信息表 服务层实现 * 霸王餐配置信息表 服务层实现
* *
@ -61,7 +63,7 @@ public class FreeDineConfigServiceImpl extends ServiceImpl<FreeDineConfigMapper,
config.setShopIdList(JSONArray.toJSONString(freeDineConfigEditDTO.getShopIdList())); config.setShopIdList(JSONArray.toJSONString(freeDineConfigEditDTO.getShopIdList()));
} }
shopConfigService.editStatusByShopIdList(config.getShopId(), freeDineConfigEditDTO.getEnable() ? 1 : 0,true, "is_account_ay", freeDineConfigEditDTO.getUseShopType(), freeDineConfigEditDTO.getShopIdList()); shopConfigService.editStatusByShopIdList(config.getShopId(), freeDineConfigEditDTO.getEnable() ? 1 : 0,true, "is_account_ay", freeDineConfigEditDTO.getUseShopType(), freeDineConfigEditDTO.getShopIdList() == null ? new ArrayList<>() : freeDineConfigEditDTO.getShopIdList());
if (freeDineConfigEditDTO.getUseType() != null) { if (freeDineConfigEditDTO.getUseType() != null) {
config.setUseType(JSONObject.toJSONString(freeDineConfigEditDTO.getUseType())); config.setUseType(JSONObject.toJSONString(freeDineConfigEditDTO.getUseType()));
} }