|
|
@@ -6230,6 +6230,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public R submitProduction(PjShip ship) {
|
|
|
//获得所属公司
|
|
|
R<Dept> dept = sysClient.getDept(Long.valueOf(AuthUtil.getDeptId()));
|
|
|
@@ -6366,6 +6367,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public R completed(PjShip ship) {
|
|
|
// 保存订单明细
|
|
|
List<PjShipItems> shipItemsList = new ArrayList<>();
|
|
|
@@ -6547,6 +6549,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public R revokeCompleted(PjShip ship) {
|
|
|
PjShip shipVersion = baseMapper.selectById(ship.getId());
|
|
|
if (shipVersion != null && !shipVersion.getVersion().equals(ship.getVersion())) {
|
|
|
@@ -6676,6 +6679,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public R confirmPicking(PjShip ship) {
|
|
|
ship.setStatusName(OrderTypeEnum.STOP_PICKING.getType());
|
|
|
if (ObjectUtils.isNull(ship.getStorageId())) {
|
|
|
@@ -6832,6 +6836,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public R revokePicking(PjShip ship) {
|
|
|
ship.setStatusName(OrderTypeEnum.STAY_PICKING.getType());
|
|
|
ship.setUpdateUser(AuthUtil.getUserId());
|
|
|
@@ -6951,6 +6956,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public R generatePicking(PjShip ship) {
|
|
|
PjShip picking = new PjShip();
|
|
|
PjShip detail = baseMapper.selectById(ship.getId());
|