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;