|
|
@@ -330,6 +330,8 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
tabinx := this.GetString("tabinx")
|
|
|
supplierTypeCode := this.GetString("SupplierTypeCode")
|
|
|
supplierName := this.GetString("SupplierName")
|
|
|
+ CreateOn := this.GetString("CreateOn")
|
|
|
+
|
|
|
//企业用户必须加创建人条件
|
|
|
var registerUser register.OilCorporateInfo
|
|
|
sql := " UserName='" + this.User.Username + "'"
|
|
|
@@ -344,12 +346,18 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
if supplierName != "" {
|
|
|
where = where + " and a.SupplierName like '%" + supplierName + "%'"
|
|
|
}
|
|
|
-
|
|
|
var total int64 = 0
|
|
|
var datainfo DataInfo
|
|
|
if tabinx == "1" || tabinx == "0" {
|
|
|
var list []Processinfo //[]supplier.OilSupplierView
|
|
|
-
|
|
|
+ if CreateOn != "" {
|
|
|
+ dates := strings.Split(CreateOn, ",")
|
|
|
+ if len(dates) == 2 {
|
|
|
+ minDate := dates[0]
|
|
|
+ maxDate := dates[1]
|
|
|
+ where = where + " and b.CreateOn>='" + minDate + "' and b.CreateOn<='" + maxDate + "'"
|
|
|
+ }
|
|
|
+ }
|
|
|
total = total + svc.GetProcessInfoWithOrderBytbl(OilSupplierName, OilSupplierCertName, page.CurrentPage, page.Size, "b.Id", asc, &list, where)
|
|
|
processinfolist = append(processinfolist, list...)
|
|
|
//datainfo.Items = processinfolist
|
|
|
@@ -366,6 +374,14 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
if supplierName != "" {
|
|
|
whereapp = whereapp + " and a.SupplierName like '%" + supplierName + "%'"
|
|
|
}
|
|
|
+ if CreateOn != "" {
|
|
|
+ dates := strings.Split(CreateOn, ",")
|
|
|
+ if len(dates) == 2 {
|
|
|
+ minDate := dates[0]
|
|
|
+ maxDate := dates[1]
|
|
|
+ whereapp = whereapp + " a.and CreateOn>='" + minDate + "' and a.CreateOn<='" + maxDate + "'"
|
|
|
+ }
|
|
|
+ }
|
|
|
var list []Processinfo//[]suppliercertappend.OilSupplierCertAppend
|
|
|
svc := suppliercertappend.GetOilSupplierCertAppendService(utils.DBE)
|
|
|
total = total + svc.GetProcessInfoWithOrderBytbl(OilSupplierCertAppendName, page.CurrentPage, page.Size, "a.Id", asc, &list, whereapp)
|
|
|
@@ -376,13 +392,21 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
whereapp := "1=1"
|
|
|
//企业用户必须加创建人条件
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
- whereapp = whereapp + " and CreateUserId = '" + this.User.Id + "'"
|
|
|
+ whereapp = whereapp + " and a.CreateUserId = '" + this.User.Id + "'"
|
|
|
}
|
|
|
if supplierTypeCode != "" {
|
|
|
- whereapp = whereapp + " and SupplierTypeName like '%" + supplierTypeCode + "%'"
|
|
|
+ whereapp = whereapp + " and a.SupplierTypeName like '%" + supplierTypeCode + "%'"
|
|
|
}
|
|
|
if supplierName != "" {
|
|
|
- whereapp = whereapp + " and SupplierName like '%" + supplierName + "%'"
|
|
|
+ whereapp = whereapp + " and a.SupplierName like '%" + supplierName + "%'"
|
|
|
+ }
|
|
|
+ if CreateOn != "" {
|
|
|
+ dates := strings.Split(CreateOn, ",")
|
|
|
+ if len(dates) == 2 {
|
|
|
+ minDate := dates[0]
|
|
|
+ maxDate := dates[1]
|
|
|
+ whereapp = whereapp + " and a.CreateOn>='" + minDate + "' and a.CreateOn<='" + maxDate + "'"
|
|
|
+ }
|
|
|
}
|
|
|
var list []Processinfo//[]annualaudit.OilAnnualAudit
|
|
|
svc := annualaudit.GetOilAnnualAuditService(utils.DBE)
|
|
|
@@ -394,10 +418,18 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
whereapp := "1=1"
|
|
|
//企业用户必须加创建人条件
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
- whereapp = whereapp + " and CreateUserId = '" + this.User.Id + "'"
|
|
|
+ whereapp = whereapp + " and a.CreateUserId = '" + this.User.Id + "'"
|
|
|
}
|
|
|
if supplierName != "" {
|
|
|
- whereapp = whereapp + " and SupplierName like '%" + supplierName + "%'"
|
|
|
+ whereapp = whereapp + " and a.SupplierName like '%" + supplierName + "%'"
|
|
|
+ }
|
|
|
+ if CreateOn != "" {
|
|
|
+ dates := strings.Split(CreateOn, ",")
|
|
|
+ if len(dates) == 2 {
|
|
|
+ minDate := dates[0]
|
|
|
+ maxDate := dates[1]
|
|
|
+ whereapp = whereapp + " and a.CreateOn>='" + minDate + "' and a.CreateOn<='" + maxDate + "'"
|
|
|
+ }
|
|
|
}
|
|
|
var list []Processinfo//[]infochange.OilInfoChange
|
|
|
svc := infochange.GetInfoChangeService(utils.DBE)
|
|
|
@@ -414,6 +446,14 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
if supplierName != "" {
|
|
|
whereapp = whereapp + " and SupplierName like '%" + supplierName + "%'"
|
|
|
}
|
|
|
+ if CreateOn != "" {
|
|
|
+ dates := strings.Split(CreateOn, ",")
|
|
|
+ if len(dates) == 2 {
|
|
|
+ minDate := dates[0]
|
|
|
+ maxDate := dates[1]
|
|
|
+ whereapp = whereapp + " and CreateOn>='" + minDate + "' and CreateOn<='" + maxDate + "'"
|
|
|
+ }
|
|
|
+ }
|
|
|
svc := qualchange.GetQualChangeService(utils.DBE)
|
|
|
var list []qualchange.OilQualChangeMain
|
|
|
total = svc.GetPagingEntitiesWithOrderBytbl("", page.CurrentPage, page.Size, orderby, asc, &list, whereapp)
|