Pārlūkot izejas kodu

后端: 获取缺资质的准入列表先重置标识

baichengfei 4 gadi atpakaļ
vecāks
revīzija
964471bf29

+ 3 - 0
src/dashoo.cn/backend/api/controllers/oilsupplier/supplier.go

@@ -4032,6 +4032,9 @@ func (this *OilSupplierController) GetLackCertList() {
 	whereCert := " Status = '8' or Status = '11' "
 	certService.GetEntitysByWhere(OilSupplierCertName, whereCert, &allCertList)
 	if len(allCertList) > 0 {
+		// 重置标识
+		sql := "update " + OilSupplierCertName + " set  IsLack= 1 "
+		_, _ = certService.DBE.Exec(sql)
 		log.Println("共查询到准入条数:", len(allCertList))
 		for _, certEntity := range allCertList {
 			supService.GetEntityById(certEntity.SupplierId, &supEntity)