|
@@ -86,9 +86,15 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 |
|
@@ -86,9 +86,15 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 |
86
|
datasql.WriteString(s)
|
86
|
datasql.WriteString(s)
|
87
|
countsql.WriteString(s)
|
87
|
countsql.WriteString(s)
|
88
|
}
|
88
|
}
|
89
|
- if param.CreateTimeBegin > 0 && param.CreateTimeEnd > 0 {
|
|
|
90
|
- cond = append(cond, param.CreateTimeBegin, param.CreateTimeEnd)
|
|
|
91
|
- s := ` AND (UNIX_TIMESTAMP(a.create_at) BETWEEN ? AND ? ) `
|
89
|
+ if param.CreateTimeBegin > 0 {
|
|
|
90
|
+ cond = append(cond, param.CreateTimeBegin)
|
|
|
91
|
+ s := ` AND UNIX_TIMESTAMP(a.create_at)>=? `
|
|
|
92
|
+ datasql.WriteString(s)
|
|
|
93
|
+ countsql.WriteString(s)
|
|
|
94
|
+ }
|
|
|
95
|
+ if param.CreateTimeEnd > 0 {
|
|
|
96
|
+ cond = append(cond, param.CreateTimeEnd)
|
|
|
97
|
+ s := ` AND UNIX_TIMESTAMP(a.create_at)<=? `
|
92
|
datasql.WriteString(s)
|
98
|
datasql.WriteString(s)
|
93
|
countsql.WriteString(s)
|
99
|
countsql.WriteString(s)
|
94
|
}
|
100
|
}
|
|
@@ -123,7 +129,7 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 |
|
@@ -123,7 +129,7 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 |
123
|
PublishStatusName: models.ChancePublishStatusMap[v.PublishStatus],
|
129
|
PublishStatusName: models.ChancePublishStatusMap[v.PublishStatus],
|
124
|
ReviewStatus: v.ReviewStatus,
|
130
|
ReviewStatus: v.ReviewStatus,
|
125
|
ReviewStatusName: models.ChanceReviewStatusMap[v.ReviewStatus],
|
131
|
ReviewStatusName: models.ChanceReviewStatusMap[v.ReviewStatus],
|
126
|
- Code: v.Code,
|
132
|
+ TemplateCode: v.Code,
|
127
|
TemplateName: v.TemplateName,
|
133
|
TemplateName: v.TemplateName,
|
128
|
}
|
134
|
}
|
129
|
|
135
|
|
|
@@ -140,6 +146,7 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 |
|
@@ -140,6 +146,7 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 |
140
|
}
|
146
|
}
|
141
|
if ct, err := models.GetChanceTypeById(v.ChanceTypeId); err == nil {
|
147
|
if ct, err := models.GetChanceTypeById(v.ChanceTypeId); err == nil {
|
142
|
item.ChanceType = ct.Name
|
148
|
item.ChanceType = ct.Name
|
|
|
149
|
+ item.ChanceTypeCode = ct.Code
|
143
|
}
|
150
|
}
|
144
|
returnData.List = append(returnData.List, item)
|
151
|
returnData.List = append(returnData.List, item)
|
145
|
|
152
|
|