|
|
|
@ -386,9 +386,15 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
|
|
|
|
|
return jsonObject;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public JSONObject queryCustomCount(){
|
|
|
|
|
public JSONObject queryCustomCount(String copycatId){
|
|
|
|
|
Integer todoCount = customMapper.selectCount(new EntityWrapper<Custom>().eq("status_code", "todo"));
|
|
|
|
|
Integer disableCount = customMapper.selectCount(new EntityWrapper<Custom>().eq("status_code", "disable"));
|
|
|
|
|
Integer disableCount = 0;
|
|
|
|
|
if(null!=copycatId){
|
|
|
|
|
disableCount = customMapper.selectCount(new EntityWrapper<Custom>().eq("status_code", "disable").eq("copycat_id",copycatId));
|
|
|
|
|
}else {
|
|
|
|
|
disableCount = customMapper.selectCount(new EntityWrapper<Custom>().eq("status_code", "disable"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
|
jsonObject.put("todoCount",todoCount);
|
|
|
|
|
jsonObject.put("disableCount",disableCount);
|
|
|
|
|