|
|
@@ -2253,22 +2253,19 @@ func (this *OilTechnologyServiceController) DeleteSuspend() {
|
|
|
func (this *OilTechnologyServiceController) ManualDelete() {
|
|
|
var errinfo ErrorInfo
|
|
|
var list []supplier.ManualDelete
|
|
|
- var sub []suppliercertsub.OilSupplierCertSub
|
|
|
- var class technologyserviceclass.OilTechnologyServiceClass
|
|
|
svc := technologyservice.GetOilTechnologyServiceService(utils.DBE)
|
|
|
- delect := this.GetString("delete")
|
|
|
where := "1=1"
|
|
|
svc.GetEntitysByWhere("TecDifferent", where, &list)
|
|
|
for _, value := range list {
|
|
|
var sub1 suppliercertsub.OilSupplierCertSub
|
|
|
+ var class technologyserviceclass.OilTechnologyServiceClass
|
|
|
if value.Operation == "删除" {
|
|
|
- if delect != "" {
|
|
|
- svc.DeleteTable(OilSupplierCertSubName, "SupplierTypeCode='03' and Code = '" + value.Code + "' and Name = '" + value.Name + "'")
|
|
|
- }
|
|
|
+ svc.DeleteTable(OilSupplierCertSubName, "SupplierTypeCode='03' and Code = '" + value.Code + "' and Name = '" + value.Name + "'")
|
|
|
} else if value.Operation == "维持不动" || value.Operation == "" {
|
|
|
|
|
|
} else if strings.Index(value.Operation, ",") > 0 {
|
|
|
//151508,151509
|
|
|
+ var sub []suppliercertsub.OilSupplierCertSub
|
|
|
svc.GetEntitysByWhere(OilSupplierCertSubName, "SupplierTypeCode='03' and Code = '" + value.Code + "' and Name = '" + value.Name + "'", &sub)
|
|
|
code := strings.Split(value.Operation, ",")
|
|
|
for _, c := range code {
|