|
|
@@ -3296,6 +3296,13 @@ func (this *OilSupplierController) CheckSupplierFileNew() {
|
|
|
var cert suppliercert.OilSupplierCert
|
|
|
supplierService.GetEntityByWhere("OilSupplierCert", "Id = "+file.CertId, &cert)
|
|
|
|
|
|
+ whereInfoFile := ""
|
|
|
+ if file.Table == 5 {
|
|
|
+ whereInfoFile = " and SupType in (0,1,3,5)"
|
|
|
+ } else {
|
|
|
+ whereInfoFile = " and IsDelete = 0"
|
|
|
+ }
|
|
|
+
|
|
|
// 查询出已有哪些资质
|
|
|
var tableheaderList []qualchange.OilQualChangeDetail1
|
|
|
where := ""
|
|
|
@@ -3307,7 +3314,7 @@ func (this *OilSupplierController) CheckSupplierFileNew() {
|
|
|
where = " and SupplierTypeCode in ( '000', '" + certInfo.SupplierTypeCode + "')"
|
|
|
}
|
|
|
}
|
|
|
- fileSql := "SELECT * from OilSupplierFile WHERE IsDelete = 0 and SupplierId = " + strconv.Itoa(file.SupplierId) + where
|
|
|
+ fileSql := "SELECT * from OilSupplierFile WHERE SupplierId = " + strconv.Itoa(file.SupplierId) + where + whereInfoFile
|
|
|
svcHeader := tableheader.GetTableHeaderService(utils.DBE)
|
|
|
svcHeader.DBE.SQL(fileSql).Find(&tableheaderList)
|
|
|
var companyHasHeaders string
|
|
|
@@ -3662,7 +3669,12 @@ func (this *OilSupplierController) CheckSupplierFileList() {
|
|
|
|
|
|
// 查询出已有哪些资质
|
|
|
var tableheaderList []qualchange.OilQualChangeDetail1
|
|
|
- //whereInfoFile := ""
|
|
|
+ whereInfoFile := ""
|
|
|
+ if file.Table == 5 {
|
|
|
+ whereInfoFile = " and SupType in (0,1,3,5)"
|
|
|
+ } else {
|
|
|
+ whereInfoFile = " and IsDelete = 0"
|
|
|
+ }
|
|
|
//if file.CertId == "0" {
|
|
|
// // 信息变更 不获取 增项和年审审核中的数据
|
|
|
// whereInfoFile = " and SupType in (0,1,3,4,5)"
|
|
|
@@ -3678,7 +3690,7 @@ func (this *OilSupplierController) CheckSupplierFileList() {
|
|
|
where = " and SupplierTypeCode in ( '000', '" + certInfo.SupplierTypeCode + "')"
|
|
|
}
|
|
|
}
|
|
|
- fileSql := "SELECT * from OilSupplierFile WHERE IsDelete = 0 and SupplierId = " + strconv.Itoa(file.SupplierId) + where
|
|
|
+ fileSql := "SELECT * from OilSupplierFile WHERE SupplierId = " + strconv.Itoa(file.SupplierId) + where + whereInfoFile
|
|
|
svcHeader := tableheader.GetTableHeaderService(utils.DBE)
|
|
|
svcHeader.DBE.SQL(fileSql).Find(&tableheaderList)
|
|
|
var companyHasHeaders string
|