|
|
@@ -1849,7 +1849,7 @@ func (this *OilContractController) YearList() {
|
|
|
func (this *OilContractController) GetNeedEvaList() {
|
|
|
var list []contract.OilContract
|
|
|
// TODO 加年度
|
|
|
- sql := ` select a.* from OilContract a left join OilContractReview b on b.ContractId=a.Id where a.ImportStatus > 0 and a.Status = 2 and a.SecondUnit=` + strconv.Itoa(this.User.UnitId) + ` and (b.Status < 0 or b.Status is NULL) `
|
|
|
+ sql := ` select a.* from OilContract a left join OilContractReview b on b.ContractId=a.Id where a.ImportStatus > 0 and a.Status in (2,3) and a.SecondUnit=` + strconv.Itoa(this.User.UnitId) + ` and (b.Status < 0 or b.Status is NULL) `
|
|
|
utils.DBE.Sql(sql).Find(&list)
|
|
|
|
|
|
var dataInfo DataInfo
|