|
|
@@ -243,9 +243,9 @@ public class WxServiceImpl implements IWxService { |
|
|
|
if(StringUtils.isEmpty(wxMessageRequest.getInspectionId())){ |
|
|
|
return JsonResult.error(WeiXinRequestEnum.INSPECTION_ID_IS_NULL.getCode(),WeiXinRequestEnum.INSPECTION_ID_IS_NULL.getMsg()); |
|
|
|
} |
|
|
|
// if(StringUtils.isEmpty(wxMessageRequest.getQuestionId())){ |
|
|
|
// return JsonResult.error(WeiXinRequestEnum.QUESTION_ID_IS_NULL.getCode(),WeiXinRequestEnum.QUESTION_ID_IS_NULL.getMsg()); |
|
|
|
// } |
|
|
|
if(StringUtils.isEmpty(wxMessageRequest.getDeptId())){ |
|
|
|
return JsonResult.error(WeiXinRequestEnum.DEPT_ID_IS_NULL.getCode(),WeiXinRequestEnum.DEPT_ID_IS_NULL.getMsg()); |
|
|
|
} |
|
|
|
if(StringUtils.isEmpty(wxMessageRequest.getCreateTime())){ |
|
|
|
return JsonResult.error(WeiXinRequestEnum.CREATE_TIME_IS_NULL.getCode(),WeiXinRequestEnum.CREATE_TIME_IS_NULL.getMsg()); |
|
|
|
} |
|
|
@@ -258,7 +258,7 @@ public class WxServiceImpl implements IWxService { |
|
|
|
//根据租户id查询用户列表 |
|
|
|
List<User> users = userMapper.selectList(Wrappers.<User>lambdaQuery() |
|
|
|
.eq(User::getMark, MarkEnum.VALID.getCode()) |
|
|
|
.eq(User::getTenantId, wxMessageRequest.getTenantId()) |
|
|
|
.eq(User::getDeptId, wxMessageRequest.getDeptId()) |
|
|
|
.eq(User::getStatus, 1)); |
|
|
|
if(CollectionUtil.isEmpty(users) || users.size() == 0){ |
|
|
|
return JsonResult.error("此租户下没有用户"); |