Sfoglia il codice sorgente

后端: 审验对比筛选准入范围的条件优化

baichengfei 4 anni fa
parent
commit
19acfee8f5

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

@@ -3057,7 +3057,7 @@ func (this *OilGoodsAptitudeController) OilCompare() {
 		}
 		if len(List) > 0 {
 			var certsublist2 []suppliercertsub.OilSupplierCertSub
-			namewhere := "SupplierId = '" + strconv.Itoa(List[0].Id) + "' and Code ='" + Compare.SortCoding + "' and SupplierTypeCode ='01'"
+			namewhere := "SupplierId = '" + strconv.Itoa(List[0].Id) + "' and Code ='" + Compare.SortCoding + "' and SupplierTypeCode ='01' and CertSubStatus != -1 and Type in (1, 3) "
 			svc.GetEntitysByWhere(OilSupplierCertSubName, namewhere, &certsublist2)
 			if len(certsublist2) < 1 {
 				Compare.Diff = "1"