|
@@ -231,18 +231,21 @@ public class OutStoreFormActivitiServiceImpl extends BaseFormCheckServiceAbstrac
|
|
outStoreForm.setUpdateUserName(SecurityUtils.getUserInfo().getRealName());
|
|
outStoreForm.setUpdateUserName(SecurityUtils.getUserInfo().getRealName());
|
|
outStoreFormMapper.updateByPrimaryKeySelective(outStoreForm);
|
|
outStoreFormMapper.updateByPrimaryKeySelective(outStoreForm);
|
|
try {
|
|
try {
|
|
- if (OutStoreStatusEnum.PUSH_OK.getValue() == outStoreForm.getStatus()) {
|
|
|
|
- //推送用友成功,将出库单推送到采购系统
|
|
|
|
|
|
+ if (OutStoreStatusEnum.PUSH_OK.getValue() == outStoreForm.getStatus().intValue()) {
|
|
|
|
+ // 推送用友成功,将出库单推送到采购系统
|
|
OutStoreFormVO vo = BeanConverterUtil.copyObjectProperties(outStoreFormMapper.selectByPrimaryKey(actAuditRequest.getId()), OutStoreFormVO.class);
|
|
OutStoreFormVO vo = BeanConverterUtil.copyObjectProperties(outStoreFormMapper.selectByPrimaryKey(actAuditRequest.getId()), OutStoreFormVO.class);
|
|
- OutStoreDetail detail = new OutStoreDetail();
|
|
|
|
- detail.setOutId(vo.getId());
|
|
|
|
- List<OutStoreDetail> outStoreDetails = outStoreDetailMapper.select(detail);
|
|
|
|
- List<OutStoreDetailVO> outStoreDetailVOS = null;
|
|
|
|
- if (outStoreDetails != null && outStoreDetails.size() > 0) {
|
|
|
|
- outStoreDetailVOS = BeanConverterUtil.copyListProperties(outStoreDetails, OutStoreDetailVO.class);
|
|
|
|
|
|
+ if(vo.getOutFlag().equals(YesNoEnum.YES.getValue())){
|
|
|
|
+ // 出库单发送,退库入库单不推送
|
|
|
|
+ OutStoreDetail detail = new OutStoreDetail();
|
|
|
|
+ detail.setOutId(vo.getId());
|
|
|
|
+ List<OutStoreDetail> outStoreDetails = outStoreDetailMapper.select(detail);
|
|
|
|
+ List<OutStoreDetailVO> outStoreDetailVOS = null;
|
|
|
|
+ if (outStoreDetails != null && outStoreDetails.size() > 0) {
|
|
|
|
+ outStoreDetailVOS = BeanConverterUtil.copyListProperties(outStoreDetails, OutStoreDetailVO.class);
|
|
|
|
+ }
|
|
|
|
+ vo.setDetailList(outStoreDetailVOS);
|
|
|
|
+ yongyouService.pushOutStoreFormToPurchase(vo);
|
|
}
|
|
}
|
|
- vo.setDetailList(outStoreDetailVOS);
|
|
|
|
- yongyouService.pushOutStoreFormToPurchase(vo);
|
|
|
|
}
|
|
}
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
|
|