#
luxiaotao1123
2021-08-09 745149fd4efc319d06538ef74887500bc26db28a
src/main/java/zy/cloud/wms/manager/controller/WorkController.java
@@ -15,6 +15,7 @@
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import zy.cloud.wms.common.model.BillDto;
import zy.cloud.wms.common.service.erp.ErpR;
import zy.cloud.wms.common.service.erp.ErpService;
import zy.cloud.wms.common.web.BaseController;
import zy.cloud.wms.manager.entity.*;
@@ -220,8 +221,9 @@
            throw new CoolException("数据异常");
        }
        // erp上传盘盈盘亏
        if (!erpService.uploadBill(dtos, docId, docNum)) {
            throw new CoolException("无法上报至erp");
        ErpR erpR = erpService.uploadBill(dtos, docId, docNum);
        if (!erpR.getSuccess()) {
            throw new CoolException("无法上报至erp:"+erpR.getMsg());
        }
        String dotsStr = JSON.toJSONString(dtos);
        log.info("盘点上传,类型:" + (docId == 14 ? "盘盈" : "盘亏") + ",单号:" + docNum + ",上传物料清单:" + dotsStr);