Procházet zdrojové kódy

后:年审准入方式丢失问题test

MAC před 5 roky
rodič
revize
bb0cc62d60

+ 3 - 1
src/dashoo.cn/backend/api/controllers/oilsupplier/annualaudit.go

@@ -549,7 +549,9 @@ func (this *AnnualAuditController) UpdateSuppEntity() {
 	}
 	err := svc.UpdateEntityBytbl(OilSupplierName, id, &model, updateCols)
 	if err == nil {
-		svc.DBE.Exec("update OilSupplierCert set Instyle=" + instyle + " where SupplierId=" + id + " and SupplierTypeCode=" + typeCode + "")
+		if instyle != "" {
+			svc.DBE.Exec("update OilSupplierCert set Instyle=" + instyle + " where SupplierId=" + id + " and SupplierTypeCode=" + typeCode + "")
+		}
 		errinfo.Message = "修改成功!"
 		errinfo.Code = 0
 		this.Data["json"] = &errinfo