|
|
@@ -349,13 +349,6 @@ public class InboundPurchaseService extends BaseService<Inbound> {
|
|
|
//根据id查询
|
|
|
InboundItemResponse inboundItemResponse = inboundItemMapper.selectById(inboundItemVO.getItemId());
|
|
|
|
|
|
- //region 不能新建
|
|
|
- if (inboundItemVO.getFromItemId() == null) {
|
|
|
- throw new BaseBusinessException(ErrorCodeEnum.ITEMS_THAT_ARE_NOT_AVAILABLE_HANDLE.getCode(),
|
|
|
- ErrorCodeEnum.ITEMS_THAT_ARE_NOT_AVAILABLE_HANDLE.getMessage());
|
|
|
- }
|
|
|
- //endregion
|
|
|
-
|
|
|
//region 编辑明细 赋值
|
|
|
if (inboundItemVO.getItemId() != null) {
|
|
|
|
|
|
@@ -543,13 +536,6 @@ public class InboundPurchaseService extends BaseService<Inbound> {
|
|
|
List<InboundItemVO> itemList = inboundVO.getItemList();
|
|
|
for (InboundItemVO inboundItemVO : itemList) {
|
|
|
|
|
|
- //region 不能新建
|
|
|
- if (inboundItemVO.getFromItemId() == null) {
|
|
|
- throw new BaseBusinessException(ErrorCodeEnum.ITEMS_THAT_ARE_NOT_AVAILABLE_HANDLE.getCode(),
|
|
|
- ErrorCodeEnum.ITEMS_THAT_ARE_NOT_AVAILABLE_HANDLE.getMessage());
|
|
|
- }
|
|
|
- //endregion
|
|
|
-
|
|
|
//根据id查询 获取到还未进行修改的数据
|
|
|
InboundItemResponse inboundItemResponse = inboundItemMapper.selectById(inboundItemVO.getItemId());
|
|
|
|
|
|
@@ -915,12 +901,6 @@ public class InboundPurchaseService extends BaseService<Inbound> {
|
|
|
ErrorCodeEnum.INBOUND_ITEM_NOT_EXIST.getMessage());
|
|
|
}
|
|
|
for (InboundItemVO inboundItemVO : inboundVO.getItemList()) {
|
|
|
- //region 不能新建
|
|
|
- if (inboundItemVO.getFromItemId() == null) {
|
|
|
- throw new BaseBusinessException(ErrorCodeEnum.ITEMS_THAT_ARE_NOT_AVAILABLE_HANDLE.getCode(),
|
|
|
- ErrorCodeEnum.ITEMS_THAT_ARE_NOT_AVAILABLE_HANDLE.getMessage());
|
|
|
- }
|
|
|
- //endregion
|
|
|
|
|
|
//入库明细根据id查询
|
|
|
InboundItemResponse inboundItemResponse = inboundItemMapper.selectById(inboundItemVO.getItemId());
|