|
@@ -752,7 +752,7 @@ public class u8 extends Controller {
|
|
|
"inner join u8bills t2 on t1.billno=t2.billno and t1.u8id=t2.u8id \n" +
|
|
|
"left join st_stock t3 on t1.stockid=t3.stockid\n" +
|
|
|
"where t1.rb='1' and t1.u8id=" +u8id+
|
|
|
- " group by t1.itemid,case when t2.outplace='谈桥' then '103' when t2.outplace='马桥' then '109' else t3.stockno end,t1.u8id )t1 left join U8ITEMPRICE t2 on t1.u8id=t2.u8id and t1.itemid=t2.itemid left join plm_item t3 on t1.itemid=t3.itemid");
|
|
|
+ " group by t1.itemid,case when t2.outplace='谈桥' then '103' when t2.outplace='马桥' then '109' else t3.stockno end,t1.u8id )t1 left join u8itemprice t2 on t1.u8id=t2.u8id and t1.itemid=t2.itemid left join plm_item t3 on t1.itemid=t3.itemid");
|
|
|
int rowno = 1;
|
|
|
for (Row row : rows) {
|
|
|
BigDecimal qty = row.getBigDecimal("qty");
|
|
@@ -824,7 +824,7 @@ public class u8 extends Controller {
|
|
|
"inner join u8bills t2 on t1.billno=t2.billno and t1.u8id=t2.u8id \n" +
|
|
|
"left join st_stock t3 on t1.stockid=t3.stockid\n" +
|
|
|
"where t1.rb='0' and t1.u8id=" +u8id+
|
|
|
- " group by t1.itemid,case when t2.outplace='谈桥' then '103' when t2.outplace='马桥' then '109' else t3.stockno end,t1.u8id )t1 left join U8ITEMPRICE t2 on t1.u8id=t2.u8id and t1.itemid=t2.itemid left join plm_item t3 on t1.itemid=t3.itemid");
|
|
|
+ " group by t1.itemid,case when t2.outplace='谈桥' then '103' when t2.outplace='马桥' then '109' else t3.stockno end,t1.u8id )t1 left join u8itemprice t2 on t1.u8id=t2.u8id and t1.itemid=t2.itemid left join plm_item t3 on t1.itemid=t3.itemid");
|
|
|
int rowno = 1;
|
|
|
for (Row row : rows) {
|
|
|
BigDecimal qty = row.getBigDecimal("qty");
|