|
|
@@ -337,6 +337,9 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
* @param prodInOutDTO
|
|
|
*/
|
|
|
private void uploadToB2B(ProdInOutDTO prodInOutDTO) {
|
|
|
+ if ("待上传".equals(prodInOutDTO.getB2bStatus())) {
|
|
|
+ throw new BizException(BizExceptionCode.PURCHASE_INOUTORDER_AUDIT_PREUPLOAD);
|
|
|
+ }
|
|
|
if (ConfigsCache.current().enableB2B()){
|
|
|
MessageInfo messageInfo = null;
|
|
|
if ("采购验收单".equals(prodInOutDTO.getPi_class())){
|
|
|
@@ -417,6 +420,7 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
*/
|
|
|
private void uploadResToB2B(ProdInOutDTO prodInOutDTO) {
|
|
|
if (ConfigsCache.current().enableB2B()){
|
|
|
+ updateB2BStatus(prodInOutDTO.getId(), "待上传");
|
|
|
MessageInfo messageInfo = null;
|
|
|
if ("采购验收单".equals(prodInOutDTO.getPi_class())){
|
|
|
messageInfo = new MessageInfo(BaseContextHolder.getUserId(), BillCodeSeq.PURCHASEINRES.name(), String.valueOf(prodInOutDTO.getId()), BaseContextHolder.getCompanyId());
|