|
|
@@ -1697,7 +1697,7 @@ func (this *OilBasisBuildController) DeleteUpdate() {
|
|
|
var err error
|
|
|
go func() {
|
|
|
svc := goodsaptitude.GetOilGoodsAptitudeService(utils.DBE)
|
|
|
- var list1 []goodsaptitude.GoodsBusiness1
|
|
|
+ var list1 []goodsaptitude.GoodsBusiness2
|
|
|
svc.GetEntitysByWhere(OilBasisBuildName, "1=1", &list1)
|
|
|
for _,item := range list1{
|
|
|
var subDelete suppliercertsub.OilSupplierCertSub1
|
|
|
@@ -1706,7 +1706,7 @@ func (this *OilBasisBuildController) DeleteUpdate() {
|
|
|
err = svc.UpdateEntityBywheretbl(OilSupplierCertSubName, &subDelete, cols, "SupplierTypeCode = '02' and Name = '" + item.Name + "'")
|
|
|
}
|
|
|
var list []goodsaptitude.Ids
|
|
|
- svc.DeleteTableBySelect(OilSupplierCertSubName, OilTechnologyServiceClassName, "a.SupplierTypeCode='02' AND b.Id IS NULL", &list, "Name")
|
|
|
+ svc.DeleteTableBySelect(OilSupplierCertSubName, OilBasisBuildName, "a.SupplierTypeCode='02' AND b.Id IS NULL", &list, "Name")
|
|
|
for _,id := range list{
|
|
|
err = svc.DeleteTable(OilSupplierCertSubName, "Id = " + strconv.Itoa(id.Id))
|
|
|
}
|