|
@@ -561,8 +561,10 @@ func (this *OilSupplierCertSubController) AddGoodsByFilter() {
|
|
|
|
|
|
|
|
//插入准入范围表
|
|
//插入准入范围表
|
|
|
svc.InsertEntityBytbl(OilSupplierCertSubName, &datamain)
|
|
svc.InsertEntityBytbl(OilSupplierCertSubName, &datamain)
|
|
|
|
|
+
|
|
|
|
|
+ // TODO: 删除准入范围和资质对应关系表
|
|
|
//插入准入范围所需资质记录表
|
|
//插入准入范围所需资质记录表
|
|
|
- for _, needHeader := range needList {
|
|
|
|
|
|
|
+ /*for _, needHeader := range needList {
|
|
|
if (supplierModel.CredentialFlag == "1" || supplierModel.CredentialFlag == "2") &&
|
|
if (supplierModel.CredentialFlag == "1" || supplierModel.CredentialFlag == "2") &&
|
|
|
strings.Contains(mergerCertSkipField, needHeader.FileName+",") {
|
|
strings.Contains(mergerCertSkipField, needHeader.FileName+",") {
|
|
|
//三证合一或五证合一的证件,不需要保存
|
|
//三证合一或五证合一的证件,不需要保存
|
|
@@ -580,7 +582,7 @@ func (this *OilSupplierCertSubController) AddGoodsByFilter() {
|
|
|
cert2File.Name = dataother.CheckList[n].Name
|
|
cert2File.Name = dataother.CheckList[n].Name
|
|
|
cert2File.NeedFileType = needHeader.FileName
|
|
cert2File.NeedFileType = needHeader.FileName
|
|
|
svc.InsertEntityBytbl(OilSupplierCert2FileName, &cert2File)
|
|
svc.InsertEntityBytbl(OilSupplierCert2FileName, &cert2File)
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
vaildCnt++
|
|
vaildCnt++
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -734,7 +736,8 @@ func (this *OilSupplierCertSubController) AddTechBus() {
|
|
|
datamain.Id = 0
|
|
datamain.Id = 0
|
|
|
svc.InsertEntityBytbl(OilSupplierCertSubName, &datamain)
|
|
svc.InsertEntityBytbl(OilSupplierCertSubName, &datamain)
|
|
|
|
|
|
|
|
- paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
|
|
|
|
|
|
|
+ // TODO: 删除准入范围和资质对应关系表
|
|
|
|
|
+ /*paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
|
|
|
filesvc := supplierfile.GetSupplierfileService(utils.DBE)
|
|
filesvc := supplierfile.GetSupplierfileService(utils.DBE)
|
|
|
needList := filesvc.GetTechNeedFileList(strconv.Itoa(dataother.CheckList[n].Id))
|
|
needList := filesvc.GetTechNeedFileList(strconv.Itoa(dataother.CheckList[n].Id))
|
|
|
|
|
|
|
@@ -771,7 +774,7 @@ func (this *OilSupplierCertSubController) AddTechBus() {
|
|
|
cert2File.Name = dataother.CheckList[n].Name
|
|
cert2File.Name = dataother.CheckList[n].Name
|
|
|
cert2File.NeedFileType = needList[i].FileName
|
|
cert2File.NeedFileType = needList[i].FileName
|
|
|
svc.InsertEntityBytbl(OilSupplierCert2FileName, &cert2File)
|
|
svc.InsertEntityBytbl(OilSupplierCert2FileName, &cert2File)
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -900,7 +903,8 @@ func (this *OilSupplierCertSubController) AddBusiness() {
|
|
|
model.Id = submodel.Id
|
|
model.Id = submodel.Id
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- var supplierCertModel suppliercert.OilSupplierCert
|
|
|
|
|
|
|
+ // TODO: 删除准入范围和资质对应关系表
|
|
|
|
|
+ /* var supplierCertModel suppliercert.OilSupplierCert
|
|
|
svcCert := suppliercert.GetOilSupplierCertService(utils.DBE)
|
|
svcCert := suppliercert.GetOilSupplierCertService(utils.DBE)
|
|
|
svcCert.GetEntityById(model.SupplierCertId, &supplierCertModel)
|
|
svcCert.GetEntityById(model.SupplierCertId, &supplierCertModel)
|
|
|
|
|
|
|
@@ -956,7 +960,8 @@ func (this *OilSupplierCertSubController) AddBusiness() {
|
|
|
svc.InsertEntityBytbl(OilSupplierCert2FileName, &cert2File)
|
|
svc.InsertEntityBytbl(OilSupplierCert2FileName, &cert2File)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
|
|
+
|
|
|
var errinfo ErrorDataInfo
|
|
var errinfo ErrorDataInfo
|
|
|
if err == nil {
|
|
if err == nil {
|
|
|
errinfo.Message = "操作成功!"
|
|
errinfo.Message = "操作成功!"
|
|
@@ -992,9 +997,11 @@ func (this *OilSupplierCertSubController) BusinessDelete() {
|
|
|
//根据Id查出OilSupplierCertSub的SubClassId
|
|
//根据Id查出OilSupplierCertSub的SubClassId
|
|
|
svc := suppliercertsub.GetOilSupplierCertSubService(utils.DBE) //获得数据库引擎
|
|
svc := suppliercertsub.GetOilSupplierCertSubService(utils.DBE) //获得数据库引擎
|
|
|
where := "delete from " + OilSupplierCertSubName + " where Id in (" + Id + ")" // 没有删除的准入范围
|
|
where := "delete from " + OilSupplierCertSubName + " where Id in (" + Id + ")" // 没有删除的准入范围
|
|
|
- whereCert2File := "delete from " + OilSupplierCert2FileName + " where SupplierCertSubId in (" + Id + ")" // 没有删除的准入范围
|
|
|
|
|
svc.DBE.Exec(where)
|
|
svc.DBE.Exec(where)
|
|
|
- svc.DBE.Exec(whereCert2File)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // TODO: 删除准入范围和资质对应关系表
|
|
|
|
|
+ /*whereCert2File := "delete from " + OilSupplierCert2FileName + " where SupplierCertSubId in (" + Id + ")" // 没有删除的准入范围
|
|
|
|
|
+ svc.DBE.Exec(whereCert2File)*/
|
|
|
|
|
|
|
|
errinfo.Message = "删除成功!"
|
|
errinfo.Message = "删除成功!"
|
|
|
errinfo.Code = 0
|
|
errinfo.Code = 0
|
|
@@ -1258,12 +1265,13 @@ func setManufacturerHandler(manufacturerChangeDTO suppliercertsub.ManufacturerCh
|
|
|
return invalidCertMsg
|
|
return invalidCertMsg
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type OilSupplierCert2File struct {
|
|
|
|
|
|
|
+// TODO: 删除准入范围和资质对应关系表
|
|
|
|
|
+/* type OilSupplierCert2File struct {
|
|
|
Id int `json:"not null pk autoincr INT(10)"`
|
|
Id int `json:"not null pk autoincr INT(10)"`
|
|
|
certSubId int `json:"not null default 0 comment('供方基本信息表主键') INT(10)"`
|
|
certSubId int `json:"not null default 0 comment('供方基本信息表主键') INT(10)"`
|
|
|
certSubStatus int `json:"not null default 0 comment('供方准入证书信息表主键') INT(10)"`
|
|
certSubStatus int `json:"not null default 0 comment('供方准入证书信息表主键') INT(10)"`
|
|
|
stopReason string `json:"not null default '0' comment('准入类别代码(1 物资类,2 基建类,3 技术服务类)') VARCHAR(5)"`
|
|
stopReason string `json:"not null default '0' comment('准入类别代码(1 物资类,2 基建类,3 技术服务类)') VARCHAR(5)"`
|
|
|
-}
|
|
|
|
|
|
|
+}*/
|
|
|
|
|
|
|
|
type LostCertFiles struct {
|
|
type LostCertFiles struct {
|
|
|
Code string
|
|
Code string
|