|
|
@@ -197,9 +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(json);
|
|
|
+ storeOutput.setCollect(!list.isEmpty() ? 1 : 0);
|
|
|
+ return success(storeOutput);
|
|
|
|
|
|
}
|
|
|
|