|
|
@@ -2664,7 +2664,7 @@ func (this *OilSupplierController) CheckSupplierFile() {
|
|
|
where1 := " SupplierId = '" + strconv.Itoa(file.SupplierId) + "' and NeedFileType = '" + needHeader.FileName + "'"
|
|
|
filesvc.GetEntityByWhere("OilSupplierFile", where1, &fileist1)
|
|
|
|
|
|
- var filelist2 suppliercertappendsub.OilAppendChangeDetail
|
|
|
+ var filelist2 qualchange.OilQualChangeDetail
|
|
|
where2 := " SupplierId = '" + strconv.Itoa(file.SupplierId) + "' and NeedFileType = '" + needHeader.FileName + "'"
|
|
|
svc2 := suppliercertappendsub.GetOilSupplierCertAppendSubService(utils.DBE)
|
|
|
svc2.GetEntityByWhere("OilQualChangeDetail", where2, &filelist2)
|
|
|
@@ -2810,7 +2810,7 @@ func (this *OilSupplierController) CheckSupplierFileNew(){
|
|
|
var filelist2 suppliercertappendsub.OilAppendChangeDetail
|
|
|
where2 := " SupplierId = '" + strconv.Itoa(file.SupplierId) + "' and NeedFileType = '" + needHeader.FileName + "'"
|
|
|
svc2 := suppliercertappendsub.GetOilSupplierCertAppendSubService(utils.DBE)
|
|
|
- svc2.GetEntityByWhere("OilQualChangeDetail", where2, &filelist2)
|
|
|
+ svc2.GetEntityByWhere("OilAppendChangeDetail", where2, &filelist2)
|
|
|
if filelist2.FileName == "" && fileist1.FileName == "" {
|
|
|
//缺少的资质
|
|
|
errinfo.Message = "请上传!" + needHeader.FileName + "!"
|