|
@@ -449,6 +449,7 @@ public class WcsTaskServiceImpl implements IWcsTaskService {
|
|
|
* @param wcsTask
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Override
|
|
|
@Transactional
|
|
|
public AjaxResult moveStartingPointToMiddleCache(WcsTask wcsTask) {
|
|
|
//起点位置
|
|
@@ -475,6 +476,7 @@ public class WcsTaskServiceImpl implements IWcsTaskService {
|
|
|
* @param wcsTask
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Override
|
|
|
@Transactional
|
|
|
public AjaxResult moveMiddleCacheToDestination(WcsTask wcsTask) {
|
|
|
//终点位置
|
|
@@ -498,6 +500,38 @@ public class WcsTaskServiceImpl implements IWcsTaskService {
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将起始点库存放到终点位置
|
|
|
+ *
|
|
|
+ * @param wcsTask
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @Transactional
|
|
|
+ public AjaxResult moveStartingPointToDestination(WcsTask wcsTask) {
|
|
|
+ //起始位置
|
|
|
+ Long locationFrom = Long.valueOf(wcsTask.getLocationFrom());
|
|
|
+ //终点位置
|
|
|
+ Long locationTo = Long.valueOf(wcsTask.getLocationTo());
|
|
|
+
|
|
|
+ //任务号
|
|
|
+ String taskNo = wcsTask.getTaskNo();
|
|
|
+ //检验起点库位库存
|
|
|
+ InvLotLocId invLotLocIdQuery = new InvLotLocId();
|
|
|
+ invLotLocIdQuery.setLocationId(locationFrom.toString());
|
|
|
+ invLotLocIdQuery.setTraceid(taskNo);
|
|
|
+ List<InvLotLocId> invLotLocIdList = invLotLocIdService.selectInvLotLocIdList(invLotLocIdQuery);
|
|
|
+ if (invLotLocIdList.size() > 0) {
|
|
|
+ // 转移库存
|
|
|
+ invLotLocIdMapper.moveInvByTraceId(locationFrom, locationTo, taskNo);
|
|
|
+ }
|
|
|
+ //修改目标库位状态为占用
|
|
|
+ baseLocationInfoService.occupyLocation(locationTo, Constant.WAREHOUSE_ID, wcsTask.getUpdateBy());
|
|
|
+
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 修改库存出入库标记
|
|
|
*
|