|
|
@@ -743,6 +743,11 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
|
|
743
|
743
|
// 可以查询所有人通过的通知单
|
|
744
|
744
|
BusinessDeliveryStorageNoticeExample example = new BusinessDeliveryStorageNoticeExample();
|
|
745
|
745
|
Criteria createCriteria = example.createCriteria();
|
|
|
746
|
+ createCriteria.andAuditStateEqualTo(AuditType.AGREE.getAuditCode());
|
|
|
747
|
+ List<String> list = new ArrayList<String>();
|
|
|
748
|
+ list.add("1");
|
|
|
749
|
+ list.add("3");
|
|
|
750
|
+ createCriteria.andBillTypeIn(list);
|
|
746
|
751
|
if (deliveryStorageNotice != null) {
|
|
747
|
752
|
// 凭证类型.
|
|
748
|
753
|
if (StringUtils.isNotBlank(deliveryStorageNotice.getBillType())) {
|
|
|
@@ -763,16 +768,21 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
|
|
763
|
768
|
if (deliveryStorageNotice.getRootContractBid() != null) {
|
|
764
|
769
|
createCriteria.andRootContractBidEqualTo(deliveryStorageNotice.getRootContractBid());
|
|
765
|
770
|
}
|
|
766
|
|
- }else{
|
|
767
|
|
- createCriteria.andAuditStateEqualTo(AuditType.AGREE.getAuditCode());
|
|
768
|
771
|
}
|
|
769
|
772
|
|
|
770
|
773
|
// 审批通过时间倒序.
|
|
771
|
774
|
example.setOrderByClause("agree_time desc");
|
|
772
|
775
|
|
|
|
776
|
+ PageInfo<BusinessDeliveryStorageNoticeAuditVO> pageInfo = new PageInfo<BusinessDeliveryStorageNoticeAuditVO>();
|
|
|
777
|
+ // 分页.
|
|
|
778
|
+ if (pageNum != null && pageSize != null) {
|
|
|
779
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
780
|
+ }
|
|
|
781
|
+
|
|
773
|
782
|
List<BusinessDeliveryStorageNoticeAuditVO> noticeList = businessDeliveryStorageNoticeMapper.selectByExampleToVO(example);
|
|
|
783
|
+
|
|
774
|
784
|
//提货单
|
|
775
|
|
- if(!((deliveryStorageNotice.getRootContractBid() != null || deliveryStorageNotice.getPlanBid() != null) && noticeList.size()>0)){
|
|
|
785
|
+ /*if(!((deliveryStorageNotice.getRootContractBid() != null || deliveryStorageNotice.getPlanBid() != null) && noticeList.size()>0)){
|
|
776
|
786
|
//合同里面的进度要查看通知单 如果有RootContractBid 并且noticeList 有值 则说明是通知单表的 则不执行查询提货单的
|
|
777
|
787
|
BusinessLadingExample exampleLading = new BusinessLadingExample();
|
|
778
|
788
|
List<BusinessLading> list = ladingService.queryByExample(exampleLading);
|
|
|
@@ -788,26 +798,24 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
|
|
788
|
798
|
noticeList.add(businessAuditVO);
|
|
789
|
799
|
}
|
|
790
|
800
|
}
|
|
791
|
|
- }
|
|
792
|
|
- // 分页.
|
|
793
|
|
- if (pageNum != null && pageSize != null) {
|
|
794
|
|
- PageHelper.startPage(pageNum, pageSize);
|
|
795
|
|
- }
|
|
|
801
|
+ }*/
|
|
|
802
|
+
|
|
|
803
|
+
|
|
796
|
804
|
|
|
797
|
|
- PageInfo<BusinessDeliveryStorageNoticeAuditVO> pageInfo = new PageInfo<BusinessDeliveryStorageNoticeAuditVO>();
|
|
798
|
805
|
|
|
799
|
806
|
if (noticeList != null && noticeList.size() > 0) {
|
|
800
|
807
|
// 拼接通知单id.
|
|
801
|
808
|
StringBuffer sb = new StringBuffer();
|
|
802
|
|
- StringBuffer thdNumber = new StringBuffer();
|
|
|
809
|
+ //StringBuffer thdNumber = new StringBuffer();
|
|
803
|
810
|
sb.append("(");
|
|
804
|
|
- thdNumber.append("(");
|
|
|
811
|
+ //thdNumber.append("(");
|
|
805
|
812
|
for (BusinessDeliveryStorageNoticeAuditVO businessDeliveryStorageNoticeV : noticeList) {
|
|
806
|
|
- if(businessDeliveryStorageNoticeV.getBillType()!=null){//通知单
|
|
|
813
|
+ /*if(businessDeliveryStorageNoticeV.getBillType()!=null){//通知单
|
|
807
|
814
|
sb.append("\"" + businessDeliveryStorageNoticeV.getId() + "\"").append(",");
|
|
808
|
815
|
}else{//提货单
|
|
809
|
816
|
thdNumber.append("\"" + businessDeliveryStorageNoticeV.getBillNumber() + "\"").append(",");
|
|
810
|
|
- }
|
|
|
817
|
+ }*/
|
|
|
818
|
+ sb.append("\"" + businessDeliveryStorageNoticeV.getId() + "\"").append(",");
|
|
811
|
819
|
}
|
|
812
|
820
|
|
|
813
|
821
|
String substring = sb.substring(0, sb.length() - 1);
|
|
|
@@ -818,7 +826,7 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
|
|
818
|
826
|
businessSceduleList = feignAgileService.getNoticeSceduleInNoticeId(sb.toString());
|
|
819
|
827
|
|
|
820
|
828
|
}
|
|
821
|
|
- String thdNumberString = thdNumber.substring(0, thdNumber.length() - 1);
|
|
|
829
|
+ /*String thdNumberString = thdNumber.substring(0, thdNumber.length() - 1);
|
|
822
|
830
|
thdNumber = new StringBuffer(thdNumberString);
|
|
823
|
831
|
if(thdNumber.length()!=0){
|
|
824
|
832
|
thdNumber.append(")");
|
|
|
@@ -828,7 +836,7 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
|
|
828
|
836
|
businessSceduleList.add(thd);
|
|
829
|
837
|
}
|
|
830
|
838
|
}
|
|
831
|
|
- }
|
|
|
839
|
+ } */
|
|
832
|
840
|
|
|
833
|
841
|
|
|
834
|
842
|
|
|
|
@@ -929,10 +937,10 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
|
|
929
|
937
|
}
|
|
930
|
938
|
|
|
931
|
939
|
pageInfo = new PageInfo<BusinessDeliveryStorageNoticeAuditVO>(noticeList);
|
|
932
|
|
- if(pageInfo.getTotal()>0){
|
|
|
940
|
+ /* if(pageInfo.getTotal()>0){
|
|
933
|
941
|
pageInfo.setStartRow(pageInfo.getStartRow()+1);
|
|
934
|
942
|
pageInfo.setEndRow(pageInfo.getEndRow()+1);
|
|
935
|
|
- }
|
|
|
943
|
+ }*/
|
|
936
|
944
|
}
|
|
937
|
945
|
return pageInfo;
|
|
938
|
946
|
}
|