|
|
@@ -1,7 +1,8 @@
|
|
|
package com.ruoyi.app.mendian;
|
|
|
|
|
|
+import cn.hutool.json.JSONObject;
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
@@ -196,6 +197,8 @@ public class PosStoreController extends BaseController {
|
|
|
posStoreEnrichService.enrichStoreList(stores);
|
|
|
StoreOutput storeOutput = new StoreOutput();
|
|
|
BeanUtils.copyProperties(stores.getFirst(), storeOutput);
|
|
|
+ JSONObject json = JSONUtil.parseObj(storeOutput, false);
|
|
|
+ json.set("collect", !list.isEmpty() ? 1 : 0);
|
|
|
return success(storeOutput);
|
|
|
|
|
|
}
|