|
|
@@ -420,7 +420,7 @@ func (this *TmpzcgfController) UpdateCertSubclassID() {
|
|
|
where := "1=1"
|
|
|
svc.GetEntities(&goodsAptitudeClassList, where)
|
|
|
for _, item := range goodsAptitudeClassList {
|
|
|
- sql := "UPDATE OilSupplierCertSub SET SubClassId = " + strconv.Itoa(item.Id) + " WHERE SupplierTypeCode = '01' and Type in (1, 3) and CreateBy='导入1' and Code = '" + item.Code + "'"
|
|
|
+ sql := "UPDATE OilSupplierCertSub SET SubClassId = " + strconv.Itoa(item.Id) + " WHERE SupplierTypeCode = '01' and Code = '" + item.Code + "'"
|
|
|
svc.DBE.Query(sql)
|
|
|
}
|
|
|
|
|
|
@@ -428,7 +428,7 @@ func (this *TmpzcgfController) UpdateCertSubclassID() {
|
|
|
where1 := "1=1"
|
|
|
svc.GetEntities(&basisBuildList, where1)
|
|
|
for _, item := range basisBuildList {
|
|
|
- sql := "UPDATE OilSupplierCertSub SET SubClassId = " + strconv.Itoa(item.Id) + " WHERE SupplierTypeCode = '02' and Type in (1, 3) and CreateBy='导入1' and Code = '" + item.Code + "'"
|
|
|
+ sql := "UPDATE OilSupplierCertSub SET SubClassId = " + strconv.Itoa(item.Id) + " WHERE SupplierTypeCode = '02' and Code = '" + item.Code + "'"
|
|
|
svc.DBE.Query(sql)
|
|
|
}
|
|
|
|
|
|
@@ -436,7 +436,7 @@ func (this *TmpzcgfController) UpdateCertSubclassID() {
|
|
|
where2 := "1=1"
|
|
|
svc.GetEntities(&technologyServiceClassList, where2)
|
|
|
for _, item := range technologyServiceClassList {
|
|
|
- sql := "UPDATE OilSupplierCertSub SET SubClassId = " + strconv.Itoa(item.Id) + " WHERE SupplierTypeCode = '03' and Type in (1, 3) and CreateBy='导入1' and Code = '" + item.Code + "'"
|
|
|
+ sql := "UPDATE OilSupplierCertSub SET SubClassId = " + strconv.Itoa(item.Id) + " WHERE SupplierTypeCode = '03' and Code = '" + item.Code + "'"
|
|
|
svc.DBE.Query(sql)
|
|
|
}
|
|
|
|
|
|
@@ -873,8 +873,8 @@ func (this *TmpzcgfController) InsertAll() {
|
|
|
this.UpdateOilSupplierCertAppend()
|
|
|
this.UpdateOilSupplierCertAppendSub() // 更新增项的准入范围
|
|
|
this.UpdateCertSubclassID()
|
|
|
- // this.CapacityExpansion() // 编码扩充 --弃用
|
|
|
- // 历史数据导入-由于运行到此处中断,上面的代码临时注释
|
|
|
+ //this.CapacityExpansion() // 编码扩充 --弃用
|
|
|
+ //历史数据导入-由于运行到此处中断,上面的代码临时注释
|
|
|
this.InsterAnnualAudit()
|
|
|
this.UpdateAnnualAudit()
|
|
|
this.InsterOilPaymentInfo()
|