Commit bf161c194d5513e915d518d7a5efd087779e0469
1 parent
5b941846
修复补充入库问题
Showing
4 changed files
with
10 additions
and
4 deletions
ant-design-vue-jeecg/src/views/system/config/modules/ContainerTypeForm.vue
ant-design-vue-jeecg/src/views/system/receipt/modules/ReceiptContainerSelectModal.vue
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentCombination/service/impl/ShipmentCombinationServiceImpl.java
... | ... | @@ -6,6 +6,7 @@ import java.util.Collections; |
6 | 6 | import java.util.List; |
7 | 7 | |
8 | 8 | import org.jeecg.common.api.vo.Result; |
9 | +import org.jeecg.common.exception.JeecgBootException; | |
9 | 10 | import org.jeecg.modules.wms.config.container.entity.Container; |
10 | 11 | import org.jeecg.modules.wms.config.container.service.IContainerService; |
11 | 12 | import org.jeecg.modules.wms.config.location.entity.Location; |
... | ... | @@ -40,7 +41,6 @@ import org.springframework.stereotype.Service; |
40 | 41 | import org.springframework.transaction.annotation.Transactional; |
41 | 42 | |
42 | 43 | import com.alibaba.fastjson.JSON; |
43 | -import org.jeecg.common.exception.JeecgBootException; | |
44 | 44 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
45 | 45 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
46 | 46 | |
... | ... | @@ -139,7 +139,7 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi |
139 | 139 | } |
140 | 140 | } |
141 | 141 | if (over) { |
142 | - return Result.OK("出库单已经配盘", null); | |
142 | + return Result.error("出库单已经配盘", null); | |
143 | 143 | } |
144 | 144 | return Result.OK("自动组盘成功", null); |
145 | 145 | } |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java
... | ... | @@ -12,6 +12,7 @@ import javax.annotation.Resource; |
12 | 12 | |
13 | 13 | import org.apache.shiro.SecurityUtils; |
14 | 14 | import org.jeecg.common.api.vo.Result; |
15 | +import org.jeecg.common.exception.JeecgBootException; | |
15 | 16 | import org.jeecg.common.system.vo.LoginUser; |
16 | 17 | import org.jeecg.modules.wms.api.wcs.service.LocationAllocationService; |
17 | 18 | import org.jeecg.modules.wms.api.wcs.service.WcsService; |
... | ... | @@ -66,7 +67,6 @@ import org.springframework.stereotype.Service; |
66 | 67 | import org.springframework.transaction.annotation.Transactional; |
67 | 68 | |
68 | 69 | import com.alibaba.fastjson.JSON; |
69 | -import org.jeecg.common.exception.JeecgBootException; | |
70 | 70 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
71 | 71 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
72 | 72 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
... | ... | @@ -1199,7 +1199,7 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea |
1199 | 1199 | throw new JeecgBootException("完成入库任务时,保存库存交易失败"); |
1200 | 1200 | } |
1201 | 1201 | |
1202 | - if (StringUtils.isEmpty(fromLocationCode)) { | |
1202 | + if (StringUtils.isNotEmpty(fromLocationCode)) { | |
1203 | 1203 | success = |
1204 | 1204 | locationService.updateContainerCodeAndStatus(fromLocationCode, QuantityConstant.EMPTY_STRING, QuantityConstant.STATUS_LOCATION_EMPTY, warehouseCode); |
1205 | 1205 | if (!success) { |
... | ... |