|
|
@@ -2038,7 +2038,7 @@ func (this *OilGoodsAptitudeController) GetDelCertSubList() {
|
|
|
}
|
|
|
where = where + " and a.Type in (1, 3)"
|
|
|
svc := goodsaptitude.GetOilGoodsAptitudeService(utils.DBE)
|
|
|
- var list []suppliercertsub.OilSupplierCertSub
|
|
|
+ var list []suppliercertsub.OilSupplierCertSub1
|
|
|
//total := svc.GetMyPagingEntitiesWithOrderBytbl(TmpOilSupplierCertSubName, page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
//total := svc.GetMyPagingEntitiesWithOrderBytbl(OilSupplierCertSubName, page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
total := svc.GetPagingTmpSubEntities(page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
@@ -2103,12 +2103,12 @@ func (this *OilGoodsAptitudeController) DelTmpSupplierCertSub() {
|
|
|
|
|
|
svc := goodsaptitude.GetOilGoodsAptitudeSession(session)
|
|
|
|
|
|
- wheredel := "1=1 and a.SupplierTypeCode = '01'"
|
|
|
+ wheredel := "1=1 and SupplierTypeCode = '01'"
|
|
|
if supplierId != "" {
|
|
|
- wheredel += " and a.Id=" + supplierId
|
|
|
+ wheredel += " and Id=" + supplierId
|
|
|
}
|
|
|
if id != "" {
|
|
|
- wheredel += " and a.Id=" + id
|
|
|
+ wheredel += " and Id=" + id
|
|
|
}
|
|
|
svc1 := goodsaptitude.GetOilGoodsAptitudeService(utils.DBE)
|
|
|
//svc.GetEntitysByWhere(TmpOilSupplierCertSubName, wheredel, &supplierCertSubList)
|
|
|
@@ -2133,7 +2133,7 @@ func (this *OilGoodsAptitudeController) DelTmpSupplierCertSub() {
|
|
|
i := 1
|
|
|
for _, value := range code {
|
|
|
if i == 36 || i == 37 || i == 1 {
|
|
|
- if (code[0] == "1" && strings.Index(item.HeaderCodes, "F01") < 0) && (code[35] == "1" && strings.Index(item.HeaderCodes, "F36") < 0) && (code[36] == "1" && strings.Index(item.HeaderCodes, "F37") < 0) {
|
|
|
+ if (code[0] == "1" && strings.Index(item2.HeaderCodes, "F01") < 0) && (code[35] == "1" && strings.Index(item2.HeaderCodes, "F36") < 0) && (code[36] == "1" && strings.Index(item2.HeaderCodes, "F37") < 0) {
|
|
|
where := "Id = " + strconv.Itoa(item.Id)
|
|
|
err = svc.DeleteEntityBytbl(OilSupplierCertSubName, where)
|
|
|
if err != nil {
|
|
|
@@ -2145,7 +2145,7 @@ func (this *OilGoodsAptitudeController) DelTmpSupplierCertSub() {
|
|
|
}
|
|
|
}
|
|
|
} else if i > 10 {
|
|
|
- if value == "1" && strings.Index(item.HeaderCodes, "F"+strconv.Itoa(i)) < 0 {
|
|
|
+ if value == "1" && strings.Index(item2.HeaderCodes, "F"+strconv.Itoa(i)) < 0 {
|
|
|
where := "Id = " + strconv.Itoa(item.Id)
|
|
|
err = svc.DeleteEntityBytbl(OilSupplierCertSubName, where)
|
|
|
if err != nil {
|
|
|
@@ -2157,7 +2157,7 @@ func (this *OilGoodsAptitudeController) DelTmpSupplierCertSub() {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- if value == "1" && strings.Index(item.HeaderCodes, "F0"+strconv.Itoa(i)) < 0 {
|
|
|
+ if value == "1" && strings.Index(item2.HeaderCodes, "F0"+strconv.Itoa(i)) < 0 {
|
|
|
where := "Id = " + strconv.Itoa(item.Id)
|
|
|
err = svc.DeleteEntityBytbl(OilSupplierCertSubName, where)
|
|
|
if err != nil {
|