@@ -82,7 +82,7 @@ type OilSupplier struct {
}
type OilSupplierView struct {
- UsedName `xorm:"extends"`
+ //UsedName `xorm:"extends"`
OilSupplier `xorm:"extends"`
CertId string
AccessCardNo string
@@ -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 + "'"
@@ -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,