2
3
Quellcode durchsuchen

后端: 信息变更bug

baichengfei vor 4 Jahren
Ursprung
Commit
edd56e06dd
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/dashoo.cn/backend/api/controllers/oilsupplier/qualchange.go

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

@@ -610,7 +610,7 @@ func (this *QualChangeController) AddQualChange() {
 	svc := qualchange.GetQualChangeService(utils.DBE)
 
 	var supplierfile supplierfile.OilSupplierFile
-	where := "SupplierId = '" + strconv.Itoa(model.SupplierId) + "' and NeedFileType='" + model.NeedFileType + "'"
+	where := "SupplierId = '" + strconv.Itoa(model.SupplierId) + "' and NeedFileType='" + model.NeedFileType + "' and SupplierTypeCode in ( '000', '" + model.SupplierTypeCode + "')"
 	has := svc.GetEntity(&supplierfile, where)
 
 	var tableHeader tableheader.BaseTableheader