WMSController.java 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.feign.QMSFeign;
  3. import com.steerinfo.dil.feign.QmsTruckFeign;
  4. import com.steerinfo.dil.feign.WMSFeign;
  5. import com.steerinfo.dil.util.BaseRESTfulController;
  6. import com.steerinfo.framework.controller.RESTfulResult;
  7. import io.swagger.annotations.ApiImplicitParam;
  8. import io.swagger.annotations.ApiImplicitParams;
  9. import io.swagger.annotations.ApiOperation;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.transaction.annotation.Transactional;
  12. import org.springframework.web.bind.annotation.*;
  13. import java.math.BigDecimal;
  14. import java.util.Date;
  15. import java.util.HashMap;
  16. import java.util.List;
  17. import java.util.Map;
  18. /**
  19. * @author luobang
  20. * @create 2021-09-17 14:09
  21. */
  22. @RestController
  23. @RequestMapping("${api.version}/wms")
  24. public class WMSController extends BaseRESTfulController {
  25. @Autowired
  26. WMSFeign wmsFeign;
  27. @Autowired
  28. QMSFeign qmsFeign;
  29. @PostMapping("getWmsInboundResult")
  30. @ApiOperation(value = "展示入库实绩信息")
  31. @ApiImplicitParams({
  32. @ApiImplicitParam(name = "apiId", value = "90", required = false, dataType = "BigDecimal"),
  33. })
  34. public Map<String, Object> getWmsInboundResult(Map<String, Object> mapValue,
  35. Integer apiId,
  36. Integer pageNum,
  37. Integer pageSize) {
  38. return wmsFeign.getWmsInboundResult(mapValue, apiId, pageNum, pageSize);
  39. }
  40. @PostMapping("getWmspOutboundResult")
  41. @ApiOperation(value = "展示出库实绩信息")
  42. @ApiImplicitParams({
  43. @ApiImplicitParam(name = "apiId", value = "152", required = false, dataType = "BigDecimal"),
  44. })
  45. public Map<String, Object> getWmspOutboundResult(@RequestBody(required = false) Map<String,Object> map,
  46. Integer pageNum,
  47. Integer pageSize,
  48. Integer apiId,
  49. String con) {
  50. return wmsFeign.getWmspOutboundResult(map==null?new HashMap<>():map,apiId, pageNum, pageSize,con);
  51. }
  52. @PostMapping("/insertWmspOutBoundResult")
  53. @ApiOperation(value = "新增出单实绩并返回出库单详情")
  54. public Map<String, Object> insertWmspOutBoundResult(@RequestBody(required = false) Map<String, Object> mapval) {
  55. Map<String, Object> resTfulResult = wmsFeign.insertWmspOutBoundResult(mapval);
  56. return resTfulResult;
  57. }
  58. @PostMapping(value = "/deletewmspOutboundResult")
  59. public Map<String,Object> deleteWmspOutboundResult(@RequestParam Integer resultId){
  60. return wmsFeign.deleteWmspOutboundResult(resultId);
  61. }
  62. @PostMapping("/insertwmspOutboundScanResult")
  63. public Map<String, Object> insertwmspOutboundScanResult(@RequestBody(required = false) Map<String, Object> map) {
  64. Map<String, Object> resTfulResult = wmsFeign.insertwmspOutboundScanResult(map);
  65. return resTfulResult;
  66. }
  67. @PostMapping("/outbountResultToSuccess")
  68. public Map<String,Object> outbountResultToSuccess(@RequestParam Integer resultId){
  69. return wmsFeign.outbountResultToSuccess(resultId);
  70. }
  71. @PostMapping("/updataResultStatus")
  72. public Map<String, Object> updataResultStatus(@RequestParam Integer resultId) {
  73. Map<String, Object> resTfulResult = wmsFeign.updataResultStatus(resultId);
  74. return resTfulResult;
  75. }
  76. @PostMapping("/getRmsMaterial")
  77. public Map<String, Object> getRmsMaterial(@RequestBody(required = false) Map<String, Object> mapval) {
  78. Map<String, Object> resTfulResult = wmsFeign.getRmsMaterial(mapval);
  79. return resTfulResult;
  80. }
  81. //查询实时库存数据
  82. @PostMapping("/selectGridMaterialList")
  83. @ApiOperation(value = "展示实时库存数据")
  84. @ApiImplicitParams({
  85. @ApiImplicitParam(name = "apiId", value = "167", required = false, dataType = "BigDecimal"),
  86. })
  87. public Map<String, Object> selectGridMaterialList(@RequestBody(required = false) Map<String, Object> mapVal,
  88. Integer pageNum,
  89. Integer pageSize,
  90. Integer apiId,
  91. String con) {
  92. return wmsFeign.selectGridMaterialList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize,con);
  93. }
  94. //通过成品仓库网格ID查询实时库存数据
  95. @PostMapping("/selectGridMaterialListByGridId")
  96. @ApiOperation(value = "通过成品仓库网格ID展示实时库存数据")
  97. @ApiImplicitParams({
  98. @ApiImplicitParam(name = "apiId", value = "155", required = false, dataType = "BigDecimal"),
  99. })
  100. public Map<String,Object> selectGridMaterialListByGridId(BigDecimal gridId) {
  101. return wmsFeign.selectGridMaterialListByGridId(gridId);
  102. }
  103. //修改物资钢材表的质量是否合格字段和逻辑删除
  104. @PostMapping(value = "/updateRmsMaterialSteelDemotion")
  105. public Map<String,Object> updateRmsMaterialSteelDemotion(@RequestBody Map<String,Object> map){
  106. return wmsFeign.updateRmsMaterialSteelDemotion(map);
  107. }
  108. //钢材异地库出库扫描
  109. @PostMapping("/OutScanResultTag")
  110. public Map<String, Object> OutScanResultTag(@RequestBody(required = false) Map<String, Object> mapval) {
  111. Map<String, Object> resTfulResult = wmsFeign.OutScanResultTag(mapval);
  112. return resTfulResult;
  113. }
  114. //钢材异地库出库展示实绩
  115. @PostMapping("/getWmsOffsiteLibaryOutboundList")
  116. @ApiOperation(value = "展示实时库存数据")
  117. @ApiImplicitParams({
  118. @ApiImplicitParam(name = "apiId", value = "164", required = false, dataType = "BigDecimal"),
  119. })
  120. public Map<String, Object> getWmsOffsiteLibaryOutboundList(@RequestBody(required = false) Map<String, Object> mapVal,
  121. Integer pageNum,
  122. Integer pageSize,
  123. Integer apiId,
  124. String con) {
  125. return wmsFeign.getWmsOffsiteLibaryOutboundList(mapVal == null ? new HashMap<>() : mapVal, pageNum, pageSize, apiId, con);
  126. }
  127. //展示钢材扫描入库实绩列表
  128. @ApiImplicitParams({
  129. @ApiImplicitParam(name = "apiId", value = "165", required = false, dataType = "BigDecimal"),
  130. })
  131. @PostMapping("/getWmsOffsiteLibaryInboundList")
  132. public Map<String, Object> getWmsOffsiteLibaryInboundList(@RequestBody(required = false) Map<String, Object> map,
  133. Integer pageNum,
  134. Integer pageSize,
  135. Integer apiId,
  136. String con) {
  137. return wmsFeign.getWmsOffsiteLibaryInboundList(map == null ? new HashMap<>() : map, pageNum, pageSize, apiId, con);
  138. }
  139. //钢材异地库扫描入库
  140. @PostMapping("/ScanResultTag")
  141. public Map<String, Object> insertOffsiteLibraryInbound(@RequestBody(required = false) Map<String, Object> map) {
  142. Map<String, Object> resTfulResult = wmsFeign.insertOffsiteLibraryInbound(map);
  143. return resTfulResult;
  144. }
  145. //获取扫描实绩
  146. //钢材异地库扫描入库
  147. @PostMapping("/getScanResult")
  148. public Map<String, Object> getScanResult(@RequestBody(required = false) Map<String, Object> map) {
  149. Map<String, Object> resTfulResult = wmsFeign.getScanResult(map);
  150. return resTfulResult;
  151. }
  152. //更新状态
  153. @PostMapping("/updateStatus")
  154. public Map<String, Object> updateStatus(@RequestBody(required = false) Map<String, Object> map) {
  155. Map<String, Object> resTfulResult = wmsFeign.updateStatus(map);
  156. return resTfulResult;
  157. }
  158. //展示在途库存数据
  159. @ApiImplicitParams({
  160. @ApiImplicitParam(name = "apiId", value = "153", required = false, dataType = "BigDecimal"),
  161. })
  162. @PostMapping("/getWmspIntransitInventory")
  163. public Map<String, Object> getWmspIntransitInventory(@RequestBody(required = false) Map<String, Object> mapVal,
  164. Integer pageNum,
  165. Integer pageSize,
  166. Integer apiId) {
  167. return wmsFeign.getWmspIntransitInventory(apiId, pageNum, pageSize);
  168. }
  169. //新增倒库出库实绩
  170. @PostMapping("/insertOutBoundResult")
  171. public Map<String, Object> insertOutBoundResult(@RequestBody(required = false) Map<String, Object> map) {
  172. Map<String, Object> resTfulResult = wmsFeign.insertOutBoundResult(map);
  173. return resTfulResult;
  174. }
  175. //新增倒库出库扫描实绩
  176. @PostMapping("/AddWmspOutboundScanResult")
  177. public Map<String, Object> AddWmspOutboundScanResult(@RequestBody(required = false) Map<String, Object> mapVal) {
  178. Map<String, Object> resTfulResult = wmsFeign.AddWmspOutboundScanResult(mapVal);
  179. return resTfulResult;
  180. }
  181. //通过下拉框筛选数据
  182. @ApiImplicitParams({
  183. @ApiImplicitParam(name = "apiId", value = "153", required = false, dataType = "BigDecimal"),
  184. })
  185. @PostMapping("/getWmspRestackMakeResultList")
  186. public Map<String, Object> getWmspRestackMakeResultList(@RequestBody(required = false) Map<String, Object> mapVal,
  187. Integer pageNum,
  188. Integer pageSize,
  189. Integer apiId,
  190. Integer warehouseid,
  191. Integer stackingId,
  192. Integer gradtionNumber) {
  193. return wmsFeign.getWmspRestackMakeResultList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize, warehouseid, stackingId, gradtionNumber);
  194. }
  195. @PostMapping(value = "/addRestackMakeResult")
  196. public Map<String,Object> addRestackMakeResult(@RequestBody Map<String,Object> mapval){
  197. return wmsFeign.addRestackMakeResult(mapval);
  198. }
  199. //删除倒垛单
  200. @PostMapping("/deleteByResultId/{resultId}")
  201. public Map<String, Object> deleteByResultId(@PathVariable Integer resultId) {
  202. Map<String, Object> resTfulResult = wmsFeign.deleteByResultId(resultId);
  203. return resTfulResult;
  204. }
  205. //下发倒垛单
  206. @PostMapping("/dispatchDistrubtionStatus/{resultId}")
  207. public Map<String, Object> dispatchDistrubtionStatus(@PathVariable Integer resultId) {
  208. Map<String, Object> resTfulResult = wmsFeign.dispatchDistrubtionStatus(resultId);
  209. return resTfulResult;
  210. }
  211. //下拉框获取层次
  212. @GetMapping("/selectGardationNumber")
  213. public Map<String, Object> selectGardationNumber(Integer warehouseid, Integer stackingId) {
  214. Map<String, Object> resTfulResult = wmsFeign.selectGardationNumber(warehouseid, stackingId);
  215. return resTfulResult;
  216. }
  217. //下拉框获取仓库名称
  218. @GetMapping("/selectWarehouse")
  219. public Map<String, Object> selectWarehouse() {
  220. Map<String, Object> resTfulResult = wmsFeign.selectWarehouse();
  221. return resTfulResult;
  222. }
  223. //下拉框获取仓库名称
  224. @GetMapping("/selectStackingId")
  225. public Map<String, Object> selectStackingId(Integer warehouseid) {
  226. Map<String, Object> resTfulResult = wmsFeign.selectStackingId(warehouseid);
  227. return resTfulResult;
  228. }
  229. //展示倒垛单
  230. @ApiImplicitParams({
  231. @ApiImplicitParam(name = "apiId", value = "119", required = false, dataType = "BigDecimal"),
  232. })
  233. @PostMapping("/selectRestackList")
  234. public Map<String, Object> selectRestackList(@RequestBody(required = false) Map<String, Object> mapVal,
  235. Integer pageNum,
  236. Integer pageSize,
  237. Integer apiId,
  238. Integer DistrubtionStatus) {
  239. return wmsFeign.selectRestackList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize, DistrubtionStatus);
  240. }
  241. // //修改倒垛单
  242. // @PostMapping("/addRestackMakeResult")
  243. // public Map<String, Object> addRestackMakeResult(@RequestBody(required = false) List<Map<String, Object>> mapVal) {
  244. // Map<String, Object> resTfulResult = wmsFeign.addRestackMakeResult(mapVal);
  245. // return resTfulResult;
  246. // }
  247. @PostMapping("/editRestackMakeResult")
  248. public Map<String, Object> editRestackMakeResult(@RequestBody(required = false) Map<String, Object> mapVal) {
  249. Map<String, Object> resTfulResult = wmsFeign.editRestackMakeResult(mapVal);
  250. return resTfulResult;
  251. }
  252. //渲染倒垛后的仓库信息
  253. @PostMapping("/selectAfterWarehouseByResultId/{resultId}")
  254. public Map<String, Object> selectAfterWarehouseByResultId(@PathVariable Integer resultId) {
  255. Map<String, Object> resTfulResult = wmsFeign.selectAfterWarehouseByResultId(resultId);
  256. return resTfulResult;
  257. }
  258. //渲染倒垛后的垛位信息
  259. @PostMapping("/selectAfterstackingByResultId/{resultId}")
  260. public Map<String, Object> selectAfterstackingByResultId(@PathVariable Integer resultId) {
  261. Map<String, Object> resTfulResult = wmsFeign.selectAfterWarehouseByResultId(resultId);
  262. return resTfulResult;
  263. }
  264. //PDA展示倒垛单
  265. @PostMapping("/selectRestackForPDA")
  266. public Map<String, Object> selectRestackForPDA(@RequestBody(required = false) Map<String, Object> map) {
  267. Map<String, Object> resTfulResult = wmsFeign.selectRestackForPDA(map);
  268. return resTfulResult;
  269. }
  270. //PDA根据实绩id查找物资信息
  271. @PostMapping("/selectMaterialInfoByResultId")
  272. public Map<String, Object> selectMaterialInfoByResultId(@RequestBody(required = false) Map<String, Object> map) {
  273. Map<String, Object> resTfulResult = wmsFeign.selectMaterialInfoByResultId(map);
  274. return resTfulResult;
  275. }
  276. @ApiImplicitParams({
  277. @ApiImplicitParam(value = "395",name = "apiId")
  278. })
  279. @PostMapping(value = "/getRestackInfoByResultId")
  280. public RESTfulResult getRestackInfoByResultId(@RequestBody(required = false) Map<String,Object> mapVal,
  281. Integer pageNum,
  282. Integer pageSize,
  283. Integer apiId
  284. ){
  285. return wmsFeign.getRestackInfoByResultId(mapVal==null?new HashMap<>():mapVal, pageNum, pageSize, apiId);
  286. }
  287. //PDA根据仓库id查找倒垛单
  288. @PostMapping("/selectRestackByWarehouseId")
  289. public Map<String, Object> selectRestackByWarehouseId(@RequestBody(required = false) Map<String, Object> map) {
  290. Map<String, Object> resTfulResult = wmsFeign.selectRestackByWarehouseId(map);
  291. return resTfulResult;
  292. }
  293. //扫描吊牌添加扫描实绩
  294. @PostMapping("/ScanTagResult")
  295. public Map<String, Object> ScanTagResult(@RequestBody(required = false) Map<String, Object> mal) {
  296. Map<String, Object> resTfulResult = wmsFeign.ScanTagResult(mal);
  297. return resTfulResult;
  298. }
  299. //下发
  300. @PostMapping("/Issue")
  301. public Map<String, Object> Issue(@RequestBody(required = false) List<Map<String, Object>> mapList) {
  302. Map<String, Object> resTfulResult = wmsFeign.Issue(mapList);
  303. return resTfulResult;
  304. }
  305. /**
  306. * 2.展示退库实绩信息
  307. *
  308. * @param mapValue
  309. * @param apiId
  310. * @param pageNum
  311. * @param pageSize
  312. * @return
  313. */
  314. @PostMapping("/getWmsReboundResult")
  315. @ApiOperation(value = "展示退库实绩信息")
  316. @ApiImplicitParams({
  317. @ApiImplicitParam(name = "apiId", value = "161", required = false, dataType = "BigDecimal"),
  318. })
  319. public RESTfulResult getWmsReboundResult(Map<String, Object> mapValue,
  320. Integer apiId,
  321. Integer pageNum,
  322. Integer pageSize) {
  323. return wmsFeign.getWmsReboundResult(mapValue, apiId, pageNum, pageSize);
  324. }
  325. @PostMapping("/selectScanResultByIboundResultId")
  326. @ApiOperation(value = "根据入库实绩id获得扫描实绩数据")
  327. @ApiImplicitParams({
  328. @ApiImplicitParam(name = "apiId", value = "", required = false, dataType = "BigDecimal"),
  329. })
  330. public RESTfulResult selectScanResultByIboundResultId( Map<String, Object> mapValue,
  331. Integer apiId,
  332. Integer pageNum,
  333. Integer pageSize,
  334. Integer inboundId) {
  335. return wmsFeign.selectScanResultByIboundResultId(mapValue==null?new HashMap<>():mapValue, apiId,pageNum, pageSize,inboundId);
  336. }
  337. //根据物资信息获取原来垛位信息
  338. @PostMapping("/selectInfoByMaterialCode")
  339. public Map<String, Object> selectInfoByMaterialCode(@RequestBody(required = false) Map<String, Object> mal) {
  340. if (mal == null) {
  341. mal = new HashMap<>();
  342. }
  343. return wmsFeign.selectInfoByMaterialCode(mal);
  344. }
  345. //根据仓库查询未接收的垛位
  346. @PostMapping("/selectStackingInfoByWarehouseId")
  347. public Map<String, Object> selectStackingInfoByWarehouseId(@RequestBody(required = false) Map<String, Object> mal) {
  348. if (mal == null) {
  349. mal = new HashMap<>();
  350. }
  351. return wmsFeign.selectStackingInfoByWarehouseId(mal);
  352. }
  353. @PostMapping("/getWmsIvboundResult")
  354. @ApiOperation(value = "展示倒库实绩信息")
  355. @ApiImplicitParams({
  356. @ApiImplicitParam(name = "apiId", value = "162", required = false, dataType = "BigDecimal"),
  357. })
  358. public RESTfulResult getWmsIvboundResult(Map<String, Object> mapValue,
  359. Integer apiId,
  360. Integer pageNum,
  361. Integer pageSize) {
  362. return wmsFeign.getWmsIvboundResult(mapValue, apiId, pageNum, pageSize);
  363. }
  364. /**
  365. * 展示倒库物资实绩
  366. *
  367. * @param mapValue
  368. * @param apiId
  369. * @param pageNum
  370. * @param pageSize
  371. * @return
  372. */
  373. @PostMapping("/getWmsIvboundMaterialt")
  374. @ApiOperation(value = "展示倒库物资实绩")
  375. @ApiImplicitParams({
  376. @ApiImplicitParam(name = "apiId", value = "163", required = false, dataType = "BigDecimal"),
  377. })
  378. public RESTfulResult getWmsIvboundMaterial(Map<String, Object> mapValue,
  379. Integer apiId,
  380. Integer pageNum,
  381. Integer pageSize) {
  382. return wmsFeign.getWmsIvboundMaterial(mapValue, apiId, pageNum, pageSize);
  383. }
  384. @PostMapping("/getInventoryCheck")
  385. @ApiOperation(value = "展示库存盘点实绩")
  386. @ApiImplicitParams({
  387. @ApiImplicitParam(name = "apiId", value = "94", required = false, dataType = "BigDecimal"),
  388. })
  389. public RESTfulResult getInventoryCheck(Map<String, Object> mapValue,
  390. Integer apiId,
  391. Integer pageNum,
  392. Integer pageSize) {
  393. return wmsFeign.getInventoryCheck(mapValue, apiId, pageNum, pageSize);
  394. }
  395. @PostMapping("/getInventoryClose")
  396. @ApiOperation(value = "展示库存结转实绩")
  397. @ApiImplicitParams({
  398. @ApiImplicitParam(name = "apiId", value = "95", required = false, dataType = "BigDecimal"),
  399. })
  400. public RESTfulResult getInventoryClose(Map<String, Object> mapValue,
  401. Integer apiId,
  402. Integer pageNum,
  403. Integer pageSize) {
  404. return wmsFeign.getInventoryClose(mapValue, apiId, pageNum, pageSize);
  405. }
  406. @PostMapping("/getSendReceive")
  407. @ApiOperation(value = "展示收发存实绩")
  408. @ApiImplicitParams({
  409. @ApiImplicitParam(name = "apiId", value = "97", required = false, dataType = "BigDecimal"),
  410. })
  411. public RESTfulResult getSendReceive(Map<String, Object> mapValue,
  412. Integer apiId,
  413. Integer pageNum,
  414. Integer pageSize) {
  415. return wmsFeign.getSendReceive(mapValue, apiId, pageNum, pageSize);
  416. }
  417. /**
  418. * 展示未下发吊钢工扫描吊牌实绩
  419. *
  420. * @return
  421. */
  422. @ApiOperation(value = "展示未下发吊钢工扫描吊牌实绩")
  423. @PostMapping("/getTagResult")
  424. public Map<String, Object> getTagResult() {
  425. return wmsFeign.getTagResult();
  426. }
  427. /**
  428. * 展示正常入库吊钢工扫描吊牌实绩
  429. *
  430. * @return
  431. */
  432. @ApiOperation(value = "展示正常入库吊钢工扫描吊牌实绩")
  433. @PostMapping("/getIssuedTagResult")
  434. public Map getIssuedTagResult() {
  435. return wmsFeign.getIssuedTagResult();
  436. }
  437. /**
  438. * 展示异常入库吊钢工扫描吊牌实绩
  439. *
  440. * @return
  441. */
  442. @ApiOperation(value = "展示异常入库吊钢工扫描吊牌实绩")
  443. @PostMapping("/getIssuedTagNoResult")
  444. public Map getIssuedTagNoResult() {
  445. return wmsFeign.getIssuedTagNoResult();
  446. }
  447. /**
  448. * 展示已退库吊钢工扫描吊牌实绩
  449. *
  450. * @return
  451. */
  452. @ApiOperation(value = "展示已退库吊钢工扫描吊牌实绩")
  453. @PostMapping("/getReIssuedResult")
  454. public Map getReIssuedResult() {
  455. return wmsFeign.getIssuedResult();
  456. }
  457. /**
  458. * 展示未下发退库吊钢工扫描吊牌实绩
  459. *
  460. * @return
  461. */
  462. @ApiOperation(value = "展示未下发退库吊钢工扫描吊牌实绩")
  463. @PostMapping("/getReTagResult")
  464. public Map getReTagResult() {
  465. return wmsFeign.getReTagResult();
  466. }
  467. /**
  468. * 展示已倒库入库吊钢工扫描吊牌实绩
  469. *
  470. * @return
  471. */
  472. @ApiOperation(value = "展示已倒库入库吊钢工扫描吊牌实绩")
  473. @PostMapping("/getIvIssuedResult")
  474. public Map getIvIssuedResult() {
  475. return wmsFeign.getIvIssuedResult();
  476. }
  477. /**
  478. * 展示未下发退库吊钢工扫描吊牌实绩
  479. *
  480. * @return
  481. */
  482. @ApiOperation(value = "展示未下发退库吊钢工扫描吊牌实绩")
  483. @PostMapping("/getIvTagResult")
  484. public Map getIvTagResult() {
  485. return wmsFeign.getIvTagResult();
  486. }
  487. /**
  488. * 新增入库实绩
  489. *
  490. * @param mapList
  491. * @return
  492. */
  493. @ApiOperation("新增入库实绩")
  494. @PostMapping("/insertInboundResult")
  495. @Transactional
  496. public Map<String,Object> addInvoice(@RequestBody List<Map<String, Object>> mapList) {
  497. /*
  498. 获取入库物资件数
  499. */
  500. int size = mapList.size();
  501. /*
  502. 获取入库垛位
  503. */
  504. // Map<String, Object> map1 = qmsFeign.getStackingId(new BigDecimal(1), size);
  505. // String stackNo = (String) map1.get("stackNo");
  506. // BigDecimal stackId = new BigDecimal(map1.get("stackId").toString());
  507. // for (Map<String, Object> map : mapList
  508. // ) {
  509. // map.put("stackingId", stackId);
  510. // }
  511. return wmsFeign.insertInboundResult(mapList);
  512. }
  513. /**
  514. * 新增退库实绩
  515. *
  516. * @param mapList
  517. * @return
  518. */
  519. @ApiOperation("新增退库实绩")
  520. @PostMapping("/insertReboundResult")
  521. @Transactional
  522. public String addReboundResult(@RequestBody List<Map<String, Object>> mapList) {
  523. /*
  524. 获取入库物资件数
  525. */
  526. int size = mapList.size();
  527. /*
  528. 获取入库垛位
  529. */
  530. Map<String, Object> map1 = qmsFeign.getStackingId(new BigDecimal(1), size);
  531. String stackNo = (String) map1.get("stackNo");
  532. BigDecimal stackId = new BigDecimal(map1.get("stackId").toString());
  533. for (Map<String, Object> map : mapList
  534. ) {
  535. map.put("stackingId", stackId);
  536. }
  537. wmsFeign.insertReboundResult(mapList);
  538. return stackNo;
  539. }
  540. /**
  541. * 新增倒库入库实绩
  542. *
  543. * @param mapList
  544. * @return
  545. */
  546. @ApiOperation("新增倒库入库实绩")
  547. @PostMapping("/insertIvboundResult")
  548. @Transactional
  549. public String addIvboundResult(@RequestBody List<Map<String, Object>> mapList) {
  550. /*
  551. 获取入库物资件数
  552. */
  553. int size = mapList.size();
  554. /*
  555. 获取入库垛位
  556. */
  557. Map<String, Object> map1 = qmsFeign.getStackingId(new BigDecimal(1), size);
  558. String stackNo = (String) map1.get("stackNo");
  559. BigDecimal stackId = new BigDecimal(map1.get("stackId").toString());
  560. for (Map<String, Object> map : mapList
  561. ) {
  562. map.put("stackingId", stackId);
  563. }
  564. wmsFeign.insertIvboundResult(mapList);
  565. return stackNo;
  566. }
  567. /**
  568. * 展示入库垛位
  569. *
  570. * @param DriverId
  571. * @return
  572. */
  573. @PostMapping("/getInboundStack")
  574. @ApiOperation(value = "展示入库垛位")
  575. public Integer getInboundStack(Integer DriverId) {
  576. return wmsFeign.getInboundStack(DriverId);
  577. }
  578. /**
  579. * 新增库存盘点
  580. *
  581. * @param map
  582. * @return
  583. */
  584. @PostMapping("/inventoryCheck")
  585. @ApiOperation(value = "新增库存盘点")
  586. public Map<String, Object> inventoryCheck(@RequestBody(required = false) Map<String, Object> map) {
  587. return wmsFeign.inventoryCheck(map);
  588. }
  589. /**
  590. * 新增入库扫描吊牌实绩
  591. *
  592. * @param map
  593. * @return
  594. */
  595. @ApiOperation(value = "新增入库扫描吊牌实绩")
  596. @PostMapping("/insertResult")
  597. @Transactional
  598. public Map<String, Object> insertResult(@RequestBody(required = false) Map<String, Object> map) {
  599. return wmsFeign.insertResult(map);
  600. }
  601. /**
  602. * 新增退库扫描吊牌实绩
  603. *
  604. * @param map
  605. * @return
  606. */
  607. @ApiOperation(value = "新增退库扫描吊牌实绩")
  608. @PostMapping("/insertReboundScanResult")
  609. @Transactional
  610. public Map<String, Object> insertReboundScanResult(@RequestBody(required = false) Map<String, Object> map) {
  611. return wmsFeign.insertReboundScanResult(map);
  612. }
  613. /**
  614. * 新增倒库入库扫描吊牌实绩
  615. *
  616. * @param map
  617. * @return
  618. */
  619. @ApiOperation(value = "新增倒库入库扫描吊牌实绩")
  620. @PostMapping("/insertIvboundScanResult")
  621. @Transactional
  622. public Map<String, Object> insertIvboundScanResult(@RequestBody(required = false) Map<String, Object> map) {
  623. return wmsFeign.insertIvboundScanResult(map);
  624. }
  625. /**
  626. * 根据实绩id查找物资唯一编码是否已经稽核完成
  627. */
  628. @PostMapping("/selectMaterialSteelIdByReusltId")
  629. @Transactional
  630. public Map<String, Object> selectMaterialSteelIdByReusltId(@RequestBody(required = false) Map<String, Object> map) {
  631. return wmsFeign.selectMaterialSteelIdByReusltId(map);
  632. }
  633. //下发指令给行车工
  634. @PostMapping("/updateInstruction")
  635. public Map<String, Object> updateInstruction(@RequestBody Map<String, Object> map) {
  636. return wmsFeign.updateInstruction(map);
  637. }
  638. // @PostMapping("/selectScanResultByIboundResultId")
  639. // @ApiOperation(value = "根据入库实绩id获得扫描实绩数据")
  640. // @ApiImplicitParams({
  641. // @ApiImplicitParam(name = "apiId", value = "", required = false, dataType = "BigDecimal"),
  642. // })
  643. // public RESTfulResult selectScanResultByIboundResultId(Map<String, Object> mapValue,
  644. // Integer apiId,
  645. // Integer pageNum,
  646. // Integer pageSize) {
  647. // return wmsFeign.selectScanResultByIboundResultId(mapValue, apiId, pageNum, pageSize);
  648. // }
  649. @PostMapping("/getIvboundMakeResultList")
  650. @ApiOperation(value = "展示倒库列表")
  651. @ApiImplicitParams({
  652. @ApiImplicitParam(name = "apiId", value = "372", required = false, dataType = "BigDecimal"),
  653. })
  654. public RESTfulResult getIvboundMakeResultList(Map<String, Object> mapValue,
  655. Integer pageNum,
  656. Integer pageSize,
  657. Integer apiId,
  658. String con) {
  659. if (mapValue == null) {
  660. mapValue = new HashMap<>();
  661. }
  662. return wmsFeign.getIvboundMakeResultList(mapValue, pageNum, pageSize, apiId, con);
  663. }
  664. /**
  665. * 新增倒库作业
  666. * @param mapValue
  667. * @return
  668. */
  669. @PostMapping(value = "/addIvboundMakeResult")
  670. public Map<String,Object> addIvboundMakeResult(@RequestBody Map<String,Object> mapValue) {
  671. return wmsFeign.addIvboundMakeResult(mapValue);
  672. }
  673. /**
  674. * 逻辑删除倒库作业
  675. * @param resultId
  676. * @return
  677. */
  678. @PostMapping(value = "/deleteIvboundMakeResult/{resultId}")
  679. public Map<String,Object> deleteIvboundMakeResult(@PathVariable("resultId") Integer resultId) {
  680. return wmsFeign.deleteIvboundMakeResult(resultId);
  681. }
  682. /**
  683. * 查询倒库作业
  684. * @param resultId
  685. * @return
  686. */
  687. @PostMapping(value = "/selectIvboundMakeResult/{resultId}")
  688. public List<Map<String,Object>> selectIvboundMakeResult(@PathVariable("resultId") Integer resultId) {
  689. return wmsFeign.selectIvboundMakeResult(resultId);
  690. }
  691. /**
  692. * 修改倒库作业
  693. * @param mapValue
  694. * @return
  695. */
  696. @PostMapping(value = "/updateIvboundMakeResult")
  697. public Map<String,Object> updateIvboundMakeResult(@RequestBody Map<String,Object> mapValue) {
  698. return wmsFeign.updateIvboundMakeResult(mapValue);
  699. }
  700. //下发给行车工
  701. @PostMapping("/IssueToCrane")
  702. Map<String,Object> IssueToCrane(@RequestBody Map<String, Object> map){
  703. return wmsFeign.IssueToCrane(map);
  704. }
  705. }