fix:出入库单据同步中鼎错填仓库问题
This commit is contained in:
@@ -8,6 +8,7 @@ import org.nl.common.exception.BadRequestException;
|
|||||||
import org.nl.wms.ext_manage.purchase.service.EasToWmsService;
|
import org.nl.wms.ext_manage.purchase.service.EasToWmsService;
|
||||||
import org.nl.wms.ext_manage.purchase.service.InboundEasSyncService;
|
import org.nl.wms.ext_manage.purchase.service.InboundEasSyncService;
|
||||||
import org.nl.wms.ext_manage.purchase.service.dto.BillChangeDto;
|
import org.nl.wms.ext_manage.purchase.service.dto.BillChangeDto;
|
||||||
|
import org.nl.wms.ext_manage.service.WmsToZDWmdService;
|
||||||
import org.nl.wms.pm_manage.purchase.service.PurchaseService;
|
import org.nl.wms.pm_manage.purchase.service.PurchaseService;
|
||||||
import org.nl.wms.pm_manage.purchase.service.dao.Purchasedtl;
|
import org.nl.wms.pm_manage.purchase.service.dao.Purchasedtl;
|
||||||
import org.nl.wms.pm_manage.purchase.service.dao.Purchasemst;
|
import org.nl.wms.pm_manage.purchase.service.dao.Purchasemst;
|
||||||
@@ -29,6 +30,8 @@ public class EasToWmsServiceImpl implements EasToWmsService {
|
|||||||
private PurchasemstMapper purchasemstMapper;
|
private PurchasemstMapper purchasemstMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
private PurchasedtlMapper purchasedtlMapper;
|
private PurchasedtlMapper purchasedtlMapper;
|
||||||
|
@Autowired
|
||||||
|
private WmsToZDWmdService wmsToZDWmdService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JSONObject billChangeHandler(BillChangeDto billChangeDto) {
|
public JSONObject billChangeHandler(BillChangeDto billChangeDto) {
|
||||||
@@ -47,6 +50,16 @@ public class EasToWmsServiceImpl implements EasToWmsService {
|
|||||||
.eq(Purchasemst::getBill_id, billId));
|
.eq(Purchasemst::getBill_id, billId));
|
||||||
purchasedtlMapper.delete(new LambdaQueryWrapper<Purchasedtl>()
|
purchasedtlMapper.delete(new LambdaQueryWrapper<Purchasedtl>()
|
||||||
.eq(Purchasedtl::getBill_id, billId));
|
.eq(Purchasedtl::getBill_id, billId));
|
||||||
|
if (billChangeDto.getStatus() == 3){
|
||||||
|
if (one.getForwardZD() == 2){
|
||||||
|
//已经转发给中鼎并且需要删除单据
|
||||||
|
wmsToZDWmdService.syncPurchaseReceiving(billChangeDto);
|
||||||
|
}
|
||||||
|
JSONObject result = new JSONObject();
|
||||||
|
result.put("respCode", 0);
|
||||||
|
result.put("respMsg", "单据变更通知成功");
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Purchasemst purchasemst = new Purchasemst();
|
Purchasemst purchasemst = new Purchasemst();
|
||||||
@@ -59,7 +72,6 @@ public class EasToWmsServiceImpl implements EasToWmsService {
|
|||||||
purchasemst.setBill_status(PurchaseBillStatus.W_SYNC.getCode());
|
purchasemst.setBill_status(PurchaseBillStatus.W_SYNC.getCode());
|
||||||
purchaseService.save(purchasemst);
|
purchaseService.save(purchasemst);
|
||||||
JSONObject result = new JSONObject();
|
JSONObject result = new JSONObject();
|
||||||
|
|
||||||
result.put("respCode", 0);
|
result.put("respCode", 0);
|
||||||
result.put("respMsg", "单据变更通知成功");
|
result.put("respMsg", "单据变更通知成功");
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user