|
@ -87,7 +87,7 @@ public class WorkdiaryServiceRecordServiceImpl extends BaseServiceImpl<Workdiary |
|
|
query.like(StringUtils.isNotBlank(applicantMobile), WorkdiaryServiceRecordEntity::getApplicantMobile, applicantMobile); |
|
|
query.like(StringUtils.isNotBlank(applicantMobile), WorkdiaryServiceRecordEntity::getApplicantMobile, applicantMobile); |
|
|
|
|
|
|
|
|
// 查找类型列表
|
|
|
// 查找类型列表
|
|
|
List<WorkdiaryServiceTypeDTO> stList = SpringContextUtils.getBean(WorkdiaryServiceTypeService.class).list(1, 100); |
|
|
List<WorkdiaryServiceTypeDTO> stList = SpringContextUtils.getBean(WorkdiaryServiceTypeService.class).list(null, 1, 100); |
|
|
Map<Short, String> stMap = stList.stream().collect(Collectors.toMap(WorkdiaryServiceTypeDTO::getServiceType, WorkdiaryServiceTypeDTO::getServiceTypeName)); |
|
|
Map<Short, String> stMap = stList.stream().collect(Collectors.toMap(WorkdiaryServiceTypeDTO::getServiceType, WorkdiaryServiceTypeDTO::getServiceTypeName)); |
|
|
|
|
|
|
|
|
// 查找服务记录
|
|
|
// 查找服务记录
|
|
@ -147,7 +147,18 @@ public class WorkdiaryServiceRecordServiceImpl extends BaseServiceImpl<Workdiary |
|
|
@Override |
|
|
@Override |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void update(WorkdiaryServiceRecordDTO dto) { |
|
|
public void update(WorkdiaryServiceRecordDTO dto) { |
|
|
WorkdiaryServiceRecordEntity entity = ConvertUtils.sourceToTarget(dto, WorkdiaryServiceRecordEntity.class); |
|
|
WorkdiaryServiceRecordEntity entity = new WorkdiaryServiceRecordEntity(); |
|
|
|
|
|
|
|
|
|
|
|
entity.setId(dto.getId()); |
|
|
|
|
|
entity.setServiceType(dto.getServiceType()); |
|
|
|
|
|
entity.setGridId(dto.getGridId()); |
|
|
|
|
|
entity.setApplicantId(dto.getApplicantId()); |
|
|
|
|
|
entity.setApplicantAddress(dto.getApplicantAddress()); |
|
|
|
|
|
entity.setServiceContent(dto.getServiceContent()); |
|
|
|
|
|
entity.setApplicantMobile(dto.getApplicantMobile()); |
|
|
|
|
|
entity.setPrincipalName(dto.getPrincipalName()); |
|
|
|
|
|
entity.setServiceTime(dto.getServiceTime()); |
|
|
|
|
|
entity.setRemark(dto.getRemark()); |
|
|
|
|
|
|
|
|
// orgidPath
|
|
|
// orgidPath
|
|
|
if (StringUtils.isNotBlank(dto.getGridId())) { |
|
|
if (StringUtils.isNotBlank(dto.getGridId())) { |
|
@ -182,7 +193,7 @@ public class WorkdiaryServiceRecordServiceImpl extends BaseServiceImpl<Workdiary |
|
|
|
|
|
|
|
|
if (stMap == null || stMap.size() == 0) { |
|
|
if (stMap == null || stMap.size() == 0) { |
|
|
// 查找类型列表
|
|
|
// 查找类型列表
|
|
|
List<WorkdiaryServiceTypeDTO> list = SpringContextUtils.getBean(WorkdiaryServiceTypeService.class).list(1, 100); |
|
|
List<WorkdiaryServiceTypeDTO> list = SpringContextUtils.getBean(WorkdiaryServiceTypeService.class).list(null, 1, 100); |
|
|
stMap = list.stream().collect(Collectors.toMap(WorkdiaryServiceTypeDTO::getServiceType, WorkdiaryServiceTypeDTO::getServiceTypeName)); |
|
|
stMap = list.stream().collect(Collectors.toMap(WorkdiaryServiceTypeDTO::getServiceType, WorkdiaryServiceTypeDTO::getServiceTypeName)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|