|
|
@@ -46,7 +46,7 @@ public class SyncProductStockTask {
|
|
|
String Sql="select * from (select rownum rn, A.* from (select ct_code,CUSTOMTABLEDETAIL.*,nvl(remain_sum,0) remain_sum,nvl(pr_unit,'PCS') pr_unit from CUSTOMTABLE left join CUSTOMTABLEDETAIL on ct_id=cd_ctid " +
|
|
|
" left join (select ba_prodcode,sum(ba_remain) remain_sum from batch where nvl(ba_remain,0)>0 group by ba_prodcode) A on ba_prodcode=cd_varchar50_1 " +
|
|
|
" left join product on cd_varchar50_1=pr_code " +
|
|
|
- " where ct_caller='XiaoMiProduct' order by cd_detno) A) where rn<=5 and rn>4";
|
|
|
+ " where 1=2 and ct_caller='XiaoMiProduct' order by cd_detno) A) where rn<=5 and rn>4";
|
|
|
SqlRowList rs = baseDao.queryForRowSet(Sql);
|
|
|
while (rs.next()){
|
|
|
Map<String,Object> map = new HashMap<>();
|