@@ -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