Commit 06826390 by 墨竹

feat:报错调整

parent c42095e1
......@@ -163,7 +163,6 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
@Override
public ServiceResponse bindStaffClerk(StaffClerkRelationDTO staffClerkRelationDTO, String optStaffId, int channelCode) {
logger.info("绑定clerk:{}", JSONObject.toJSONString(staffClerkRelationDTO));
ServiceResponse<Object> response = new ServiceResponse<>();
StaffClerkRelationDTO relationDTO = staffClerkRelationService.getBindByClerkId(staffClerkRelationDTO.getClerkId(), staffClerkRelationDTO.getWxEnterpriseId());
if (null != relationDTO) {
return ServiceResponse.failure("2","已经被绑定,不能绑定");
......@@ -192,8 +191,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
}
String relationId = staffClerkRelationService.bind(staffClerkRelationDTO, optStaffId, channelCode);
response.setResult(relationId);
return response;
return ServiceResponse.success(relationId);
}
@Override
......@@ -212,7 +210,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
@Override
public List<StaffClerkRelationDTO> listByClerkIds(List<String> clerkIds) {
if (CollectionUtil.isEmpty(clerkIds)) {
return Collections.EMPTY_LIST;
return Collections.emptyList();
}
return tabHaobanStaffClerkRelationMapper.listByClerkIds(clerkIds);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment