|
|
@@ -37,7 +37,7 @@ public class PurchaseProdInOutTask extends AbstractTask {
|
|
|
*/
|
|
|
private List<PurchaseProdInOut> getProInOutUpload() {
|
|
|
List<PurchaseProdInOut> prodInOuts = jdbcTemplate.queryForBeanList(
|
|
|
- "select * from (select prodinout.*, ve_uu pi_vendoruu from prodinout left join vendor on prodinout.pi_cardcode = vendor.ve_code where pi_class='采购验收单' and pi_status = '已过账' and (pi_sendstatus = '待上传' or pi_sendstatus='上传中') and ve_uu is not null and nvl(ve_b2benable,0)=1 ) where rownum <= 200 and exists (select 1 from purchase,prodiodetail where pd_piid=pi_id and pu_sendstatus='已上传')",
|
|
|
+ "select * from (select prodinout.*, ve_uu pi_vendoruu from prodinout left join vendor on prodinout.pi_cardcode = vendor.ve_code where pi_class='采购验收单' and pi_status = '已过账' and (pi_sendstatus = '待上传' or pi_sendstatus='上传中') and ve_uu is not null and nvl(ve_b2benable,0)=1 ) where rownum <= 50 and exists (select 1 from purchase,prodiodetail where pd_piid=pi_id and pu_sendstatus='已上传')",
|
|
|
PurchaseProdInOut.class);
|
|
|
for (PurchaseProdInOut prodInOut : prodInOuts) {
|
|
|
List<PurchaseProdInOutDetail> details = jdbcTemplate.queryForBeanList(
|