|
|
@@ -154,7 +154,7 @@ public class PurchaseTask extends AbstractTask {
|
|
|
|
|
|
@TaskMapping(title = "上传结案、反结案采购订单", fixedDelay = 60000)
|
|
|
public void uploadPurchaseEnd() {
|
|
|
- List<PurchaseDetailEnd> details = jdbcTemplate.queryForBeanList("select pd_id,pd_code,pd_detno,case when pd_mrpstatuscode='FINISH' then 1 else 0 end pd_ended from PurchaseDetail left join purchase on pd_puid=pu_id left join vendor on pu_vendcode=ve_code where PU_SENDSTATUS='已上传' and nvl(pu_ordertype,' ')<>'B2C' and pd_endstatus='待上传' and ve_uu is not null and nvl(ve_b2benable,0)=1 order by pd_code,pd_detno",
|
|
|
+ List<PurchaseDetailEnd> details = jdbcTemplate.queryForBeanList("select * from (select pd_id,pd_code,pd_detno,case when pd_mrpstatuscode='FINISH' then 1 else 0 end pd_ended from PurchaseDetail left join purchase on pd_puid=pu_id left join vendor on pu_vendcode=ve_code where PU_SENDSTATUS='已上传' and nvl(pu_ordertype,' ')<>'B2C' and pd_endstatus='待上传' and ve_uu is not null and nvl(ve_b2benable,0)=1 order by pd_code,pd_detno) where rownum <= 200",
|
|
|
PurchaseDetailEnd.class);
|
|
|
if (!CollectionUtils.isEmpty(details)) {
|
|
|
ContextHolder.setDataSize(details.size());
|