|
|
@@ -2,11 +2,10 @@ package oilsupplier
|
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
- "strings"
|
|
|
"time"
|
|
|
|
|
|
- "dashoo.cn/business/userRole"
|
|
|
"dashoo.cn/backend/api/business/baseUser"
|
|
|
+ "dashoo.cn/business/userRole"
|
|
|
//"dashoo.cn/backend/api/business/items"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/technologyservice"
|
|
|
. "dashoo.cn/backend/api/controllers"
|
|
|
@@ -36,384 +35,14 @@ func (this *OilTechnologyServiceController) GetEntityList() {
|
|
|
asc = true
|
|
|
}
|
|
|
}
|
|
|
- Id := this.GetString("Id")
|
|
|
- Code := this.GetString("Code")
|
|
|
+ /*Code := this.GetString("Code")
|
|
|
Name := this.GetString("Name")
|
|
|
- Code1 := this.GetString("Code1")
|
|
|
- Name1 := this.GetString("Name1")
|
|
|
- Code2 := this.GetString("Code2")
|
|
|
- Name2 := this.GetString("Name2")
|
|
|
- Code3 := this.GetString("Code3")
|
|
|
- Name3 := this.GetString("Name3")
|
|
|
- Code4 := this.GetString("Code4")
|
|
|
- Name4 := this.GetString("Name4")
|
|
|
OrgId := this.GetString("OrgId")
|
|
|
- OrgName := this.GetString("OrgName")
|
|
|
- F01 := this.GetString("F01")
|
|
|
- F02 := this.GetString("F02")
|
|
|
- F03 := this.GetString("F03")
|
|
|
- F04 := this.GetString("F04")
|
|
|
- F05 := this.GetString("F05")
|
|
|
- F06 := this.GetString("F06")
|
|
|
- F07 := this.GetString("F07")
|
|
|
- F08 := this.GetString("F08")
|
|
|
- F09 := this.GetString("F09")
|
|
|
- F10 := this.GetString("F10")
|
|
|
- F11 := this.GetString("F11")
|
|
|
- F12 := this.GetString("F12")
|
|
|
- F13 := this.GetString("F13")
|
|
|
- F14 := this.GetString("F14")
|
|
|
- F15 := this.GetString("F15")
|
|
|
- F16 := this.GetString("F16")
|
|
|
- F17 := this.GetString("F17")
|
|
|
- F18 := this.GetString("F18")
|
|
|
- F19 := this.GetString("F19")
|
|
|
- F20 := this.GetString("F20")
|
|
|
- F21 := this.GetString("F21")
|
|
|
- F22 := this.GetString("F22")
|
|
|
- F23 := this.GetString("F23")
|
|
|
- F24 := this.GetString("F24")
|
|
|
- F25 := this.GetString("F25")
|
|
|
- F26 := this.GetString("F26")
|
|
|
- F27 := this.GetString("F27")
|
|
|
- F28 := this.GetString("F28")
|
|
|
- F29 := this.GetString("F29")
|
|
|
- F30 := this.GetString("F30")
|
|
|
- F31 := this.GetString("F31")
|
|
|
- F32 := this.GetString("F32")
|
|
|
- F33 := this.GetString("F33")
|
|
|
- F34 := this.GetString("F34")
|
|
|
- F35 := this.GetString("F35")
|
|
|
- F36 := this.GetString("F36")
|
|
|
- F37 := this.GetString("F37")
|
|
|
- F38 := this.GetString("F38")
|
|
|
- F39 := this.GetString("F39")
|
|
|
- F40 := this.GetString("F40")
|
|
|
- F41 := this.GetString("F41")
|
|
|
- F42 := this.GetString("F42")
|
|
|
- F43 := this.GetString("F43")
|
|
|
- F44 := this.GetString("F44")
|
|
|
- F45 := this.GetString("F45")
|
|
|
- F46 := this.GetString("F46")
|
|
|
- F47 := this.GetString("F47")
|
|
|
- F48 := this.GetString("F48")
|
|
|
- F49 := this.GetString("F49")
|
|
|
- F50 := this.GetString("F50")
|
|
|
- F51 := this.GetString("F51")
|
|
|
- F52 := this.GetString("F52")
|
|
|
- Remark := this.GetString("Remark")
|
|
|
- DeletionStateCode := this.GetString("DeletionStateCode")
|
|
|
- CreateOn := this.GetString("CreateOn")
|
|
|
- CreateUserId := this.GetString("CreateUserId")
|
|
|
- CreateBy := this.GetString("CreateBy")
|
|
|
- ModifiedOn := this.GetString("ModifiedOn")
|
|
|
- ModifiedUserId := this.GetString("ModifiedUserId")
|
|
|
- ModifiedBy := this.GetString("ModifiedBy")
|
|
|
-
|
|
|
- if Id != "" {
|
|
|
- where = where + " and Id like '%" + Id + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Code != "" {
|
|
|
- where = where + " and Code like '%" + Code + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Name != "" {
|
|
|
- where = where + " and Name like '%" + Name + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Code1 != "" {
|
|
|
- where = where + " and Code1 like '%" + Code1 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Name1 != "" {
|
|
|
- where = where + " and Name1 like '%" + Name1 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Code2 != "" {
|
|
|
- where = where + " and Code2 like '%" + Code2 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Name2 != "" {
|
|
|
- where = where + " and Name2 like '%" + Name2 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Code3 != "" {
|
|
|
- where = where + " and Code3 like '%" + Code3 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Name3 != "" {
|
|
|
- where = where + " and Name3 like '%" + Name3 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Code4 != "" {
|
|
|
- where = where + " and Code4 like '%" + Code4 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Name4 != "" {
|
|
|
- where = where + " and Name4 like '%" + Name4 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if OrgId != "" {
|
|
|
- where = where + " and OrgId like '%" + OrgId + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if OrgName != "" {
|
|
|
- where = where + " and OrgName like '%" + OrgName + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F01 != "" {
|
|
|
- where = where + " and F01 like '%" + F01 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F02 != "" {
|
|
|
- where = where + " and F02 like '%" + F02 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F03 != "" {
|
|
|
- where = where + " and F03 like '%" + F03 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F04 != "" {
|
|
|
- where = where + " and F04 like '%" + F04 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F05 != "" {
|
|
|
- where = where + " and F05 like '%" + F05 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F06 != "" {
|
|
|
- where = where + " and F06 like '%" + F06 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F07 != "" {
|
|
|
- where = where + " and F07 like '%" + F07 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F08 != "" {
|
|
|
- where = where + " and F08 like '%" + F08 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F09 != "" {
|
|
|
- where = where + " and F09 like '%" + F09 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F10 != "" {
|
|
|
- where = where + " and F10 like '%" + F10 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F11 != "" {
|
|
|
- where = where + " and F11 like '%" + F11 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F12 != "" {
|
|
|
- where = where + " and F12 like '%" + F12 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F13 != "" {
|
|
|
- where = where + " and F13 like '%" + F13 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F14 != "" {
|
|
|
- where = where + " and F14 like '%" + F14 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F15 != "" {
|
|
|
- where = where + " and F15 like '%" + F15 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F16 != "" {
|
|
|
- where = where + " and F16 like '%" + F16 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F17 != "" {
|
|
|
- where = where + " and F17 like '%" + F17 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F18 != "" {
|
|
|
- where = where + " and F18 like '%" + F18 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F19 != "" {
|
|
|
- where = where + " and F19 like '%" + F19 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F20 != "" {
|
|
|
- where = where + " and F20 like '%" + F20 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F21 != "" {
|
|
|
- where = where + " and F21 like '%" + F21 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F22 != "" {
|
|
|
- where = where + " and F22 like '%" + F22 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F23 != "" {
|
|
|
- where = where + " and F23 like '%" + F23 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F24 != "" {
|
|
|
- where = where + " and F24 like '%" + F24 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F25 != "" {
|
|
|
- where = where + " and F25 like '%" + F25 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F26 != "" {
|
|
|
- where = where + " and F26 like '%" + F26 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F27 != "" {
|
|
|
- where = where + " and F27 like '%" + F27 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F28 != "" {
|
|
|
- where = where + " and F28 like '%" + F28 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F29 != "" {
|
|
|
- where = where + " and F29 like '%" + F29 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F30 != "" {
|
|
|
- where = where + " and F30 like '%" + F30 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F31 != "" {
|
|
|
- where = where + " and F31 like '%" + F31 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F32 != "" {
|
|
|
- where = where + " and F32 like '%" + F32 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F33 != "" {
|
|
|
- where = where + " and F33 like '%" + F33 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F34 != "" {
|
|
|
- where = where + " and F34 like '%" + F34 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F35 != "" {
|
|
|
- where = where + " and F35 like '%" + F35 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F36 != "" {
|
|
|
- where = where + " and F36 like '%" + F36 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F37 != "" {
|
|
|
- where = where + " and F37 like '%" + F37 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F38 != "" {
|
|
|
- where = where + " and F38 like '%" + F38 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F39 != "" {
|
|
|
- where = where + " and F39 like '%" + F39 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F40 != "" {
|
|
|
- where = where + " and F40 like '%" + F40 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F41 != "" {
|
|
|
- where = where + " and F41 like '%" + F41 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F42 != "" {
|
|
|
- where = where + " and F42 like '%" + F42 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F43 != "" {
|
|
|
- where = where + " and F43 like '%" + F43 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F44 != "" {
|
|
|
- where = where + " and F44 like '%" + F44 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F45 != "" {
|
|
|
- where = where + " and F45 like '%" + F45 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F46 != "" {
|
|
|
- where = where + " and F46 like '%" + F46 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F47 != "" {
|
|
|
- where = where + " and F47 like '%" + F47 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F48 != "" {
|
|
|
- where = where + " and F48 like '%" + F48 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F49 != "" {
|
|
|
- where = where + " and F49 like '%" + F49 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F50 != "" {
|
|
|
- where = where + " and F50 like '%" + F50 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F51 != "" {
|
|
|
- where = where + " and F51 like '%" + F51 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if F52 != "" {
|
|
|
- where = where + " and F52 like '%" + F52 + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if Remark != "" {
|
|
|
- where = where + " and Remark like '%" + Remark + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if DeletionStateCode != "" {
|
|
|
- where = where + " and DeletionStateCode like '%" + DeletionStateCode + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if CreateOn != "" {
|
|
|
- where = where + " and CreateOn like '%" + CreateOn + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if CreateUserId != "" {
|
|
|
- where = where + " and CreateUserId like '%" + CreateUserId + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if CreateBy != "" {
|
|
|
- where = where + " and CreateBy like '%" + CreateBy + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if ModifiedOn != "" {
|
|
|
- where = where + " and ModifiedOn like '%" + ModifiedOn + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if ModifiedUserId != "" {
|
|
|
- where = where + " and ModifiedUserId like '%" + ModifiedUserId + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if ModifiedBy != "" {
|
|
|
- where = where + " and ModifiedBy like '%" + ModifiedBy + "%'"
|
|
|
- }
|
|
|
-
|
|
|
- if CreateOn != "" {
|
|
|
- dates := strings.Split(CreateOn, ",")
|
|
|
- if len(dates) == 2 {
|
|
|
- minDate := dates[0]
|
|
|
- maxDate := dates[1]
|
|
|
- where = where + " and CreateOn>='" + minDate + "' and CreateOn<='" + maxDate + "'"
|
|
|
- }
|
|
|
- }
|
|
|
+ OrgName := this.GetString("OrgName")*/
|
|
|
|
|
|
svc := technologyservice.GetOilTechnologyServiceService(utils.DBE)
|
|
|
- var list []technologyservice.OilTechnologyService
|
|
|
- total := svc.GetPagingEntitiesWithOrderBytbl("", page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
+ var list []technologyservice.OilTechnologyServiceView
|
|
|
+ total := svc.GetMyPagingEntitiesWithOrderBytbl(OilTechsrvDetailViewName, page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
var datainfo DataInfo
|
|
|
datainfo.Items = list
|
|
|
datainfo.CurrentItemCount = total
|