|
|
@ -201,31 +201,18 @@ public class DfPlanService extends BaseService<DfPlanMapper, DfPlan> { |
|
|
|
} |
|
|
|
|
|
|
|
private DfCheckingPlanContent toEntity(DfCheckingPlanContentDto dto) { |
|
|
|
DfCheckingPlanContent entity = new DfCheckingPlanContent(); |
|
|
|
entity.setId(dto.getId()); |
|
|
|
entity.setPlanId(dto.getPlanId()); |
|
|
|
entity.setLineId(dto.getLineId()); |
|
|
|
entity.setName(dto.getName()); |
|
|
|
entity.setStartDate(dto.getStartDate()); |
|
|
|
entity.setEndDate(dto.getEndDate()); |
|
|
|
entity.setScope(dto.getScope()); |
|
|
|
entity.setOperator(JSON.toJSONString(dto.getOperator())); |
|
|
|
entity.setStatus(dto.getStatus()); |
|
|
|
DfCheckingPlanContent entity = BeanCopyUtils.copy(dto, DfCheckingPlanContent.class); |
|
|
|
if (entity != null) { |
|
|
|
entity.setOperator(JSON.toJSONString(dto.getOperator())); |
|
|
|
} |
|
|
|
return entity; |
|
|
|
} |
|
|
|
|
|
|
|
private DfCheckingPlanContentDto toDto(DfCheckingPlanContent entity) { |
|
|
|
DfCheckingPlanContentDto dto = new DfCheckingPlanContentDto(); |
|
|
|
dto.setId(entity.getId()); |
|
|
|
dto.setPlanId(entity.getPlanId()); |
|
|
|
dto.setLineId(entity.getLineId()); |
|
|
|
dto.setName(entity.getName()); |
|
|
|
dto.setStartDate(entity.getStartDate()); |
|
|
|
dto.setEndDate(entity.getEndDate()); |
|
|
|
dto.setScope(entity.getScope()); |
|
|
|
dto.setRemark(entity.getRemark()); |
|
|
|
dto.setOperator(JSON.parseArray(entity.getOperator(), OperatorDto.class)); |
|
|
|
dto.setStatus(entity.getStatus()); |
|
|
|
DfCheckingPlanContentDto dto = BeanCopyUtils.copy(entity, DfCheckingPlanContentDto.class); |
|
|
|
if (dto != null) { |
|
|
|
dto.setOperator(JSON.parseArray(entity.getOperator(), OperatorDto.class)); |
|
|
|
} |
|
|
|
return dto; |
|
|
|
} |
|
|
|
|
|
|
|