|
|
@@ -7,6 +7,7 @@ import com.uas.platform.b2b.publicapi.service.TurnoverService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.Iterator;
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@@ -34,7 +35,27 @@ public class TurnoverServiceImpl implements TurnoverService {
|
|
|
" left join purc$deputyorders on dei_deoid=deo_id where date_format(deo_date,'%Y')=date_format(last_day(now()), '%Y') \n" +
|
|
|
" and deo_downloadstatus = '已下载' and deo_entrystatus='已提交' group by date_format(deo_date,'%Y%m'),\n" +
|
|
|
" deo_currency order by date_format(deo_date,'%Y%m'),deo_currency";
|
|
|
- return commonDao.query(sql, Turnover.class);
|
|
|
+ List<Turnover> turnoverList = commonDao.query(sql, Turnover.class);
|
|
|
+ screenResult(turnoverList);
|
|
|
+ return turnoverList;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 筛选查询结果
|
|
|
+ *
|
|
|
+ * @param turnoverList 查询结果
|
|
|
+ */
|
|
|
+ private void screenResult(List<Turnover> turnoverList) {
|
|
|
+ Iterator<Turnover> turnovers = turnoverList.iterator();
|
|
|
+ Double minAmount = 100.00;
|
|
|
+ while (turnovers.hasNext()) {
|
|
|
+ String amount = turnovers.next().getZ();
|
|
|
+ if (amount != null) {
|
|
|
+ if (Double.valueOf(amount) <= minAmount) {
|
|
|
+ turnovers.remove();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|