|
@@ -442,7 +442,6 @@ public class SaleServiceImpl implements SaleService{
|
|
|
prodInOutMapper.insertSelective(prodInOut);
|
|
prodInOutMapper.insertSelective(prodInOut);
|
|
|
//插入出货单从表
|
|
//插入出货单从表
|
|
|
long pi_id = prodInOut.getId();
|
|
long pi_id = prodInOut.getId();
|
|
|
-
|
|
|
|
|
for (int i=0;i<details.size();i++){
|
|
for (int i=0;i<details.size();i++){
|
|
|
SaleDetail saleDetail =details.get(i);
|
|
SaleDetail saleDetail =details.get(i);
|
|
|
ProdIODetail prodIODetail = new ProdIODetail();
|
|
ProdIODetail prodIODetail = new ProdIODetail();
|
|
@@ -472,11 +471,12 @@ public class SaleServiceImpl implements SaleService{
|
|
|
sale.setSa_sendstatus(Status.TURNOUT.getDisplay());
|
|
sale.setSa_sendstatus(Status.TURNOUT.getDisplay());
|
|
|
sale.setSa_sendstatuscode(Status.TURNOUT.name());
|
|
sale.setSa_sendstatuscode(Status.TURNOUT.name());
|
|
|
//更新存在字段
|
|
//更新存在字段
|
|
|
- saleMapper.updateByPrimaryKeySelective(sale);
|
|
|
|
|
- //日志记录
|
|
|
|
|
- DocBaseDTO baseDTO = new DocBaseDTO(pi_id, pi_inoutno, BillCodeSeq.SALEOUT.getName());
|
|
|
|
|
- //messageLogService.customizeLog(baseDTO, Operation.);
|
|
|
|
|
- return baseDTO;
|
|
|
|
|
|
|
+ saleMapper.updateByPrimaryKeySelective(sale);
|
|
|
|
|
+ prodIODetailMapper.updatePDSaleOut(pi_id);
|
|
|
|
|
+ //日志记录
|
|
|
|
|
+ DocBaseDTO baseDTO = new DocBaseDTO(pi_id, pi_inoutno, BillCodeSeq.SALEOUT.getName());
|
|
|
|
|
+ //messageLogService.customizeLog(baseDTO, Operation.);
|
|
|
|
|
+ return baseDTO;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|