|
|
@@ -29,7 +29,7 @@ func (s *OilContractService) GetHandOnStatisticsList (queryParam HandOnStatistic
|
|
|
" FROM OilContract a " +
|
|
|
" LEFT JOIN OilContractReview b ON a.Id = b.ContractId " +
|
|
|
" LEFT JOIN Base_Organize c on SecondUnit = c.Id"
|
|
|
- sql += " WHERE 1=1 "
|
|
|
+ sql += " WHERE a.ImportStatus > 0 and a.Status < 3 "
|
|
|
if queryParam.YearNum > 0 {
|
|
|
sql += " AND " + strconv.Itoa(queryParam.YearNum) + " BETWEEN YEAR(a.StartDate) AND YEAR(a.EndDate)"
|
|
|
}
|