ziwen 2 жил өмнө
parent
commit
c0ecda71c7

+ 6 - 0
controller/contract/pre_register.go

@@ -716,6 +716,12 @@ func (rg *PreRegisterController) Detail(c *gin.Context) {
 		CreateTime:         item.CreateTime.Format(utils.FormatDateTime),
 	}
 
+	if nItme.StartDate == "0001-01-01" {
+		nItme.StartDate = ""
+	}
+	if nItme.EndDate == "0001-01-01" {
+		nItme.EndDate = ""
+	}
 	cond := `contract_register_id = ? AND invoice_type = ? `
 	pars := make([]interface{}, 0)
 	pars = append(pars, req.ContractRegisterId, req.InvoiceType)