|
|
|
@ -103,7 +103,7 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
|
|
|
|
|
public JSONArray customList(String userId,String type){
|
|
|
|
|
JSONArray jsonArray = new JSONArray();
|
|
|
|
|
|
|
|
|
|
Wrapper<Custom> miniUserId = new EntityWrapper<Custom>().eq("mini_user_id", userId);
|
|
|
|
|
Wrapper<Custom> miniUserId = new EntityWrapper<Custom>().eq("mini_user_id", userId).ne("status_code","logout");
|
|
|
|
|
if(null==type){
|
|
|
|
|
|
|
|
|
|
}else if(type.equals("todo")){
|
|
|
|
@ -115,7 +115,7 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
|
|
|
|
|
}
|
|
|
|
|
List<Custom> customs = customMapper.selectList(miniUserId);
|
|
|
|
|
for(Custom custom:customs){
|
|
|
|
|
List<CustomSupport> customSupports = customSupportMapper.selectList(new EntityWrapper<CustomSupport>().eq("custom_id", custom.getId()).ne("status_code","logout"));
|
|
|
|
|
List<CustomSupport> customSupports = customSupportMapper.selectList(new EntityWrapper<CustomSupport>().eq("custom_id", custom.getId()));
|
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
|
jsonObject.put("custom",custom);
|
|
|
|
|
jsonObject.put("customSupports",customSupports);
|
|
|
|
|