From 66393f86a08d3031ca97f5ffcb22a3af828759c5 Mon Sep 17 00:00:00 2001 From: ky <592468495@qq.com> Date: Mon, 11 May 2020 17:20:48 +0800 Subject: [PATCH] p --- .../java/com/gszc/service/impl/CustomServiceImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gszc/service/impl/CustomServiceImpl.java b/src/main/java/com/gszc/service/impl/CustomServiceImpl.java index fcc461a..2563c5b 100644 --- a/src/main/java/com/gszc/service/impl/CustomServiceImpl.java +++ b/src/main/java/com/gszc/service/impl/CustomServiceImpl.java @@ -365,9 +365,17 @@ public class CustomServiceImpl extends ServiceImpl impleme */ public JSONObject pcMessage(String copycatId){ JSONObject jsonObject = new JSONObject(); - Integer count = customMapper.selectCount(new EntityWrapper().eq("status_code", "todo").eq("copycat_id",copycatId)); + Integer count = customMapper.selectCount(new EntityWrapper().eq("status_code", "disable").eq("copycat_id",copycatId)); + List customs = customMapper.selectList(new EntityWrapper().eq("status_code", "disable").eq("copycat_id", copycatId)); + JSONArray jsonArray = new JSONArray(); + for(Custom custom:customs){ + jsonArray.add(custom.getId()); + } if(count>0){ jsonObject.put("haveNew",true); + jsonObject.put("idList",jsonArray); + }else{ + jsonObject.put("haveNew",false); } jsonObject.put("count",count); return jsonObject;