|
@ -78,22 +78,6 @@ public class EpidemicUserInfoServiceImpl extends CrudServiceImpl<EpidemicUserInf |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public PageData<EpidemicRecordListDTO> getPageList(Map<String, Object> params) { |
|
|
public PageData<EpidemicRecordListDTO> getPageList(Map<String, Object> params) { |
|
|
// 查询项的年龄段和公司处理为list,用于sql查询,没有改查询条件则删除key,防止sql报错
|
|
|
|
|
|
if (params.containsKey("age")) { |
|
|
|
|
|
if (StringUtils.isNotBlank(params.get("age").toString())) { |
|
|
|
|
|
params.put("age", new ArrayList<>(Arrays.asList(params.get("age").toString().split(",")))); |
|
|
|
|
|
} else { |
|
|
|
|
|
params.put("age", null); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (params.containsKey("company")) { |
|
|
|
|
|
if (StringUtils.isNotBlank(params.get("company").toString())) { |
|
|
|
|
|
params.put("company", new ArrayList<>(Arrays.asList(params.get("company").toString().split(",")))); |
|
|
|
|
|
} else { |
|
|
|
|
|
params.put("company", null); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
IPage<EpidemicRecordListDTO> page = getPage(params); |
|
|
IPage<EpidemicRecordListDTO> page = getPage(params); |
|
|
List<EpidemicRecordListDTO> list = baseDao.getEpidemicUserRecordList(params); |
|
|
List<EpidemicRecordListDTO> list = baseDao.getEpidemicUserRecordList(params); |
|
|
for (EpidemicRecordListDTO eru : list) { |
|
|
for (EpidemicRecordListDTO eru : list) { |
|
@ -383,9 +367,9 @@ public class EpidemicUserInfoServiceImpl extends CrudServiceImpl<EpidemicUserInf |
|
|
@Override |
|
|
@Override |
|
|
public List<EpidemicRecordListDTO> getList(Map<String, Object> params) { |
|
|
public List<EpidemicRecordListDTO> getList(Map<String, Object> params) { |
|
|
// params.put("deptIdList", SecurityUser.getUser().getDeptIdList());
|
|
|
// params.put("deptIdList", SecurityUser.getUser().getDeptIdList());
|
|
|
params.put("age", new ArrayList<>()); |
|
|
// params.put("age", new ArrayList<>());
|
|
|
params.put("company", new ArrayList<>()); |
|
|
// params.put("company", new ArrayList<>());
|
|
|
// for (EpidemicRecordListDTO eru : list) {
|
|
|
// for (EpidemicRecordListDTO eru : list) {
|
|
|
// eru.setIdCard(idEncrypt(eru.getIdCard()));
|
|
|
// eru.setIdCard(idEncrypt(eru.getIdCard()));
|
|
|
// eru.setMobile(mobileEncrypt(eru.getMobile()));
|
|
|
// eru.setMobile(mobileEncrypt(eru.getMobile()));
|
|
|
// eru.setUserName(nameDesensitization(eru.getUserName()));
|
|
|
// eru.setUserName(nameDesensitization(eru.getUserName()));
|
|
|