|
@@ -302,6 +302,12 @@ public class IncidentTicketController {
|
|
|
if(incidentTicket==null) {
|
|
|
return Result.error("未找到对应数据");
|
|
|
}
|
|
|
+ if(incidentTicket.getInvoicingDate() == null){
|
|
|
+ incidentTicket.setInvoicingDate(incidentTicket.getUpdateTime());
|
|
|
+ if(incidentTicket.getInvoicingDate() == null){
|
|
|
+ incidentTicket.setInvoicingDate(incidentTicket.getCreateTime());
|
|
|
+ }
|
|
|
+ }
|
|
|
return Result.ok(incidentTicket);
|
|
|
|
|
|
}
|
|
@@ -419,7 +425,12 @@ public class IncidentTicketController {
|
|
|
if(StringUtils.isBlank(responsibilityCompany)){
|
|
|
return Result.error("责任单位为空无法同步");
|
|
|
}
|
|
|
-
|
|
|
+ if(incidentTicket.getInvoicingDate() == null){
|
|
|
+ incidentTicket.setInvoicingDate(incidentTicket.getUpdateTime());
|
|
|
+ if(incidentTicket.getInvoicingDate() == null){
|
|
|
+ incidentTicket.setInvoicingDate(incidentTicket.getCreateTime());
|
|
|
+ }
|
|
|
+ }
|
|
|
boolean res = true;
|
|
|
|
|
|
List<IncidentTicketChildren> childrenList = incidentTicketChildrenService.selectByMainId(incidentTicket.getId());
|