|
|
@@ -3841,21 +3841,11 @@ func (this *OilSupplierController) markLackCert(file supplierfile.CheckFile) {
|
|
|
if file.CertId != "0" && strconv.Itoa(cert.Id) != file.CertId {
|
|
|
continue
|
|
|
}
|
|
|
- whereInfo := ""
|
|
|
- if file.CertId == "0" {
|
|
|
- // 信息变更 不获取 增项审核中的数据
|
|
|
- whereInfo = " and Type != '2'"
|
|
|
- }
|
|
|
-
|
|
|
- var certSubList2 suppliercertsub.OilSupplierCertSub
|
|
|
- certSubList2.LackFile = ""
|
|
|
- certSubList2.IsQuestion = 0
|
|
|
- svcHeader.UpdateEntityBywheretbl(OilSupplierCertSubName, &certSubList2, []string{"LackFile", "IsQuestion"}, "IsQuestion = 2 and SupplierId = "+strconv.Itoa(supplierEntity.Id)+" and SupplierCertId = "+strconv.Itoa(cert.Id)+whereInfo)
|
|
|
|
|
|
//对准入范围的判断
|
|
|
var certSubList []suppliercertsub.OilSupplierCertSub
|
|
|
certsubService.GetListByCertId(strconv.Itoa(cert.Id), &certSubList)
|
|
|
- certsubService.GetEntitysByWhere(OilSupplierCertSubName, "SupplierCertId = "+strconv.Itoa(cert.Id)+whereInfo, &certSubList)
|
|
|
+ certsubService.GetEntitysByWhere(OilSupplierCertSubName, "SupplierCertId = "+strconv.Itoa(cert.Id), &certSubList)
|
|
|
idString := ""
|
|
|
idString1 := ""
|
|
|
for i := 0; i < len(certSubList); i = i + 1000 {
|