|
|
@@ -367,7 +367,7 @@ func (this *OilSupplierCertSubController) CheckCertSubLost() {
|
|
|
supplierTypeCode := dataother.SupplierTypeCode
|
|
|
var tableheaderList []supplierfile.OilSupplierFile
|
|
|
|
|
|
- fileSql := "SELECT * from OilSupplierFile WHERE SupplierId='" + strconv.Itoa(supplierId) + "'"
|
|
|
+ fileSql := "SELECT * from OilSupplierFile WHERE SupplierId='" + strconv.Itoa(supplierId) + "' and SupType in (0, 1, 3, 5)"
|
|
|
fileSql += " AND (SupplierTypeCode='" + supplierTypeCode + "' or SupplierTypeCode='000')"
|
|
|
|
|
|
svcHeader := tableheader.GetTableHeaderService(utils.DBE)
|
|
|
@@ -634,7 +634,7 @@ func (this *OilSupplierCertSubController) CheckTechCertLost() {
|
|
|
//}
|
|
|
|
|
|
var fileist []supplierfile.OilSupplierFile
|
|
|
- where := "SupplierTypeCode in ('03','000') and SupplierId = '" + strconv.Itoa(dataother.SupplierId) + "'"
|
|
|
+ where := "SupplierTypeCode in ('03','000') and SupplierId = '" + strconv.Itoa(dataother.SupplierId) + "' and SupType in (0, 1, 3, 5)"
|
|
|
svcSupplier.GetEntitysByWhere(OilSupplierFileName, where, &fileist)
|
|
|
|
|
|
var companyHasHeaders string
|
|
|
@@ -818,7 +818,7 @@ func (this *OilSupplierCertSubController) CheckBasisBusinessLost() {
|
|
|
|
|
|
if err == nil {
|
|
|
var list []supplierfile.OilSupplierFile
|
|
|
- where := "SupplierTypeCode in (02,000) and SupplierId = '" + strconv.Itoa(model.SupplierId) + "'"
|
|
|
+ where := "SupplierTypeCode in (02,000) and SupplierId = '" + strconv.Itoa(model.SupplierId) + "' and SupType in (0, 1, 3, 5)"
|
|
|
svcCert.GetEntitysByWhere(OilSupplierFileName, where, &list)
|
|
|
var companyHasHeaders string
|
|
|
for _, tableheader := range list {
|