|
@@ -2,6 +2,7 @@ package com.steerinfo.dil.controller;
|
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.steerinfo.dil.feign.ColumnDataFeign;
|
|
|
+import com.steerinfo.dil.feign.OmsFeign;
|
|
|
import com.steerinfo.dil.mapper.WmspInboundResultMapper;
|
|
|
import com.steerinfo.dil.model.*;
|
|
|
import com.steerinfo.dil.service.impl.RmsMaterialServiceImpl;
|
|
@@ -10,12 +11,14 @@ import com.steerinfo.dil.service.impl.WmsInboundResultServiceImpl;
|
|
|
import com.steerinfo.dil.service.impl.WmsInboundScanResultServiceImpl;
|
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.core.annotation.Order;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -55,6 +58,9 @@ public class WmsInboundScanResultController extends BaseRESTfulController {
|
|
|
@Autowired
|
|
|
ColumnDataFeign columnDataFeign;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ OmsFeign omsFeign;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 1.新增扫描吊牌实绩!!!此时入库实绩未生成
|
|
@@ -70,9 +76,11 @@ public class WmsInboundScanResultController extends BaseRESTfulController {
|
|
|
//判断条件是查询扫描实绩判断是否已经存在改唯一标识码并且扫码人是否是自己
|
|
|
System.out.println(map.get("resultMaterial"));
|
|
|
//订单类型为倒库,直接扫码所有并返回数据
|
|
|
- Integer orderType=wmsInboundScanResultService.getOrderTypeByNum((String)map.get("resultMaterial"));
|
|
|
+ Map<String,Object> order=wmsInboundScanResultService.getOrderTypeByNum((String)map.get("resultMaterial"));
|
|
|
+ Integer orderType=DataChange.dataToBigDecimal(order.get("orderType")).intValue();
|
|
|
+ BigDecimal orderId=DataChange.dataToBigDecimal(order.get("orderId"));
|
|
|
if(orderType!=null && orderType == 25){
|
|
|
- //根据出库数据查询入库扫码实绩
|
|
|
+ //根据运输订单号查询出库扫码实绩
|
|
|
List<Map<String,Object>> inboundOld= wmsInboundScanResultService.findInboundScanResult((String)map.get("resultMaterial"));
|
|
|
//批量新增扫码实绩
|
|
|
if(inboundOld!=null || inboundOld.size()>0 || inboundOld.get(0)!=null){
|
|
@@ -84,6 +92,10 @@ public class WmsInboundScanResultController extends BaseRESTfulController {
|
|
|
}
|
|
|
//返回新建的扫码实绩数据
|
|
|
List<Map<String,Object>> mapList= wmsInboundScanResultService.noIssueScanResultList(map.get("userName").toString());
|
|
|
+ //关闭运输订单
|
|
|
+ omsFeign.closeSteelOrderType4(DataChange.dataToBigDecimal(orderId));
|
|
|
+ //生成计费详单
|
|
|
+
|
|
|
return success(mapList);
|
|
|
}
|
|
|
int isExist= wmsInboundScanResultService.isExist(map.get("userName").toString(),map.get("resultMaterial").toString().substring(0,map.get("resultMaterial").toString().length()-1));
|