|
|
@@ -1,14 +1,15 @@
|
|
|
package oilsupplier
|
|
|
|
|
|
import (
|
|
|
- "dashoo.cn/business/userRole"
|
|
|
+ "encoding/json"
|
|
|
+ "strings"
|
|
|
+ "time"
|
|
|
+
|
|
|
"dashoo.cn/backend/api/business/baseUser"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/suppliercert"
|
|
|
. "dashoo.cn/backend/api/controllers"
|
|
|
+ "dashoo.cn/business/userRole"
|
|
|
"dashoo.cn/utils"
|
|
|
- "encoding/json"
|
|
|
- "strings"
|
|
|
- "time"
|
|
|
)
|
|
|
|
|
|
type OilSupplierCertController struct {
|
|
|
@@ -44,7 +45,7 @@ func (this *OilSupplierCertController) GetEntityList() {
|
|
|
RecDate := this.GetString("RecDate")
|
|
|
RecUnitId := this.GetString("RecUnitId")
|
|
|
RecUnitName := this.GetString("RecUnitName")
|
|
|
- Status := this.GetString("Status")
|
|
|
+ StatusA := this.GetString("StatusA")
|
|
|
BackReason := this.GetString("BackReason")
|
|
|
InFlag := this.GetString("InFlag")
|
|
|
EffectStartTime := this.GetString("EffectStartTime")
|
|
|
@@ -77,192 +78,154 @@ func (this *OilSupplierCertController) GetEntityList() {
|
|
|
where = where + " and Id like '%" + Id + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if SupplierId != "" {
|
|
|
where = where + " and SupplierId like '%" + SupplierId + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if AccessCardNo != "" {
|
|
|
where = where + " and AccessCardNo like '%" + AccessCardNo + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if SupplierTypeCode != "" {
|
|
|
where = where + " and SupplierTypeCode like '%" + SupplierTypeCode + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if SupplierTypeName != "" {
|
|
|
where = where + " and SupplierTypeName like '%" + SupplierTypeName + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if RecUnitReason != "" {
|
|
|
where = where + " and RecUnitReason like '%" + RecUnitReason + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if RecUnitPerson != "" {
|
|
|
where = where + " and RecUnitPerson like '%" + RecUnitPerson + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if RecDate != "" {
|
|
|
where = where + " and RecDate like '%" + RecDate + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if RecUnitId != "" {
|
|
|
where = where + " and RecUnitId like '%" + RecUnitId + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if RecUnitName != "" {
|
|
|
where = where + " and RecUnitName like '%" + RecUnitName + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if Status != "" {
|
|
|
- where = where + " and Status like '%" + Status + "%'"
|
|
|
+ if StatusA != "" {
|
|
|
+ where = where + " and StatusA like '%" + StatusA + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if BackReason != "" {
|
|
|
where = where + " and BackReason like '%" + BackReason + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if InFlag != "" {
|
|
|
where = where + " and InFlag like '%" + InFlag + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if EffectStartTime != "" {
|
|
|
where = where + " and EffectStartTime like '%" + EffectStartTime + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if EffectEndTime != "" {
|
|
|
where = where + " and EffectEndTime like '%" + EffectEndTime + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if AuditProcessNote != "" {
|
|
|
where = where + " and AuditProcessNote like '%" + AuditProcessNote + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if AuditDate != "" {
|
|
|
where = where + " and AuditDate like '%" + AuditDate + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if PayNotice != "" {
|
|
|
where = where + " and PayNotice like '%" + PayNotice + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if SupplierStatus != "" {
|
|
|
where = where + " and SupplierStatus like '%" + SupplierStatus + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if MgrType != "" {
|
|
|
where = where + " and MgrType like '%" + MgrType + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if Type != "" {
|
|
|
where = where + " and Type like '%" + Type + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if MgrUnit != "" {
|
|
|
where = where + " and MgrUnit like '%" + MgrUnit + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if AddinTime != "" {
|
|
|
where = where + " and AddinTime like '%" + AddinTime + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if EffectTime != "" {
|
|
|
where = where + " and EffectTime like '%" + EffectTime + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if ApplyTime != "" {
|
|
|
where = where + " and ApplyTime like '%" + ApplyTime + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if SupplierNo != "" {
|
|
|
where = where + " and SupplierNo like '%" + SupplierNo + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if MDMFlag != "" {
|
|
|
where = where + " and MDMFlag like '%" + MDMFlag + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if InternalFlag != "" {
|
|
|
where = where + " and InternalFlag like '%" + InternalFlag + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if ImportFlag != "" {
|
|
|
where = where + " and ImportFlag like '%" + ImportFlag + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if OutsideFlog != "" {
|
|
|
where = where + " and OutsideFlog like '%" + OutsideFlog + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if Remark != "" {
|
|
|
where = where + " and Remark like '%" + Remark + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if IsDelete != "" {
|
|
|
where = where + " and IsDelete like '%" + IsDelete + "%'"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
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 {
|
|
|
@@ -459,8 +422,6 @@ func (this *OilSupplierCertController) UpdateEntity() {
|
|
|
"ModifiedUserId",
|
|
|
|
|
|
"ModifiedBy",
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
err := svc.UpdateEntityBytbl(OilSupplierCertName, id, &model, cols)
|
|
|
if err == nil {
|
|
|
@@ -507,4 +468,4 @@ func (this *OilSupplierCertController) DeleteEntity() {
|
|
|
this.Data["json"] = &errinfo
|
|
|
this.ServeJSON()
|
|
|
}
|
|
|
-}
|
|
|
+}
|