修改参数

This commit is contained in:
WenG 2022-03-17 16:52:40 +08:00
parent 6a3c2b537e
commit 6064a76d2d

View File

@ -384,7 +384,8 @@ public class DepartmentServiceImpl extends DefaultBaseService implements IDepart
public List<ZTreeDTO> listZTreeByAreaCodeAndParentIdAndType(String departmentAreaCode, String departmentParentId, Integer departmentType) {
Map<String, Object> params = getHashMap(8);
if (StringUtils.isBlank(departmentParentId) || StringUtils.equals(departmentParentId, "0")) {
params.put("departmentAreaCode", departmentAreaCode);
// params.put("departmentAreaCode", departmentAreaCode);
params.put("departmentAreaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(departmentAreaCode, '0', 3));
} else {
params.put("departmentAreaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(departmentAreaCode, '0', 3));
params.put("departmentParentId", departmentParentId);