浏览代码

请假单监听

yuansh 1 年之前
父节点
当前提交
2b546db3b3

+ 12 - 1
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/oa/controller/IncidentTicketController.java

@@ -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());