lining há 6 anos atrás
pai
commit
4ff69be028

+ 1 - 1
src/dashoo.cn/backend/api/business/oilsupplier/supplier/oilsupplier.go

@@ -82,7 +82,7 @@ type OilSupplier struct {
 }
 
 type OilSupplierView struct {
-	UsedName          `xorm:"extends"`
+	//UsedName          `xorm:"extends"`
 	OilSupplier       `xorm:"extends"`
 	CertId            string
 	AccessCardNo      string

+ 4 - 4
src/dashoo.cn/backend/api/controllers/oilsupplier/select.go

@@ -101,10 +101,10 @@ func (this *SelectController) GetTList() {
 	if BusinessScope != "" {
 		where = where + " and a.BusinessScope like '%" + BusinessScope + "%'"
 	}
-	OldSupplierName := this.GetString("OldSupplierName")
-	if OldSupplierName != "" {
-		where = where + " and c.OldSupplierName like '%" + OldSupplierName + "%'"
-	}
+	//OldSupplierName := this.GetString("OldSupplierName")
+	//if OldSupplierName != "" {
+	//	where = where + " and c.OldSupplierName like '%" + OldSupplierName + "%'"
+	//}
 	Province := this.GetString("Province")
 	if Province != "" {
 		where = where + " and a.Province = '" + Province + "'"

+ 3 - 2
src/dashoo.cn/backend/api/controllers/oilsupplier/supplier.go

@@ -1496,8 +1496,9 @@ func (this *OilSupplierController) GetEntityAndCert() {
 	Id := this.Ctx.Input.Param(":certId")
 
 	var model supplier.OilSupplierView
-	svc := supplier.GetOilSupplierService(utils.DBE)
-	svc.GetEntityByIdBytbl(OilSupplierName, Id, &model)
+
+	//svc := supplier.GetOilSupplierService(utils.DBE)
+	//svc.GetEntityByIdBytbl(OilSupplierName, Id, &model)
 
 	var sql string
 	sql = `select a.*, b.Id as CertId, b.AccessCardNo, b.SupplierTypeCode, b.SupplierTypeName, b.Step, b.WorkerTotal, b.ContractNum, b.UniversityNum, b.TechnicalNum, b.AboveProfNum,