|
|
@@ -82,8 +82,9 @@ func (this *SelectController) GetTList() {
|
|
|
orderby := "a.Id"
|
|
|
asc := true
|
|
|
Order := this.GetString("Order")
|
|
|
- InFlag := this.GetString("InFlag")
|
|
|
Prop := this.GetString("Prop")
|
|
|
+ OperType := this.GetString("OperType")
|
|
|
+ Grade := this.GetString("Grade")
|
|
|
CheckUId := this.GetString("CheckUId")
|
|
|
FullId := this.GetString("FullId")
|
|
|
if Order != "" && Prop != "" {
|
|
|
@@ -98,10 +99,6 @@ func (this *SelectController) GetTList() {
|
|
|
where = where + " and b.AccessCardNo like '%" + model.AccessCardNo + "%'"
|
|
|
}
|
|
|
|
|
|
- if InFlag != "" {
|
|
|
- where = where + " and b.InFlag = " + InFlag
|
|
|
- }
|
|
|
-
|
|
|
//企业名称
|
|
|
if model.SupplierName != "" {
|
|
|
where = where + " and a.SupplierName like '%" + model.SupplierName + "%'"
|
|
|
@@ -141,6 +138,23 @@ func (this *SelectController) GetTList() {
|
|
|
if model.DepositBank != "" {
|
|
|
where = where + " and a.DepositBank like '%" + model.DepositBank + "%'"
|
|
|
}
|
|
|
+
|
|
|
+ if OperType == "1" {
|
|
|
+ OperType = "制造商"
|
|
|
+ } else if OperType == "2" {
|
|
|
+ OperType = "代理商"
|
|
|
+ } else if OperType == "3" {
|
|
|
+ OperType = "贸易商"
|
|
|
+ }
|
|
|
+ //准入状态
|
|
|
+ if OperType != "" {
|
|
|
+ where = where + " and a.OperType = '" + OperType + "'"
|
|
|
+ }
|
|
|
+ //级别
|
|
|
+ if Grade != "" {
|
|
|
+ where = where + " and a.Grade = '" + Grade + "'"
|
|
|
+ }
|
|
|
+
|
|
|
//HSE审查
|
|
|
if model.HseTraining != "" {
|
|
|
where = where + " and a.HseTraining = '" + model.HseTraining + "'"
|
|
|
@@ -472,7 +486,7 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
|
|
|
//获取分页信息
|
|
|
page := this.GetPageInfoForm()
|
|
|
- where := " 1=1 "
|
|
|
+ where := " 1=1 and b.WorkflowId != '' and b.WorkflowId != '0' "
|
|
|
orderby := "Id"
|
|
|
asc := false
|
|
|
Order := this.GetString("Order")
|
|
|
@@ -520,7 +534,7 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
//datainfo.Items = processinfolist
|
|
|
}
|
|
|
if tabinx == "2" || tabinx == "0" {
|
|
|
- whereapp := "1=1"
|
|
|
+ whereapp := "1=1 and a.WorkflowId != '' and a.WorkflowId != '0'"
|
|
|
//企业用户必须加创建人条件
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
whereapp = whereapp + " and a.CreateUserId = '" + this.User.Id + "'"
|
|
|
@@ -546,7 +560,7 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
//datainfo.Items = processinfolist
|
|
|
}
|
|
|
if tabinx == "3" || tabinx == "0" {
|
|
|
- whereapp := "1=1"
|
|
|
+ whereapp := "1=1 and a.WorkflowId != '' and a.WorkflowId != '0'"
|
|
|
//企业用户必须加创建人条件
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
whereapp = whereapp + " and a.CreateUserId = '" + this.User.Id + "'"
|
|
|
@@ -572,7 +586,7 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
//datainfo.Items = processinfolist
|
|
|
}
|
|
|
if tabinx == "4" || tabinx == "0" {
|
|
|
- whereapp := "1=1"
|
|
|
+ whereapp := "1=1 and a.WorkflowId != '' and a.WorkflowId != '0'"
|
|
|
//企业用户必须加创建人条件
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
whereapp = whereapp + " and a.CreateUserId = '" + this.User.Id + "'"
|
|
|
@@ -595,7 +609,7 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
//datainfo.Items = processinfolist
|
|
|
}
|
|
|
if tabinx == "5" {
|
|
|
- whereapp := "1=1"
|
|
|
+ whereapp := "1=1 and WorkflowId != '' and WorkflowId != '0'"
|
|
|
//企业用户必须加创建人条件
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
whereapp = whereapp + " and CreateUserId = '" + this.User.Id + "'"
|