|
|
@ -83,11 +83,13 @@ public class ReportPartyServiceImpl extends BaseServiceImpl<ReportPartyDao, Repo |
|
|
|
String name = (String) params.get(FieldConstant.NAME_HUMP); |
|
|
|
String idCard = (String) params.get(FieldConstant.ID_CARD_HUMP); |
|
|
|
String mobile = (String) params.get(FieldConstant.MOBILE_HUMP); |
|
|
|
String deptId = (String) params.get("deptId"); |
|
|
|
QueryWrapper<ReportPartyEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
|
wrapper.like(StringUtils.isNotBlank(name), FieldConstant.NAME_HUMP, name); |
|
|
|
wrapper.like(StringUtils.isNotBlank(idCard), FieldConstant.ID_CARD, idCard); |
|
|
|
wrapper.like(StringUtils.isNotBlank(mobile), FieldConstant.MOBILE_HUMP, mobile); |
|
|
|
wrapper.likeLeft(StringUtils.isNotBlank(deptId), "PARENT_DEPT_IDS", deptId); |
|
|
|
return wrapper; |
|
|
|
} |
|
|
|
|
|
|
@ -172,7 +174,7 @@ public class ReportPartyServiceImpl extends BaseServiceImpl<ReportPartyDao, Repo |
|
|
|
|
|
|
|
@Override |
|
|
|
public int findByIdCardAndName(String idCard, String name) { |
|
|
|
return baseDao.findByIdCardAndName(idCard, name); |
|
|
|
return baseDao.findByIdCardAndName(idCard, name); |
|
|
|
} |
|
|
|
|
|
|
|
private void setDeptId(ReportPartyDTO dto) { |
|
|
@ -181,5 +183,4 @@ public class ReportPartyServiceImpl extends BaseServiceImpl<ReportPartyDao, Repo |
|
|
|
dto.setDeptId(user.getDeptId()); |
|
|
|
dto.setAllDeptIds(new String[]{deptId}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|