|
@ -65,6 +65,7 @@ public class ChangeDeathServiceImpl extends BaseServiceImpl<ChangeDeathDao, Chan |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public PageData<ChangeDeathDTO> page(Map<String, Object> params) { |
|
|
public PageData<ChangeDeathDTO> page(Map<String, Object> params) { |
|
|
|
|
|
params.put("customerId", loginUserUtil.getLoginUserCustomerId()); |
|
|
IPage<ChangeDeathDTO> page = getPage(params); |
|
|
IPage<ChangeDeathDTO> page = getPage(params); |
|
|
List<ChangeDeathDTO> list = baseDao.getDeathList(params); |
|
|
List<ChangeDeathDTO> list = baseDao.getDeathList(params); |
|
|
return new PageData<>(list, page.getTotal()); |
|
|
return new PageData<>(list, page.getTotal()); |
|
@ -72,6 +73,7 @@ public class ChangeDeathServiceImpl extends BaseServiceImpl<ChangeDeathDao, Chan |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<ChangeDeathDTO> list(Map<String, Object> params) { |
|
|
public List<ChangeDeathDTO> list(Map<String, Object> params) { |
|
|
|
|
|
params.put("customerId", loginUserUtil.getLoginUserCustomerId()); |
|
|
List<ChangeDeathEntity> entityList = baseDao.selectList(getWrapper(params)); |
|
|
List<ChangeDeathEntity> entityList = baseDao.selectList(getWrapper(params)); |
|
|
|
|
|
|
|
|
return ConvertUtils.sourceToTarget(entityList, ChangeDeathDTO.class); |
|
|
return ConvertUtils.sourceToTarget(entityList, ChangeDeathDTO.class); |
|
@ -84,6 +86,7 @@ public class ChangeDeathServiceImpl extends BaseServiceImpl<ChangeDeathDao, Chan |
|
|
String mobile = (String) params.get("mobile"); |
|
|
String mobile = (String) params.get("mobile"); |
|
|
String startTime = (String) params.get("startTime"); |
|
|
String startTime = (String) params.get("startTime"); |
|
|
String endTime = (String) params.get("endTime"); |
|
|
String endTime = (String) params.get("endTime"); |
|
|
|
|
|
String customerId = (String) params.get("customerId"); |
|
|
|
|
|
|
|
|
QueryWrapper<ChangeDeathEntity> wrapper = new QueryWrapper<>(); |
|
|
QueryWrapper<ChangeDeathEntity> wrapper = new QueryWrapper<>(); |
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
@ -92,6 +95,7 @@ public class ChangeDeathServiceImpl extends BaseServiceImpl<ChangeDeathDao, Chan |
|
|
wrapper.eq(StringUtils.isNotBlank(mobile), "MOBILE", mobile); |
|
|
wrapper.eq(StringUtils.isNotBlank(mobile), "MOBILE", mobile); |
|
|
wrapper.ge(StringUtils.isNotBlank(startTime), "DEATH_DATE", startTime); |
|
|
wrapper.ge(StringUtils.isNotBlank(startTime), "DEATH_DATE", startTime); |
|
|
wrapper.le(StringUtils.isNotBlank(endTime), "DEATH_DATE", endTime); |
|
|
wrapper.le(StringUtils.isNotBlank(endTime), "DEATH_DATE", endTime); |
|
|
|
|
|
wrapper.eq(StringUtils.isNotBlank(customerId), "CUSTOMER_ID", customerId); |
|
|
|
|
|
|
|
|
return wrapper; |
|
|
return wrapper; |
|
|
} |
|
|
} |
|
|