|
|
@ -73,7 +73,6 @@ public class EpidemicReportUserInfoServiceImpl extends CrudServiceImpl<EpidemicR |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<EpidemicReportUserInfoDTO> page(Map<String, Object> params) { |
|
|
|
// params.put("deptIdList", SecurityUser.getUser().getDeptIdList());
|
|
|
|
IPage<EpidemicReportUserInfoDTO> page = getPage(params); |
|
|
|
List<EpidemicReportUserInfoDTO> list = baseDao.getEpidemicUserInfoList(params); |
|
|
|
for (EpidemicReportUserInfoDTO eru : list) { |
|
|
@ -88,34 +87,6 @@ public class EpidemicReportUserInfoServiceImpl extends CrudServiceImpl<EpidemicR |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result updateUserInfo(EpidemicUserInfoUpdateDTO dto) { |
|
|
|
// //1.校验 身份证号
|
|
|
|
// String idCard = dto.getIdCard();
|
|
|
|
// //手机号
|
|
|
|
// String mobile = dto.getMobile();
|
|
|
|
// Long id = dto.getId();
|
|
|
|
// if (StringUtils.isEmpty(idCard)) {
|
|
|
|
// return new Result().error("请输入身份证号");
|
|
|
|
// }
|
|
|
|
// if (StringUtils.isEmpty(mobile)) {
|
|
|
|
// return new Result().error("请输入手机号");
|
|
|
|
// }
|
|
|
|
// String s = fixAndCheckIdentityNo(idCard);
|
|
|
|
// dto.setIdCard(s);
|
|
|
|
// //2、根据身份证号,手机号进行唯一性判断
|
|
|
|
// List<EpidemicReportUserInfoEntity> list = baseDao.selectUserInfoByNumber(id,mobile,idCard);
|
|
|
|
// if (list.size() >0) {
|
|
|
|
// if (StringUtils.isNotBlank(mobile)) {
|
|
|
|
// for (EpidemicReportUserInfoEntity entity : list) {
|
|
|
|
// if (!id.equals(entity.getId())) {
|
|
|
|
// if (StringUtils.isNotBlank(entity.getMobile()) && mobile.equals(entity.getMobile())) {
|
|
|
|
// throw new RenException("手机号码已被注册");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// throw new RenException("身份证号码已被注册");
|
|
|
|
// }
|
|
|
|
|
|
|
|
EpidemicReportUserInfoDTO infoDTO = new EpidemicReportUserInfoDTO(); |
|
|
|
BeanUtils.copyProperties(dto, infoDTO); |
|
|
|
this.update(infoDTO); |
|
|
@ -187,7 +158,6 @@ public class EpidemicReportUserInfoServiceImpl extends CrudServiceImpl<EpidemicR |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<EpidemicReportUserInfoDTO> list(Map<String, Object> params) { |
|
|
|
// params.put("deptIdList", SecurityUser.getUser().getDeptIdList());
|
|
|
|
List<EpidemicReportUserInfoDTO> list = baseDao.getEpidemicUserInfoList(params); |
|
|
|
for (EpidemicReportUserInfoDTO eru : list) { |
|
|
|
eru.setIdCard(idEncrypt(eru.getIdCard())); |
|
|
@ -673,10 +643,7 @@ public class EpidemicReportUserInfoServiceImpl extends CrudServiceImpl<EpidemicR |
|
|
|
*/ |
|
|
|
private Boolean checkNullCell(EpidemicReportUserInfoAllExcel infoAllExcel) { |
|
|
|
// 校验必填项 (用户名、身份证号)
|
|
|
|
if (StringUtils.isBlank(infoAllExcel.getUserName()) || StringUtils.isBlank(infoAllExcel.getIdCard())) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
return StringUtils.isBlank(infoAllExcel.getUserName()) || StringUtils.isBlank(infoAllExcel.getIdCard()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|