WmsInboundResultController.java 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.feign.ESFeign;
  3. import com.steerinfo.dil.mapper.WmspGridMaterialMapper;
  4. import com.steerinfo.dil.model.*;
  5. import com.steerinfo.dil.service.ICommonService;
  6. import com.steerinfo.dil.service.IWmspInboundDistributeService;
  7. import com.steerinfo.dil.service.impl.*;
  8. import com.steerinfo.dil.util.*;
  9. import com.steerinfo.framework.controller.RESTfulResult;
  10. import com.steerinfo.framework.service.pagehelper.PageHelper;
  11. import io.swagger.annotations.Api;
  12. import io.swagger.annotations.ApiImplicitParam;
  13. import io.swagger.annotations.ApiImplicitParams;
  14. import io.swagger.annotations.ApiOperation;
  15. import io.swagger.models.auth.In;
  16. import org.springframework.beans.factory.annotation.Autowired;
  17. import org.springframework.transaction.annotation.Transactional;
  18. import org.springframework.web.bind.annotation.*;
  19. import java.math.BigDecimal;
  20. import java.util.*;
  21. //import java.util.*;
  22. /**
  23. * @author luobang
  24. * @create 2021-09-06 18:13
  25. */
  26. @Api("入库实绩")
  27. @RestController
  28. @RequestMapping("${api.version}/inboundResult")
  29. public class WmsInboundResultController extends BaseRESTfulController {
  30. @Autowired
  31. ColumnDataUtil columnDataUtil;
  32. @Autowired
  33. ESFeign esFeign;
  34. @Autowired
  35. WmsInboundResultServiceImpl wmsInboundResultServiceImpl;
  36. @Autowired
  37. WmsInboundScanResultServiceImpl wmsInboundScanResultServiceImpl;
  38. @Autowired
  39. WmsInboundDrivingResultServiceImpl wmsInboundDrivingResultServiceImpl;
  40. @Autowired
  41. RmsStackingServiceImpl rmsStackingService;
  42. @Autowired
  43. RmsPwarehouseGridServiceImpl rmsPwarehouseGridService;
  44. @Autowired
  45. WmspGridMaterialServiceImpl wmspGridMaterialService;
  46. @Autowired
  47. WmspGridMaterialMapper wmspGridMaterialMapper;
  48. @Autowired
  49. WmsInboundStackResultServiceImpl wmsInboundStackResultServiceImpl;
  50. @Autowired
  51. WmspInboundDistributeServiceImpl wmspInboundDistributeService;
  52. @Autowired
  53. ICommonService commonService;
  54. @Autowired
  55. WmsInboundScanResultServiceImpl wmsInboundScanResultService;
  56. /**
  57. * 展示入库实绩
  58. * @param mapValue
  59. * @param apiId
  60. * @param pageNum
  61. * @param pageSize
  62. * @return
  63. */
  64. @PostMapping("/getWmsInboundResult2")
  65. @ApiOperation(value = "展示入库实绩信息")
  66. @ApiImplicitParams({
  67. @ApiImplicitParam(name = "apiId", value = "90", required = false, dataType = "BigDecimal"),
  68. })
  69. public RESTfulResult getWmsInboundResult(@RequestBody(required = false) Map<String, Object> mapValue,
  70. Integer apiId,
  71. Integer pageNum,
  72. Integer pageSize,
  73. String con) {
  74. if(con != null){
  75. if(!"undefined".equals(con)){
  76. String index = "get_wms_inboundresult";
  77. return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
  78. }
  79. }
  80. List<Map<String,Object>>inboundResultList = null;
  81. if(mapValue.size() == 0){
  82. //将查询结果存入索引中
  83. inboundResultList = wmsInboundResultServiceImpl.getInboundResult(mapValue);
  84. Map<String, Object> inboundResultMap = new HashMap<>();
  85. //添加索引
  86. inboundResultMap.put("index","get_wms_inboundresultse");
  87. //添加ID
  88. inboundResultMap.put("indexId","inboundresultId");
  89. inboundResultList.add(inboundResultMap);
  90. //新建索引
  91. esFeign.insertIndex(inboundResultList);
  92. //删除
  93. inboundResultList.remove(inboundResultList.size() -1);
  94. }
  95. if(inboundResultList == null) {
  96. inboundResultList = wmsInboundResultServiceImpl.getInboundResult(mapValue);
  97. }
  98. /*分页*/
  99. PageHelper.startPage(pageNum, pageSize);
  100. List<Map<String,Object>> columnList = wmsInboundResultServiceImpl.getInboundResult(mapValue);
  101. PageListAdd pageList = columnDataUtil.tableColumnData(apiId,inboundResultList,columnList);
  102. return success(pageList);
  103. }
  104. /**
  105. * 新增入库实绩
  106. *
  107. * @param
  108. * @return
  109. */
  110. @ApiOperation("新增入库实绩")
  111. @PostMapping("/insertInboundResult")
  112. @Transactional
  113. public RESTfulResult addInvoice(@RequestParam("userName") String userName,@RequestParam("groupId") BigDecimal groupId,@RequestParam("personnelWorkshopid") BigDecimal personnelWorkshopid, @RequestBody(required = false) List<Map<String, Object>> mapList) {
  114. //查询当前组最新得一条入库实绩、判断是否是自己创建得、状态是否是带下发状态
  115. Map<String,Object> conditionMap=wmsInboundResultServiceImpl.selectInboundResultByGroupId(groupId);
  116. //如果最新的一条是自己的并且
  117. //遗留 查询批次、以及状态
  118. int batch=0;
  119. //此条件成了说明他提交之后、另外一个还没提交交
  120. if ((conditionMap!=null&&conditionMap.get("userName").toString().equals(userName)&&conditionMap.get("resultStatus").toString().equals("1"))){
  121. return success("等待提交");
  122. }
  123. //此条件成了说明第二个人开始提交了
  124. if (conditionMap!=null&&!conditionMap.get("userName").toString().equals(userName)&&conditionMap.get("resultStatus").toString().equals("1")){
  125. //将下面的订单都录入这个批次里面
  126. for (int i=0;i<mapList.size();i++){
  127. Map<String,Object> item=mapList.get(i);
  128. //获得同一批的第i个的网格 解释:目前还没有设计出来网格的结构 没有做默认为 第一库、第一月台、第一垛位、第一行、第一列 \推送信息给行车工、让他们抢单代码备注了
  129. BigDecimal houseGrid = wmsInboundResultServiceImpl.getGrid(conditionMap.get("distributeId").toString(), i+1);
  130. //如果差不多、说明上一个人少扫了一次
  131. if (houseGrid==null){
  132. houseGrid = rmsPwarehouseGridService.selectGrid(mapList.size()-1, personnelWorkshopid);
  133. //创建实时库存
  134. wmspGridMaterialService.initInsertWmspGridMaterial(item,houseGrid);
  135. }
  136. //创建一个入库作业实绩
  137. WmspInboundResult wmspInboundResult = wmsInboundResultServiceImpl.initAndWmspInboundResult(0,i+1,personnelWorkshopid,groupId,userName,new BigDecimal(conditionMap.get("distributeId").toString()),houseGrid,item);
  138. //改变扫码实绩里面的状态
  139. int status= wmsInboundScanResultServiceImpl.updateInboundScanStatus(new BigDecimal(item.get("resultId").toString()),wmspInboundResult.getInboundId());
  140. //当都完成的时候就要去改变这一批的状态改为下发状态
  141. if(mapList.size()==i+1){
  142. int status2= wmsInboundResultServiceImpl.updateInboundStatus(new BigDecimal(conditionMap.get("distributeId").toString()));
  143. }
  144. }
  145. int status3= wmspInboundDistributeService.updateDistributeStatus(conditionMap.get("distributeId").toString());
  146. return success("下发成功");
  147. //第n批第一次提交
  148. }else{
  149. //需要判断是否已经提交过了 通过resultId判断物质是否已经下发过了跳出、多次下发的结果
  150. int resultStatus= wmsInboundScanResultServiceImpl.getResultStatusByResultId(mapList.get(0).get("resultId").toString());
  151. if(resultStatus==1){
  152. return success("请勿重复下发");
  153. }
  154. //、创建批次
  155. WmspInboundDistribute wmspInboundDistribute=wmspInboundDistributeService.initAndCreateInboundDistribute(personnelWorkshopid,groupId,userName,batch);
  156. //判断物质是否是线材
  157. BigDecimal count = wmsInboundScanResultService.selectMaterialTypeByMaterialId(new BigDecimal(mapList.get(0).get("materialId").toString()));
  158. if (count!=null){
  159. //将下面的订单都录入这个批次里面
  160. for (int i=0;i<mapList.size();i++){
  161. Map<String,Object> item=mapList.get(i);
  162. //获得一个默认的网格 解释:目前还没有设计出来网格的结构 没有做默认为 第一库、第一月台、第一垛位、第一行、第一列 \推送信息给行车工、让他们抢单代码备注了
  163. BigDecimal houseGrid = rmsPwarehouseGridService.selectGrid(mapList.size()-1, personnelWorkshopid);
  164. //创建一个入库作业实绩
  165. WmspInboundResult wmspInboundResult = wmsInboundResultServiceImpl.initAndWmspInboundResult(0,i+1,personnelWorkshopid,groupId,userName,wmspInboundDistribute.getDistributeId(),houseGrid,item);
  166. //改变扫码实绩里面的状态
  167. int status= wmsInboundScanResultServiceImpl.updateInboundScanStatus(new BigDecimal(item.get("resultId").toString()),wmspInboundResult.getInboundId());
  168. //创建实时库存
  169. wmspGridMaterialService.initInsertWmspGridMaterial(item,houseGrid);
  170. }
  171. }else {
  172. //如果是线材直接结束
  173. //将下面的订单都录入这个批次里面
  174. for (int i=0;i<mapList.size();i++) {
  175. Map<String, Object> item = mapList.get(i);
  176. //获得一个默认的网格 解释:目前还没有设计出来网格的结构 没有做默认为 第一库、第一月台、第一垛位、第一行、第一列 \推送信息给行车工、让他们抢单代码备注了
  177. BigDecimal houseGrid = rmsPwarehouseGridService.selectGrid(mapList.size() - 1, personnelWorkshopid);
  178. //创建一个入库作业实绩
  179. WmspInboundResult wmspInboundResult = wmsInboundResultServiceImpl.initAndWmspInboundResult(1, i + 1, personnelWorkshopid, new BigDecimal(0), userName, wmspInboundDistribute.getDistributeId(), houseGrid, item);
  180. //改变扫码实绩里面的状态
  181. int status = wmsInboundScanResultServiceImpl.updateInboundScanStatus(new BigDecimal(item.get("resultId").toString()), wmspInboundResult.getInboundId());
  182. //创建实时库存
  183. wmspGridMaterialService.initInsertWmspGridMaterial(item, houseGrid);
  184. //当都完成的时候就要去改变这一批的状态改为下发状态
  185. if(mapList.size()==i+1){
  186. int status2= wmsInboundResultServiceImpl.updateInboundStatus(wmspInboundDistribute.getDistributeId());
  187. }
  188. }
  189. int status3= wmspInboundDistributeService.updateDistributeStatus(wmspInboundDistribute.getDistributeId().toString());
  190. }
  191. return success("下发成功");
  192. }
  193. }
  194. /**
  195. * 新增入库实绩
  196. *
  197. * @param
  198. * @return
  199. */
  200. @ApiOperation("新增入库实绩")
  201. @PostMapping("/insertInboundResult2")
  202. @Transactional
  203. public RESTfulResult addInvoice( @RequestBody(required = false) List<Map<String, Object>> mapList) {
  204. //获取前方传来的仓库ID进行入库
  205. BigDecimal warehouseId = new BigDecimal((Integer)mapList.get(0).get("personnelWorkshopid"));
  206. String inboundValue = null;
  207. BigDecimal ST = null;
  208. if(warehouseId.intValue() == 3){
  209. inboundValue = wmsInboundResultServiceImpl.selectWarehouseName(new BigDecimal(3));
  210. }
  211. //!!!默认该仓库的所有行车工都能看到
  212. //!!!待添加,查询该仓库所有在班的行车工
  213. String personnelJobNumber = "000417";
  214. if(warehouseId.intValue() != 3){
  215. //查询入库垛位信息
  216. Map<String,Object> stackingMap = rmsStackingService.getStackingToUpdate(mapList.size(),warehouseId,personnelJobNumber);
  217. //获取入库垛位ID
  218. ST = (BigDecimal) stackingMap.get("stackingId");
  219. inboundValue = stackingMap.get("stackingNo").toString();
  220. }
  221. for (Map<String,Object> map:mapList
  222. ) {
  223. WmspInboundResult wmspInboundResult = new WmspInboundResult();
  224. wmspInboundResult.setInboundId(new BigDecimal(wmsInboundResultServiceImpl.count() + 1));
  225. /*
  226. 设置入库类型为生产入库
  227. */
  228. wmspInboundResult.setInboundType(new BigDecimal(0));
  229. /*
  230. 设置入库单编号
  231. */
  232. String number=Liushuih.generateNextNumber("WRKD-", "yyyyMMdd-", 8, 12);
  233. wmspInboundResult.setInboundNumber(number);
  234. /*
  235. 设置逻辑删除字段
  236. */
  237. wmspInboundResult.setResultDeleted(new BigDecimal(0));
  238. /*
  239. 设置常规字段
  240. */
  241. wmspInboundResult.setInsertUsername("admin");
  242. wmspInboundResult.setInsertTime(new Date());
  243. wmspInboundResult.setUpdateUsername("admin");
  244. wmspInboundResult.setUpdateTime(new Date());
  245. wmspInboundResult.setInsertUpdateRemark("无");
  246. /*
  247. 设置入库日期
  248. */
  249. wmspInboundResult.setInboundTime(new Date());
  250. /*
  251. 设置入库单状态为已下发
  252. */
  253. wmspInboundResult.setResultStatus(new BigDecimal(1));
  254. /*
  255. 设置入库状态,当异常值为0时,入库状态设为未完成;当异常值为1时,入库状态设为完成
  256. */
  257. Integer K = 1;
  258. if(warehouseId.intValue() != 3){
  259. System.out.println(map.containsKey("abnormalis"));
  260. System.out.println(map.get("abnormalis"));
  261. K = (map.containsKey("abnormalis")&&map.get("abnormalis").toString().isEmpty())?Integer.valueOf(map.get("abnormalis").toString()):0;
  262. }
  263. if (K==0){
  264. wmspInboundResult.setResultStatus(new BigDecimal(0));
  265. wmspInboundResult.setInboundIscomplete(new BigDecimal(0));
  266. }
  267. else{
  268. wmspInboundResult.setResultStatus(new BigDecimal(1));
  269. wmspInboundResult.setInboundIscomplete(new BigDecimal(1));
  270. }
  271. Integer MN = null ;
  272. Integer CC = null ;
  273. Integer CX = null ;
  274. if(warehouseId.intValue() != 3){
  275. //根据垛位ID查询物资数,确定层次层序,即网格ID
  276. HashMap<String, Object> map1 = new HashMap<>();
  277. map1.put("stackingId",ST);
  278. //获取物资数
  279. MN=rmsStackingService.selectMaterialNumber(map1);
  280. //计算层次号
  281. CC=(MN)/24+1;
  282. //计算层序号
  283. CX=(MN)%24+1;
  284. //更新垛位表
  285. rmsStackingService.updateStack(ST);
  286. }
  287. //根据仓库id、垛位ID,层次号,层序号查找仓储网格
  288. HashMap<String, Object> map3 = new HashMap<>();
  289. map3.put("warehouseId",warehouseId);
  290. map3.put("stackingID",ST);
  291. map3.put("gradationNumber",CC);
  292. map3.put("sequenceNumber",CX);
  293. BigDecimal gridId=rmsPwarehouseGridService.getGridId(map3);
  294. //设置入库实绩里面的网格ID
  295. wmspInboundResult.setGridId(gridId);
  296. /*
  297. 插入一条网格物资中间表
  298. */
  299. WmspGridMaterial wmspGridMaterial = new WmspGridMaterial();
  300. //设置主键ID
  301. wmspGridMaterial.setGmId(wmspGridMaterialMapper.getCount());
  302. wmspGridMaterial.setGridId(gridId);
  303. wmspGridMaterial.setGmNumber(new BigDecimal(1));
  304. wmspGridMaterial.setStandardDataId(new BigDecimal(1));
  305. //设置网格物资表里面的物资ID
  306. BigDecimal materialId= DataChange.dataToBigDecimal(map.get("materialId"));
  307. wmspInboundResult.setMaterialId(materialId);
  308. wmspGridMaterial.setMaterialId(materialId);
  309. //设置逻辑删除字段
  310. wmspGridMaterial.setDeleted(new BigDecimal(0));
  311. //设置常规字段
  312. wmspGridMaterial.setInsertUsername("admin");
  313. wmspGridMaterial.setInsertTime(new Date());
  314. wmspGridMaterial.setUpdateUsername("admin");
  315. wmspGridMaterial.setUpdateTime(new Date());
  316. wmspGridMaterial.setInsertUpdateRemark("无");
  317. wmspGridMaterial.setStatus(new BigDecimal(2));
  318. wmspGridMaterialService.insertWmspGridMaterial(wmspGridMaterial);
  319. /*
  320. 新增入库实绩主表
  321. */
  322. wmsInboundResultServiceImpl.insertWmsInboundResult(wmspInboundResult);
  323. /*
  324. 新增天车司机接收实绩
  325. */
  326. WmspInboundDrivingResult wmspInboundDrivingResult = new WmspInboundDrivingResult();
  327. wmspInboundDrivingResult.setDrivingId(new BigDecimal(wmsInboundDrivingResultServiceImpl.count()+1));
  328. wmspInboundDrivingResult.setDriverId(new BigDecimal(9));
  329. wmspInboundDrivingResult.setDrivingReceiveTime(new Date());
  330. wmspInboundDrivingResult.setInboundResultId(wmspInboundResult.getInboundId());
  331. wmspInboundDrivingResult.setInsertUsername("admin");
  332. wmspInboundDrivingResult.setInsertTime(new Date());
  333. wmspInboundDrivingResult.setUpdateUsername("admin");
  334. wmspInboundDrivingResult.setResultDeleted(new BigDecimal(1));
  335. wmsInboundDrivingResultServiceImpl.insertWmspInboundDrivingResult(wmspInboundDrivingResult);
  336. /*
  337. 新增选择垛位实绩
  338. */
  339. WmspInboundStackResult wmspInboundStackResult = new WmspInboundStackResult();
  340. wmspInboundStackResult.setResultId(new BigDecimal(wmsInboundStackResultServiceImpl.count()+1));
  341. wmspInboundStackResult.setInboundResultId(wmspInboundResult.getInboundId());
  342. wmspInboundStackResult.setStackingId(ST);
  343. wmspInboundStackResult.setResultDeleted(new BigDecimal(1));
  344. //设置常规字段
  345. wmspInboundStackResult.setInsertUsername("admin");
  346. wmspInboundStackResult.setInsertTime(new Date());
  347. wmspInboundStackResult.setUpdateUsername("admin");
  348. wmspInboundStackResult.setUpdateTime(new Date());
  349. wmspInboundStackResult.setInsertUpdateRemark("无");
  350. wmspInboundStackResult.setStackingStatus(new BigDecimal(0));
  351. wmsInboundStackResultServiceImpl.insertWmsInboundStackResult(wmspInboundStackResult);
  352. System.out.println(map.get("LOADA"));
  353. System.out.println(map.get("LOADB"));
  354. //判断物资是否为线材
  355. BigDecimal count = wmsInboundScanResultServiceImpl.selectMaterialTypeByMaterialId(materialId);
  356. BigDecimal resultId= new BigDecimal((Integer)map.get("resultId")) ;
  357. // BigDecimal RESULTBID= new BigDecimal((Integer)map.get("RESULTBID")) ;
  358. BigDecimal InbounId=wmspInboundResult.getInboundId();
  359. if(count!=null){
  360. /*
  361. 编辑扫描实绩-根据前台返回的扫描实绩ID修改扫描实绩
  362. */
  363. HashMap<String, Object> map5 = new HashMap<>();
  364. Map<String,Object> otherLoadMap = new HashMap<>();
  365. otherLoadMap.put("personnelWorkshopid",map.get("personnelWorkshopid"));
  366. otherLoadMap.put("personnelShifts",map.get("personnelShifts"));
  367. otherLoadMap.put("personnelTeam",map.get("personnelTeam"));
  368. otherLoadMap.put("resultId",resultId);
  369. //获取同一班次班组车间扫描次数扫描实绩
  370. List<Map<String,Object>> otherResultIds = wmsInboundScanResultServiceImpl.getOntherLoadId(otherLoadMap);
  371. //根据物资id查询是否该物资为线材
  372. //设置另一个扫描实绩id为空
  373. BigDecimal otherResultId = null;
  374. //遍历查询出的同一班次班组车间扫描次数所有扫描实绩
  375. for (Map<String,Object> otherMap : otherResultIds) {
  376. //判断,查询出来的扫描实绩id是否于点击下发的扫描实绩的id相同
  377. //如果不同,将获取到的扫描实绩主键id赋予otherResultId
  378. if (((BigDecimal) otherMap.get("resultId")).intValue() != resultId.intValue()) {
  379. otherResultId = (BigDecimal) otherMap.get("resultId");
  380. }
  381. }
  382. //更新扫描实绩
  383. map5.put("resultId",resultId);
  384. map5.put("InbounId",InbounId);
  385. wmsInboundScanResultServiceImpl.updateWmsInboundScanById(map5);
  386. map5.remove("resultId");
  387. map5.put("resultId",otherResultId);
  388. wmsInboundScanResultServiceImpl.updateWmsInboundScanById(map5);
  389. }
  390. //更新扫描实绩状态
  391. Map<String,Object> map7=new HashMap<>();
  392. map7.put("resultId",resultId);
  393. map7.put("InbounId",InbounId);
  394. wmsInboundScanResultServiceImpl.updateWmsInboundScanById(map7);
  395. }
  396. return success(inboundValue);
  397. }
  398. //根据入库实绩id查找扫描实绩
  399. @PostMapping("/selectScanResultByIboundResultId")
  400. @ApiOperation(value = "根据入库实绩id获得扫描实绩数据")
  401. @ApiImplicitParams({
  402. @ApiImplicitParam(name = "apiId", value = "", required = false, dataType = "BigDecimal"),
  403. })
  404. public RESTfulResult selectScanResultByIboundResultId(@RequestBody(required = false) Map<String, Object> mapValue,
  405. Integer apiId,
  406. Integer pageNum,
  407. Integer pageSize,
  408. String con
  409. ) {
  410. if(con != null){
  411. if(!"undefined".equals(con)){
  412. String index = "get_wms_inboundScanResult";
  413. return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
  414. }
  415. }
  416. List<Map<String,Object>>inboundScanResultList = null;
  417. if(mapValue.size() == 0){
  418. //将查询结果存入索引中
  419. inboundScanResultList = wmsInboundResultServiceImpl.selectScanResultByIboundResultId(mapValue);
  420. Map<String, Object> inboundScanResultMap = new HashMap<>();
  421. //添加索引
  422. inboundScanResultMap.put("index","get_wms_inboundScanResult");
  423. //添加ID
  424. inboundScanResultMap.put("indexId","inboundScanResultId");
  425. inboundScanResultList.add(inboundScanResultMap);
  426. //新建索引
  427. esFeign.insertIndex(inboundScanResultList);
  428. //删除
  429. inboundScanResultList.remove(inboundScanResultList.size() -1);
  430. }
  431. if(inboundScanResultList == null) {
  432. inboundScanResultList = wmsInboundResultServiceImpl.selectScanResultByIboundResultId(mapValue);
  433. }
  434. /*分页*/
  435. PageHelper.startPage(pageNum, pageSize);
  436. List<Map<String,Object>> columnList = wmsInboundResultServiceImpl.selectScanResultByIboundResultId(mapValue);
  437. PageListAdd pageList = columnDataUtil.tableColumnData(apiId,inboundScanResultList,columnList);
  438. return success(pageList);
  439. }
  440. }