Commit 518f6ac3 by 墨竹

refactor:增加判断

parent 7d6ba97a
...@@ -259,7 +259,9 @@ public class DepartmentServiceImpl implements DepartmentService { ...@@ -259,7 +259,9 @@ public class DepartmentServiceImpl implements DepartmentService {
@Override @Override
public List<TabHaobanDepartment> listByChainId(String chainId, String wxEnterpriseId) { public List<TabHaobanDepartment> listByChainId(String chainId, String wxEnterpriseId) {
if (StringUtils.isBlank(chainId)) {
return null;
}
return mapper.listByChainId(chainId, wxEnterpriseId); return mapper.listByChainId(chainId, wxEnterpriseId);
} }
......
...@@ -446,7 +446,7 @@ ...@@ -446,7 +446,7 @@
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from tab_haoban_department from tab_haoban_department
where wx_enterprise_id = #{wxEnterpriseId} where wx_enterprise_id = #{wxEnterpriseId}
and chain_id like CONCAT(#{chainId},'%') and chain_id like CONCAT('%', #{chainId},'%')
and status_flag = 1 and status_flag = 1
</select> </select>
......
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