|
|
@ -275,7 +275,7 @@ public class IoPurChangeService {
|
|
|
|
billNo += ioOrderEntity.getBillNo() + ",";
|
|
|
|
billNo += ioOrderEntity.getBillNo() + ",";
|
|
|
|
//插入业务单表
|
|
|
|
//插入业务单表
|
|
|
|
for (PurReceiveDetailEntity obj : m.getValue()) {
|
|
|
|
for (PurReceiveDetailEntity obj : m.getValue()) {
|
|
|
|
BasicProductsEntity basicProductsEntity = purPlanDetailService.selectIoOrderDetailBiz(obj.getId());
|
|
|
|
BasicProductsEntity basicProductsEntity = receivedetailService.selectIoOrderDetailBiz(obj.getId());
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity = new IoOrderDetailBizEntity();
|
|
|
|
IoOrderDetailBizEntity ioOrderDetailBizEntity = new IoOrderDetailBizEntity();
|
|
|
|
ioOrderDetailBizEntity.setOrderIdFk(ioOrderEntity.getBillNo());
|
|
|
|
ioOrderDetailBizEntity.setOrderIdFk(ioOrderEntity.getBillNo());
|
|
|
|
ioOrderDetailBizEntity.setBindRlFk(obj.getRelIdFk());
|
|
|
|
ioOrderDetailBizEntity.setBindRlFk(obj.getRelIdFk());
|
|
|
@ -436,10 +436,10 @@ public class IoPurChangeService {
|
|
|
|
ioOrderEntity.setAction(basicBusTypeChangeEntity.getTargetAction());
|
|
|
|
ioOrderEntity.setAction(basicBusTypeChangeEntity.getTargetAction());
|
|
|
|
ioOrderEntity.setFromCorp(m.getKey());
|
|
|
|
ioOrderEntity.setFromCorp(m.getKey());
|
|
|
|
ioOrderEntity.setFromType(ConstantStatus.FROM_Order);
|
|
|
|
ioOrderEntity.setFromType(ConstantStatus.FROM_Order);
|
|
|
|
if(basicBusTypeChangeEntity.getAuditStatus()==1){
|
|
|
|
if (basicBusTypeChangeEntity.getAuditStatus() == 1) {
|
|
|
|
ioOrderEntity.setStatus(ConstantStatus.ORDER_STATUS_TEMP_SAVE);
|
|
|
|
ioOrderEntity.setStatus(ConstantStatus.ORDER_STATUS_TEMP_SAVE);
|
|
|
|
ioOrderEntity.setDealStatus(ConstantStatus.ORDER_STATUS_TEMP_SAVE);
|
|
|
|
ioOrderEntity.setDealStatus(ConstantStatus.ORDER_STATUS_TEMP_SAVE);
|
|
|
|
}else if(basicBusTypeChangeEntity.getAuditStatus()==2){
|
|
|
|
} else if (basicBusTypeChangeEntity.getAuditStatus() == 2) {
|
|
|
|
ioOrderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK);
|
|
|
|
ioOrderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK);
|
|
|
|
ioOrderEntity.setDealStatus(ConstantStatus.ORDER_STATUS_PROCESS);
|
|
|
|
ioOrderEntity.setDealStatus(ConstantStatus.ORDER_STATUS_PROCESS);
|
|
|
|
}
|
|
|
|
}
|
|
|
|