|
@ -215,6 +215,7 @@ public class CrmMaintenanceenterpriseRecordService extends MybatisBaseService<Cr |
|
|
for (CarListVo carListVo : carList) { |
|
|
for (CarListVo carListVo : carList) { |
|
|
CrmMaintenanceenterpriseVeh veh = new CrmMaintenanceenterpriseVeh(); |
|
|
CrmMaintenanceenterpriseVeh veh = new CrmMaintenanceenterpriseVeh(); |
|
|
BeanUtil.copyProperties(carListVo, veh, "id", "sid"); |
|
|
BeanUtil.copyProperties(carListVo, veh, "id", "sid"); |
|
|
|
|
|
veh.setBillSid(sid); |
|
|
crmMaintenanceenterpriseVehService.insert(veh); |
|
|
crmMaintenanceenterpriseVehService.insert(veh); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -223,6 +224,7 @@ public class CrmMaintenanceenterpriseRecordService extends MybatisBaseService<Cr |
|
|
for (PersonListVo personListVo : personListVos) { |
|
|
for (PersonListVo personListVo : personListVos) { |
|
|
CrmMaintenanceenterprisePerson person = new CrmMaintenanceenterprisePerson(); |
|
|
CrmMaintenanceenterprisePerson person = new CrmMaintenanceenterprisePerson(); |
|
|
BeanUtil.copyProperties(personListVo, person, "id", "sid"); |
|
|
BeanUtil.copyProperties(personListVo, person, "id", "sid"); |
|
|
|
|
|
person.setBillSid(sid); |
|
|
crmMaintenanceenterprisePersonService.insert(person); |
|
|
crmMaintenanceenterprisePersonService.insert(person); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -295,6 +297,9 @@ public class CrmMaintenanceenterpriseRecordService extends MybatisBaseService<Cr |
|
|
vo.setInstanceId(entity.getProcInstId()); |
|
|
vo.setInstanceId(entity.getProcInstId()); |
|
|
} |
|
|
} |
|
|
vo.setCreateTime(DateUtil.formatDate(entity.getCreateTime())); |
|
|
vo.setCreateTime(DateUtil.formatDate(entity.getCreateTime())); |
|
|
|
|
|
if (null != entity.getFilingIndate()) { |
|
|
|
|
|
vo.setFilingIndate(DateUtil.formatDate(entity.getFilingIndate())); |
|
|
|
|
|
} |
|
|
CrmCustomerTemp customerTemp = crmCustomerTempService.fetchBySid(entity.getCustomerSid()); |
|
|
CrmCustomerTemp customerTemp = crmCustomerTempService.fetchBySid(entity.getCustomerSid()); |
|
|
if (null != customerTemp) { |
|
|
if (null != customerTemp) { |
|
|
if (StringUtils.isNotBlank(customerTemp.getAddress())) { |
|
|
if (StringUtils.isNotBlank(customerTemp.getAddress())) { |
|
@ -360,6 +365,9 @@ public class CrmMaintenanceenterpriseRecordService extends MybatisBaseService<Cr |
|
|
for (CrmMaintenanceenterpriseVeh veh : vehList) { |
|
|
for (CrmMaintenanceenterpriseVeh veh : vehList) { |
|
|
CarListVo carListVo = new CarListVo(); |
|
|
CarListVo carListVo = new CarListVo(); |
|
|
BeanUtil.copyProperties(veh, carListVo); |
|
|
BeanUtil.copyProperties(veh, carListVo); |
|
|
|
|
|
if (null != veh.getBuyDate()) { |
|
|
|
|
|
carListVo.setBuyDate(DateUtil.formatDate(veh.getBuyDate())); |
|
|
|
|
|
} |
|
|
carListVos.add(carListVo); |
|
|
carListVos.add(carListVo); |
|
|
} |
|
|
} |
|
|
vo.setCarList(carListVos); |
|
|
vo.setCarList(carListVos); |
|
|