WMSController.java 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  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(@RequestBody(required = false) Map<String, Object> mapValue,
  35. Integer apiId,
  36. Integer pageNum,
  37. Integer pageSize,
  38. String con) {
  39. return wmsFeign.getWmsInboundResult(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
  40. }
  41. @PostMapping("getWmspOutboundResult")
  42. @ApiOperation(value = "展示出库实绩信息")
  43. @ApiImplicitParams({
  44. @ApiImplicitParam(name = "apiId", value = "152", required = false, dataType = "BigDecimal"),
  45. })
  46. public Map<String, Object> getWmspOutboundResult(@RequestBody(required = false) Map<String,Object> map,
  47. Integer pageNum,
  48. Integer pageSize,
  49. Integer apiId,
  50. String con) {
  51. return wmsFeign.getWmspOutboundResult(map==null?new HashMap<>():map,apiId, pageNum, pageSize,con);
  52. }
  53. @PostMapping("/insertWmspOutBoundResult")
  54. @ApiOperation(value = "新增出单实绩并返回出库单详情")
  55. public Map<String, Object> insertWmspOutBoundResult(@RequestBody(required = false) Map<String, Object> mapval) {
  56. Map<String, Object> resTfulResult = wmsFeign.insertWmspOutBoundResult(mapval);
  57. return resTfulResult;
  58. }
  59. @PostMapping(value = "/deletewmspOutboundResult")
  60. public Map<String,Object> deleteWmspOutboundResult(@RequestParam Integer resultId){
  61. return wmsFeign.deleteWmspOutboundResult(resultId);
  62. }
  63. @PostMapping("/insertwmspOutboundScanResult")
  64. public Map<String, Object> insertwmspOutboundScanResult(@RequestBody(required = false) Map<String, Object> map) {
  65. Map<String, Object> resTfulResult = wmsFeign.insertwmspOutboundScanResult(map);
  66. return resTfulResult;
  67. }
  68. @PostMapping("/outbountResultToSuccess")
  69. public Map<String,Object> outbountResultToSuccess(@RequestParam Integer resultId){
  70. return wmsFeign.outbountResultToSuccess(resultId);
  71. }
  72. @PostMapping("/updataResultStatus")
  73. public Map<String, Object> updataResultStatus(@RequestParam Integer resultId) {
  74. Map<String, Object> resTfulResult = wmsFeign.updataResultStatus(resultId);
  75. return resTfulResult;
  76. }
  77. @PostMapping("/getRmsMaterial")
  78. public Map<String, Object> getRmsMaterial(@RequestBody(required = false) Map<String, Object> mapval) {
  79. Map<String, Object> resTfulResult = wmsFeign.getRmsMaterial(mapval);
  80. return resTfulResult;
  81. }
  82. //查询实时库存数据
  83. @PostMapping("/selectGridMaterialList")
  84. @ApiOperation(value = "展示实时库存数据")
  85. @ApiImplicitParams({
  86. @ApiImplicitParam(name = "apiId", value = "167", required = false, dataType = "BigDecimal"),
  87. })
  88. public Map<String, Object> selectGridMaterialList(@RequestBody(required = false) Map<String, Object> mapVal,
  89. Integer pageNum,
  90. Integer pageSize,
  91. Integer apiId,
  92. String con) {
  93. return wmsFeign.selectGridMaterialList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize,con);
  94. }
  95. //通过成品仓库网格ID查询实时库存数据
  96. @PostMapping("/selectGridMaterialListByGridId")
  97. @ApiOperation(value = "通过成品仓库网格ID展示实时库存数据")
  98. @ApiImplicitParams({
  99. @ApiImplicitParam(name = "apiId", value = "155", required = false, dataType = "BigDecimal"),
  100. })
  101. public Map<String,Object> selectGridMaterialListByGridId(BigDecimal gridId) {
  102. return wmsFeign.selectGridMaterialListByGridId(gridId);
  103. }
  104. //修改物资钢材表的质量是否合格字段和逻辑删除
  105. @PostMapping(value = "/updateRmsMaterialSteelDemotion")
  106. public Map<String,Object> updateRmsMaterialSteelDemotion(@RequestBody Map<String,Object> map){
  107. return wmsFeign.updateRmsMaterialSteelDemotion(map);
  108. }
  109. //钢材异地库出库扫描
  110. @PostMapping("/OutScanResultTag")
  111. public Map<String, Object> OutScanResultTag(@RequestBody(required = false) Map<String, Object> mapval) {
  112. Map<String, Object> resTfulResult = wmsFeign.OutScanResultTag(mapval);
  113. return resTfulResult;
  114. }
  115. //钢材异地库出库展示实绩
  116. @PostMapping("/getWmsOffsiteLibaryOutboundList")
  117. @ApiOperation(value = "展示实时库存数据")
  118. @ApiImplicitParams({
  119. @ApiImplicitParam(name = "apiId", value = "164", required = false, dataType = "BigDecimal"),
  120. })
  121. public Map<String, Object> getWmsOffsiteLibaryOutboundList(@RequestBody(required = false) Map<String, Object> mapVal,
  122. Integer pageNum,
  123. Integer pageSize,
  124. Integer apiId,
  125. String con) {
  126. return wmsFeign.getWmsOffsiteLibaryOutboundList(mapVal == null ? new HashMap<>() : mapVal, pageNum, pageSize, apiId, con);
  127. }
  128. //展示钢材扫描入库实绩列表
  129. @ApiImplicitParams({
  130. @ApiImplicitParam(name = "apiId", value = "165", required = false, dataType = "BigDecimal"),
  131. })
  132. @PostMapping("/getWmsOffsiteLibaryInboundList")
  133. public Map<String, Object> getWmsOffsiteLibaryInboundList(@RequestBody(required = false) Map<String, Object> map,
  134. Integer pageNum,
  135. Integer pageSize,
  136. Integer apiId,
  137. String con) {
  138. return wmsFeign.getWmsOffsiteLibaryInboundList(map == null ? new HashMap<>() : map, pageNum, pageSize, apiId, con);
  139. }
  140. //钢材异地库扫描入库
  141. @PostMapping("/ScanResultTag")
  142. public Map<String, Object> insertOffsiteLibraryInbound(@RequestBody(required = false) Map<String, Object> map) {
  143. Map<String, Object> resTfulResult = wmsFeign.insertOffsiteLibraryInbound(map);
  144. return resTfulResult;
  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. String con) {
  168. return wmsFeign.getWmspIntransitInventory(mapVal == null?new HashMap<>():mapVal,apiId, pageNum, pageSize,con);
  169. }
  170. //新增倒库出库实绩
  171. @PostMapping("/insertOutBoundResult")
  172. public Map<String, Object> insertOutBoundResult(@RequestBody(required = false) Map<String, Object> map) {
  173. Map<String, Object> resTfulResult = wmsFeign.insertOutBoundResult(map);
  174. return resTfulResult;
  175. }
  176. //新增倒库出库扫描实绩
  177. @PostMapping("/AddWmspOutboundScanResult")
  178. public Map<String, Object> AddWmspOutboundScanResult(@RequestBody(required = false) Map<String, Object> mapVal) {
  179. Map<String, Object> resTfulResult = wmsFeign.AddWmspOutboundScanResult(mapVal);
  180. return resTfulResult;
  181. }
  182. //通过下拉框筛选数据
  183. @ApiImplicitParams({
  184. @ApiImplicitParam(name = "apiId", value = "153", required = false, dataType = "BigDecimal"),
  185. })
  186. @PostMapping("/getWmspRestackMakeResultList")
  187. public Map<String, Object> getWmspRestackMakeResultList(@RequestBody(required = false) Map<String, Object> mapVal,
  188. Integer pageNum,
  189. Integer pageSize,
  190. Integer apiId,
  191. Integer warehouseid,
  192. Integer stackingId,
  193. Integer gradtionNumber) {
  194. return wmsFeign.getWmspRestackMakeResultList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize, warehouseid, stackingId, gradtionNumber);
  195. }
  196. @PostMapping(value = "/addRestackMakeResult")
  197. public Map<String,Object> addRestackMakeResult(@RequestBody Map<String,Object> mapval){
  198. return wmsFeign.addRestackMakeResult(mapval);
  199. }
  200. //删除倒垛单
  201. @PostMapping("/deleteByResultId/{resultId}")
  202. public Map<String, Object> deleteByResultId(@PathVariable Integer resultId) {
  203. Map<String, Object> resTfulResult = wmsFeign.deleteByResultId(resultId);
  204. return resTfulResult;
  205. }
  206. //下发倒垛单
  207. @PostMapping("/dispatchDistrubtionStatus/{resultId}")
  208. public Map<String, Object> dispatchDistrubtionStatus(@PathVariable Integer resultId) {
  209. Map<String, Object> resTfulResult = wmsFeign.dispatchDistrubtionStatus(resultId);
  210. return resTfulResult;
  211. }
  212. //下拉框获取层次
  213. @GetMapping("/selectGardationNumber")
  214. public Map<String, Object> selectGardationNumber(Integer warehouseid, Integer stackingId) {
  215. Map<String, Object> resTfulResult = wmsFeign.selectGardationNumber(warehouseid, stackingId);
  216. return resTfulResult;
  217. }
  218. //下拉框获取仓库名称
  219. @GetMapping("/selectWarehouse")
  220. public Map<String, Object> selectWarehouse() {
  221. Map<String, Object> resTfulResult = wmsFeign.selectWarehouse();
  222. return resTfulResult;
  223. }
  224. //下拉框获取仓库名称
  225. @GetMapping("/selectStackingId")
  226. public Map<String, Object> selectStackingId(Integer warehouseid) {
  227. Map<String, Object> resTfulResult = wmsFeign.selectStackingId(warehouseid);
  228. return resTfulResult;
  229. }
  230. //展示倒垛单
  231. @ApiImplicitParams({
  232. @ApiImplicitParam(name = "apiId", value = "119", required = false, dataType = "BigDecimal"),
  233. })
  234. @PostMapping("/selectRestackList")
  235. public Map<String, Object> selectRestackList(@RequestBody(required = false) Map<String, Object> mapVal,
  236. Integer pageNum,
  237. Integer pageSize,
  238. Integer apiId,
  239. Integer DistrubtionStatus) {
  240. return wmsFeign.selectRestackList(mapVal==null?new HashMap<>():mapVal,apiId, pageNum, pageSize, DistrubtionStatus);
  241. }
  242. @PostMapping("/editRestackMakeResult")
  243. public Map<String, Object> editRestackMakeResult(@RequestBody(required = false) Map<String, Object> mapVal) {
  244. Map<String, Object> resTfulResult = wmsFeign.editRestackMakeResult(mapVal);
  245. return resTfulResult;
  246. }
  247. //渲染倒垛后的仓库信息
  248. @PostMapping("/selectAfterWarehouseByResultId/{resultId}")
  249. public Map<String, Object> selectAfterWarehouseByResultId(@PathVariable Integer resultId) {
  250. Map<String, Object> resTfulResult = wmsFeign.selectAfterWarehouseByResultId(resultId);
  251. return resTfulResult;
  252. }
  253. //渲染倒垛后的垛位信息
  254. @PostMapping("/selectAfterstackingByResultId/{resultId}")
  255. public Map<String, Object> selectAfterstackingByResultId(@PathVariable Integer resultId) {
  256. Map<String, Object> resTfulResult = wmsFeign.selectAfterWarehouseByResultId(resultId);
  257. return resTfulResult;
  258. }
  259. //PDA展示倒垛单
  260. @PostMapping("/selectRestackForPDA")
  261. public Map<String, Object> selectRestackForPDA(@RequestBody(required = false) Map<String, Object> map) {
  262. Map<String, Object> resTfulResult = wmsFeign.selectRestackForPDA(map);
  263. return resTfulResult;
  264. }
  265. //PDA根据实绩id查找物资信息
  266. @PostMapping("/selectMaterialInfoByResultId")
  267. public Map<String, Object> selectMaterialInfoByResultId(@RequestBody(required = false) Map<String, Object> map) {
  268. Map<String, Object> resTfulResult = wmsFeign.selectMaterialInfoByResultId(map);
  269. return resTfulResult;
  270. }
  271. @ApiImplicitParams({
  272. @ApiImplicitParam(value = "395",name = "apiId")
  273. })
  274. @PostMapping(value = "/getRestackInfoByResultId")
  275. public RESTfulResult getRestackInfoByResultId(@RequestBody(required = false) Map<String,Object> mapVal,
  276. Integer pageNum,
  277. Integer pageSize,
  278. Integer apiId
  279. ){
  280. return wmsFeign.getRestackInfoByResultId(mapVal==null?new HashMap<>():mapVal, pageNum, pageSize, apiId);
  281. }
  282. //PDA根据仓库id查找倒垛单
  283. @PostMapping("/selectRestackByWarehouseId")
  284. public Map<String, Object> selectRestackByWarehouseId(@RequestBody(required = false) Map<String, Object> map) {
  285. Map<String, Object> resTfulResult = wmsFeign.selectRestackByWarehouseId(map);
  286. return resTfulResult;
  287. }
  288. //扫描吊牌添加扫描实绩
  289. @PostMapping("/ScanTagResult")
  290. public Map<String, Object> ScanTagResult(@RequestBody(required = false) Map<String, Object> mal) {
  291. Map<String, Object> resTfulResult = wmsFeign.ScanTagResult(mal);
  292. return resTfulResult;
  293. }
  294. //下发
  295. @PostMapping("/Issue")
  296. public Map<String, Object> Issue(@RequestBody(required = false) List<Map<String, Object>> mapList) {
  297. Map<String, Object> resTfulResult = wmsFeign.Issue(mapList);
  298. return resTfulResult;
  299. }
  300. /**
  301. * 2.展示退库实绩信息
  302. *
  303. * @param mapValue
  304. * @param apiId
  305. * @param pageNum
  306. * @param pageSize
  307. * @return
  308. */
  309. @PostMapping("/getWmsReboundResult")
  310. @ApiOperation(value = "展示退库实绩信息")
  311. @ApiImplicitParams({
  312. @ApiImplicitParam(name = "apiId", value = "161", required = false, dataType = "BigDecimal"),
  313. })
  314. public RESTfulResult getWmsReboundResult(Map<String, Object> mapValue,
  315. Integer apiId,
  316. Integer pageNum,
  317. Integer pageSize,
  318. String con) {
  319. return wmsFeign.getWmsReboundResult(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
  320. }
  321. @PostMapping("/selectScanResultByIboundResultId")
  322. @ApiOperation(value = "根据入库实绩id获得扫描实绩数据")
  323. @ApiImplicitParams({
  324. @ApiImplicitParam(name = "apiId", value = "", required = false, dataType = "BigDecimal"),
  325. })
  326. public RESTfulResult selectScanResultByIboundResultId(@RequestBody(required = false) Map<String, Object> mapValue,
  327. @RequestParam Integer apiId,
  328. @RequestParam Integer pageNum,
  329. @RequestParam Integer pageSize,
  330. @RequestParam Integer inboundId
  331. ) {
  332. return wmsFeign.selectScanResultByIboundResultId(mapValue==null?new HashMap<>():mapValue, apiId,pageNum, pageSize,inboundId);
  333. }
  334. //根据物资信息获取原来垛位信息
  335. @PostMapping("/selectInfoByMaterialCode")
  336. public Map<String, Object> selectInfoByMaterialCode(@RequestBody(required = false) Map<String, Object> mal) {
  337. if (mal == null) {
  338. mal = new HashMap<>();
  339. }
  340. return wmsFeign.selectInfoByMaterialCode(mal);
  341. }
  342. //根据仓库查询未接收的垛位
  343. @PostMapping("/selectStackingInfoByWarehouseId")
  344. public Map<String, Object> selectStackingInfoByWarehouseId(@RequestBody(required = false) Map<String, Object> mal) {
  345. if (mal == null) {
  346. mal = new HashMap<>();
  347. }
  348. return wmsFeign.selectStackingInfoByWarehouseId(mal);
  349. }
  350. @PostMapping("/getWmsIvboundResult")
  351. @ApiOperation(value = "展示倒库实绩信息")
  352. @ApiImplicitParams({
  353. @ApiImplicitParam(name = "apiId", value = "162", required = false, dataType = "BigDecimal"),
  354. })
  355. public RESTfulResult getWmsIvboundResult(Map<String, Object> mapValue,
  356. Integer apiId,
  357. Integer pageNum,
  358. Integer pageSize) {
  359. return wmsFeign.getWmsIvboundResult(mapValue, apiId, pageNum, pageSize);
  360. }
  361. /**
  362. * 展示倒库物资实绩
  363. *
  364. * @param mapValue
  365. * @param apiId
  366. * @param pageNum
  367. * @param pageSize
  368. * @return
  369. */
  370. @PostMapping("/getWmsIvboundMaterialt")
  371. @ApiOperation(value = "展示倒库物资实绩")
  372. @ApiImplicitParams({
  373. @ApiImplicitParam(name = "apiId", value = "163", required = false, dataType = "BigDecimal"),
  374. })
  375. public RESTfulResult getWmsIvboundMaterial(Map<String, Object> mapValue,
  376. Integer apiId,
  377. Integer pageNum,
  378. Integer pageSize) {
  379. return wmsFeign.getWmsIvboundMaterial(mapValue, apiId, pageNum, pageSize);
  380. }
  381. @PostMapping("/getInventoryCheck")
  382. @ApiOperation(value = "展示库存盘点实绩")
  383. @ApiImplicitParams({
  384. @ApiImplicitParam(name = "apiId", value = "94", required = false, dataType = "BigDecimal"),
  385. })
  386. public RESTfulResult getInventoryCheck(Map<String, Object> mapValue,
  387. Integer apiId,
  388. Integer pageNum,
  389. Integer pageSize,
  390. String con) {
  391. return wmsFeign.getInventoryCheck(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
  392. }
  393. @PostMapping("/getInventoryClose")
  394. @ApiOperation(value = "展示库存结转实绩")
  395. @ApiImplicitParams({
  396. @ApiImplicitParam(name = "apiId", value = "95", required = false, dataType = "BigDecimal"),
  397. })
  398. public RESTfulResult getInventoryClose(Map<String, Object> mapValue,
  399. Integer apiId,
  400. Integer pageNum,
  401. Integer pageSize,
  402. String con) {
  403. return wmsFeign.getInventoryClose(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
  404. }
  405. @PostMapping("/getSendReceive")
  406. @ApiOperation(value = "展示收发存实绩")
  407. @ApiImplicitParams({
  408. @ApiImplicitParam(name = "apiId", value = "97", required = false, dataType = "BigDecimal"),
  409. })
  410. public RESTfulResult getSendReceive(Map<String, Object> mapValue,
  411. Integer apiId,
  412. Integer pageNum,
  413. Integer pageSize,
  414. String con) {
  415. return wmsFeign.getSendReceive(mapValue ==null? new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
  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. return wmsFeign.insertInboundResult(mapList);
  498. }
  499. /**
  500. * 新增退库实绩
  501. *
  502. * @param mapList
  503. * @return
  504. */
  505. @ApiOperation("新增退库实绩")
  506. @PostMapping("/insertReboundResult")
  507. @Transactional
  508. public String addReboundResult(@RequestBody List<Map<String, Object>> mapList) {
  509. /*
  510. 获取入库物资件数
  511. */
  512. int size = mapList.size();
  513. /*
  514. 获取入库垛位
  515. */
  516. Map<String, Object> map1 = qmsFeign.getStackingId(new BigDecimal(1), size);
  517. String stackNo = (String) map1.get("stackNo");
  518. BigDecimal stackId = new BigDecimal(map1.get("stackId").toString());
  519. for (Map<String, Object> map : mapList
  520. ) {
  521. map.put("stackingId", stackId);
  522. }
  523. wmsFeign.insertReboundResult(mapList);
  524. return stackNo;
  525. }
  526. /**
  527. * 新增倒库入库实绩
  528. *
  529. * @param mapList
  530. * @return
  531. */
  532. @ApiOperation("新增倒库入库实绩")
  533. @PostMapping("/insertIvboundResult")
  534. @Transactional
  535. public String addIvboundResult(@RequestBody List<Map<String, Object>> mapList) {
  536. /*
  537. 获取入库物资件数
  538. */
  539. int size = mapList.size();
  540. /*
  541. 获取入库垛位
  542. */
  543. Map<String, Object> map1 = qmsFeign.getStackingId(new BigDecimal(1), size);
  544. String stackNo = (String) map1.get("stackNo");
  545. BigDecimal stackId = new BigDecimal(map1.get("stackId").toString());
  546. for (Map<String, Object> map : mapList
  547. ) {
  548. map.put("stackingId", stackId);
  549. }
  550. wmsFeign.insertIvboundResult(mapList);
  551. return stackNo;
  552. }
  553. /**
  554. * 展示入库垛位
  555. *
  556. * @param DriverId
  557. * @return
  558. */
  559. @PostMapping("/getInboundStack")
  560. @ApiOperation(value = "展示入库垛位")
  561. public Integer getInboundStack(Integer DriverId) {
  562. return wmsFeign.getInboundStack(DriverId);
  563. }
  564. /**
  565. * 新增库存盘点
  566. *
  567. * @param map
  568. * @return
  569. */
  570. @PostMapping("/inventoryCheck")
  571. @ApiOperation(value = "新增库存盘点")
  572. public Map<String, Object> inventoryCheck(@RequestBody(required = false) Map<String, Object> map) {
  573. return wmsFeign.inventoryCheck(map);
  574. }
  575. /**
  576. * 新增入库扫描吊牌实绩
  577. *
  578. * @param map
  579. * @return
  580. */
  581. @ApiOperation(value = "新增入库扫描吊牌实绩")
  582. @PostMapping("/insertResult")
  583. @Transactional
  584. public Map<String, Object> insertResult(@RequestBody(required = false) Map<String, Object> map) {
  585. return wmsFeign.insertResult(map);
  586. }
  587. /**
  588. * 新增退库扫描吊牌实绩
  589. *
  590. * @param map
  591. * @return
  592. */
  593. @ApiOperation(value = "新增退库扫描吊牌实绩")
  594. @PostMapping("/insertReboundScanResult")
  595. @Transactional
  596. public Map<String, Object> insertReboundScanResult(@RequestBody(required = false) Map<String, Object> map) {
  597. return wmsFeign.insertReboundScanResult(map);
  598. }
  599. /**
  600. * 新增倒库入库扫描吊牌实绩
  601. *
  602. * @param map
  603. * @return
  604. */
  605. @ApiOperation(value = "新增倒库入库扫描吊牌实绩")
  606. @PostMapping("/insertIvboundScanResult")
  607. @Transactional
  608. public Map<String, Object> insertIvboundScanResult(@RequestBody(required = false) Map<String, Object> map) {
  609. return wmsFeign.insertIvboundScanResult(map);
  610. }
  611. /**
  612. * 根据实绩id查找物资唯一编码是否已经稽核完成
  613. */
  614. @PostMapping("/selectMaterialSteelIdByReusltId")
  615. @Transactional
  616. public Map<String, Object> selectMaterialSteelIdByReusltId(@RequestBody(required = false) Map<String, Object> map) {
  617. return wmsFeign.selectMaterialSteelIdByReusltId(map);
  618. }
  619. //下发指令给行车工
  620. @PostMapping("/updateInstruction")
  621. public Map<String, Object> updateInstruction(@RequestBody Map<String, Object> map) {
  622. return wmsFeign.updateInstruction(map);
  623. }
  624. // }
  625. @PostMapping("/getIvboundMakeResultList")
  626. @ApiOperation(value = "展示倒库列表")
  627. @ApiImplicitParams({
  628. @ApiImplicitParam(name = "apiId", value = "372", required = false, dataType = "BigDecimal"),
  629. })
  630. public RESTfulResult getIvboundMakeResultList(Map<String, Object> mapValue,
  631. Integer pageNum,
  632. Integer pageSize,
  633. Integer apiId,
  634. String con) {
  635. if (mapValue == null) {
  636. mapValue = new HashMap<>();
  637. }
  638. return wmsFeign.getIvboundMakeResultList(mapValue, pageNum, pageSize, apiId, con);
  639. }
  640. /**
  641. * 新增倒库作业
  642. * @param mapValue
  643. * @return
  644. */
  645. @PostMapping(value = "/addIvboundMakeResult")
  646. public Map<String,Object> addIvboundMakeResult(@RequestBody Map<String,Object> mapValue) {
  647. return wmsFeign.addIvboundMakeResult(mapValue);
  648. }
  649. /**
  650. * 逻辑删除倒库作业
  651. * @param resultId
  652. * @return
  653. */
  654. @PostMapping(value = "/deleteIvboundMakeResult/{resultId}")
  655. public Map<String,Object> deleteIvboundMakeResult(@PathVariable("resultId") Integer resultId) {
  656. return wmsFeign.deleteIvboundMakeResult(resultId);
  657. }
  658. /**
  659. * 查询倒库作业
  660. * @param resultId
  661. * @return
  662. */
  663. @PostMapping(value = "/selectIvboundMakeResult/{resultId}")
  664. public List<Map<String,Object>> selectIvboundMakeResult(@PathVariable("resultId") Integer resultId) {
  665. return wmsFeign.selectIvboundMakeResult(resultId);
  666. }
  667. /**
  668. * 修改倒库作业
  669. * @param mapValue
  670. * @return
  671. */
  672. @PostMapping(value = "/updateIvboundMakeResult")
  673. public Map<String,Object> updateIvboundMakeResult(@RequestBody Map<String,Object> mapValue) {
  674. return wmsFeign.updateIvboundMakeResult(mapValue);
  675. }
  676. //下发给行车工
  677. @PostMapping("/IssueToCrane")
  678. Map<String,Object> IssueToCrane(@RequestBody Map<String, Object> map){
  679. return wmsFeign.IssueToCrane(map);
  680. }
  681. }