Commit 36c4e672 by 陶光胜

企业微信取消授权回调处理

parent cbc33671
......@@ -25,7 +25,7 @@ public interface DepartmentMapper {
int selectMaxSort(@Param("parentDepartmentId")String parentDepartmentId);
TabHaobanDepartment selectByRelatedId(@Param("relatedId")String relatedId);
List<TabHaobanDepartment> selectByRelatedId(@Param("relatedId")String relatedId);
List<TabHaobanDepartment> getByWxId(@Param("wxDepartmentId")String wxDepartmentId, @Param("wxEnterpriseId") String wxEnterpriseId);
......
......@@ -79,7 +79,11 @@ public class DepartmentServiceImpl implements DepartmentService {
@Override
public TabHaobanDepartment selectByRelatedId(String relatedId) {
return mapper.selectByRelatedId(relatedId);
List<TabHaobanDepartment> list = mapper.selectByRelatedId(relatedId);
if(CollectionUtils.isNotEmpty(list)){
return list.get(0);
}
return null;
}
@Override
......
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