TMSController.java 105 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.config.ImageFileUtils;
  3. import com.steerinfo.dil.feign.TmsshipFeign;
  4. import com.steerinfo.dil.feign.TmsTrainFeign;
  5. import com.steerinfo.dil.feign.TmsTruckFeign;
  6. import com.steerinfo.dil.mapper.UniversalMapper;
  7. import com.steerinfo.dil.util.BaseRESTfulController;
  8. import com.steerinfo.dil.util.DataChange;
  9. import com.steerinfo.framework.controller.RESTfulResult;
  10. import io.swagger.annotations.ApiImplicitParam;
  11. import io.swagger.annotations.ApiImplicitParams;
  12. import io.swagger.annotations.ApiOperation;
  13. import io.swagger.models.auth.In;
  14. import org.springframework.beans.factory.annotation.Autowired;
  15. import org.springframework.web.bind.annotation.*;
  16. import java.math.BigDecimal;
  17. import java.util.HashMap;
  18. import java.util.List;
  19. import java.util.Map;
  20. /**
  21. * @author luobang
  22. * @create 2021-09-17 14:11
  23. */
  24. @RestController
  25. @RequestMapping("${api.version}/tms")
  26. public class TMSController extends BaseRESTfulController {
  27. @Autowired
  28. private TmsTruckFeign tmsTruckFeign;
  29. @Autowired
  30. private TmsTrainFeign tmsTrainFeign;
  31. @Autowired
  32. TmsshipFeign tmsshipFeign;
  33. @Autowired
  34. UniversalMapper universalMapper;
  35. @Autowired
  36. private ImageFileUtils imageFileUtils;
  37. /*======================================船运==========================================*/
  38. /**
  39. * 驳船
  40. *
  41. * @param mapValue
  42. * @param pageNum
  43. * @param pageSize
  44. * @param apiId
  45. * @return
  46. */
  47. @PostMapping("getBargeOperationList")
  48. @ApiOperation(value = "展示驳船")
  49. public Map<String, Object> getBargeOperationList(@RequestBody(required = false) Map<String, Object> mapValue,
  50. Integer pageNum,
  51. Integer pageSize,
  52. Integer apiId) {
  53. if (mapValue == null) {
  54. mapValue = new HashMap<>();
  55. }
  56. return tmsshipFeign.getBargeOperationList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId);
  57. }
  58. @PostMapping("selectBargeOperation/{bargeOperationId}")
  59. @ApiOperation(value = "通过id查询驳船")
  60. Map<String, Object> selectBargeOperation(@PathVariable("bargeOperationId") BigDecimal bargeOperationId) {
  61. return tmsshipFeign.selectBargeOperation(bargeOperationId);
  62. }
  63. @PostMapping("getBargeOperation/{bargeOperationId}")
  64. @ApiOperation(value = "查询驳船")
  65. Map<String, Object> getBargeOperation(@PathVariable("bargeOperationId") BigDecimal bargeOperationId) {
  66. return tmsshipFeign.getBargeOperation(bargeOperationId);
  67. }
  68. @PostMapping("deleteBargeOperation/{bargeOperationId}")
  69. @ApiOperation(value = "逻辑删除驳船")
  70. Map<String, Object> deleteBargeOperation(@PathVariable("bargeOperationId") BigDecimal bargeOperationId) {
  71. return tmsshipFeign.deleteBargeOperation(bargeOperationId);
  72. }
  73. @PostMapping("updateBargeOperation")
  74. @ApiOperation(value = "修改驳船")
  75. Map<String, Object> updateBargeOperation(@RequestBody Map<String, Object> tmsshipBargeOperation) {
  76. return tmsshipFeign.updateBargeOperation(tmsshipBargeOperation);
  77. }
  78. @PostMapping("addBargeOperation")
  79. @ApiOperation(value = "新增驳船")
  80. Map<String, Object> addBargeOperation(@RequestBody Map<String, Object> map) {
  81. return tmsshipFeign.addBargeOperation(map);
  82. }
  83. @PostMapping("addTmsShipEntryWharyResult")
  84. @ApiOperation(value = "新增抵港")
  85. Map<String, Object> addTmsShipEntryWharyResult(@RequestBody Map<String, Object> mapVal) {
  86. return tmsshipFeign.addTmsShipEntryWharyResult(mapVal);
  87. }
  88. @PostMapping("addTmsShipOutWharyResult")
  89. @ApiOperation(value = "新增离港")
  90. Map<String, Object> addTmsShipOutWharyResult(@RequestBody Map<String, Object> mapVal) {
  91. return tmsshipFeign.addTmsShipOutWharyResult(mapVal);
  92. }
  93. /**
  94. * 装船
  95. *
  96. * @param mapValue
  97. * @param pageNum
  98. * @param pageSize
  99. * @param apiId
  100. * @return
  101. */
  102. @PostMapping("getLoadShipList")
  103. @ApiOperation(value = "展示装船")
  104. public Map<String, Object> getLoadShipList(@RequestBody(required = false) Map<String, Object> mapValue,
  105. Integer pageNum,
  106. Integer pageSize,
  107. Integer apiId) {
  108. if (mapValue == null) {
  109. mapValue = new HashMap<>();
  110. }
  111. return tmsshipFeign.getLoadShipList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId);
  112. }
  113. @PostMapping("getLoadShip/{resultId}")
  114. @ApiOperation(value = "查询装船")
  115. Map<String, Object> getLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  116. return tmsshipFeign.getLoadShip(resultId);
  117. }
  118. @PostMapping("selectLoadShip/{resultId}")
  119. @ApiOperation(value = "通过id查询装船")
  120. Map<String, Object> selectLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  121. return tmsshipFeign.selectLoadShip(resultId);
  122. }
  123. @PostMapping("deleteLoadShip/{resultId}")
  124. @ApiOperation(value = "逻辑删除装船")
  125. Map<String, Object> deleteLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  126. return tmsshipFeign.deleteLoadShip(resultId);
  127. }
  128. @PostMapping("updateLoadShip")
  129. @ApiOperation(value = "修改装船")
  130. Map<String, Object> updateLoadShip(@RequestBody Map<String, Object> tmsshipLoadShipResult) {
  131. return tmsshipFeign.updateLoadShip(tmsshipLoadShipResult);
  132. }
  133. @PostMapping("addLoadShip")
  134. @ApiOperation(value = "新增装船")
  135. Map<String, Object> addLoadShip(@RequestBody Map<String, Object> map) {
  136. return tmsshipFeign.addLoadShip(map);
  137. }
  138. /**
  139. * 位置作业
  140. *
  141. * @param mapValue
  142. * @return
  143. */
  144. @PostMapping("getShipLocationList")
  145. @ApiOperation(value = "展示位置作业")
  146. public Map<String, Object> getShipLocationList(@RequestBody(required = false) Map<String, Object> mapValue) {
  147. if (mapValue == null) {
  148. mapValue = new HashMap<>();
  149. }
  150. return tmsshipFeign.getShipLocationList(mapValue==null?new HashMap<>():mapValue);
  151. }
  152. @PostMapping("getShipLocation/{locationId}")
  153. @ApiOperation(value = "查询位置作业")
  154. Map<String, Object> getShipLocation(@PathVariable("locationId") BigDecimal locationId) {
  155. return tmsshipFeign.getShipLocation(locationId);
  156. }
  157. @PostMapping("selectShipLocation/{locationId}")
  158. @ApiOperation(value = "通过id查询位置作业")
  159. Map<String, Object> selectShipLocation(@PathVariable("locationId") BigDecimal locationId) {
  160. return tmsshipFeign.selectShipLocation(locationId);
  161. }
  162. @PostMapping("deleteShipLocation/{locationId}")
  163. @ApiOperation(value = "逻辑删除位置作业")
  164. Map<String, Object> deleteShipLocation(@PathVariable("locationId") BigDecimal locationId) {
  165. return tmsshipFeign.deleteShipLocation(locationId);
  166. }
  167. @PostMapping("updateShipLocation")
  168. @ApiOperation(value = "修改位置作业")
  169. Map<String, Object> updateShipLocation(@RequestBody Map<String, Object> tmsshipShipLocation) {
  170. return tmsshipFeign.updateShipLocation(tmsshipShipLocation);
  171. }
  172. @PostMapping("addShipLocation")
  173. @ApiOperation(value = "新增位置作业")
  174. Map<String, Object> addShipLocation(@RequestBody Map<String, Object> map) {
  175. return tmsshipFeign.addShipLocation(map);
  176. }
  177. /**
  178. * 水路货物运单
  179. *
  180. * @param mapValue
  181. * @param pageNum
  182. * @param pageSize
  183. * @param apiId
  184. * @return
  185. */
  186. @PostMapping("listAllOrders")
  187. @ApiOperation(value = "展示水路货物运单")
  188. public Map<String, Object> listAllOrders(@RequestBody(required = false) Map<String, Object> mapValue,
  189. Integer pageNum,
  190. Integer pageSize,
  191. Integer apiId) {
  192. if (mapValue == null) {
  193. mapValue = new HashMap<>();
  194. }
  195. return tmsshipFeign.listAllOrders(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId);
  196. }
  197. @PostMapping("/getBatchList")
  198. public Map<String, Object> getBatchList(@RequestBody(required = false) Map<String, Object> mapValue,
  199. Integer pageNum,
  200. Integer pageSize,
  201. Integer apiId){
  202. return tmsshipFeign.getBatchList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId);
  203. }
  204. //框计算计算货权转移中出现的批次
  205. @PostMapping("/getBatchListForAttorney")
  206. public Map<String, Object> getBatchListForAttorney(@RequestBody(required = false) Map<String, Object> mapValue,
  207. Integer pageNum,
  208. Integer pageSize,
  209. Integer apiId,
  210. String con){
  211. return tmsshipFeign.getBatchListForAttorney(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId, con);
  212. }
  213. /**
  214. * 展示船只信息
  215. *
  216. * @param mapValue
  217. * @param pageNum
  218. * @param pageSize
  219. * @param apiId
  220. * @return
  221. */
  222. @PostMapping("getCapacityList")
  223. @ApiOperation(value = "展示船只信息")
  224. public Map<String, Object> getCapacityList(@RequestBody(required = false) Map<String, Object> mapValue,
  225. Integer pageNum,
  226. Integer pageSize,
  227. Integer apiId) {
  228. if (mapValue == null) {
  229. mapValue = new HashMap<>();
  230. }
  231. return tmsshipFeign.getCapacityList(mapValue, pageNum, pageSize, apiId);
  232. }
  233. /**
  234. * 卸船作业
  235. * @param mapValue
  236. * @param pageNum
  237. * @param pageSize
  238. * @param apiId
  239. * @return
  240. */
  241. @PostMapping("getUnLoadShipList")
  242. @ApiOperation(value = "展示卸船作业信息列表")
  243. public Map<String, Object> getUnLoadShipList(@RequestBody(required = false) Map<String, Object> mapValue,
  244. Integer pageNum,
  245. Integer pageSize,
  246. Integer apiId) {
  247. return tmsshipFeign.getUnLoadShipList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId);
  248. }
  249. @PostMapping("getUnloadShip/{resultId}")
  250. @ApiOperation(value = "查询卸船作业")
  251. Map<String, Object> getUnloadShip(@PathVariable("resultId") BigDecimal resultId) {
  252. return tmsshipFeign.getUnloadShip(resultId);
  253. }
  254. @PostMapping("selectUnLoadShip/{resultId}")
  255. @ApiOperation(value = "通过id查询卸船作业")
  256. Map<String, Object> selectUnLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  257. return tmsshipFeign.selectUnLoadShip(resultId);
  258. }
  259. @PostMapping("deleteUnLoadShip/{resultId}")
  260. @ApiOperation(value = "逻辑删除卸船作业")
  261. Map<String, Object> deleteUnLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  262. return tmsshipFeign.deleteUnLoadShip(resultId);
  263. }
  264. @PostMapping("updateUnLoadShip")
  265. @ApiOperation(value = "修改卸船作业")
  266. Map<String, Object> updateUnLoadShip(@RequestBody Map<String, Object> tmsshipUnloadShipResult) {
  267. return tmsshipFeign.updateUnLoadShip(tmsshipUnloadShipResult);
  268. }
  269. @PostMapping("addUnLoadShip")
  270. @ApiOperation(value = "新增卸船作业")
  271. Map<String, Object> addUnLoadShip(@RequestBody Map<String, Object> map) {
  272. return tmsshipFeign.addUnLoadShip(map);
  273. }
  274. /**
  275. * 水分质检
  276. *
  277. * @param mapValue
  278. * @param pageNum
  279. * @param pageSize
  280. * @param apiId
  281. * @return
  282. */
  283. @PostMapping("getWaterQualityResultList")
  284. @ApiOperation(value = "展示水分质检信息列表")
  285. public Map<String, Object> getWaterQualityResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  286. Integer pageNum,
  287. Integer pageSize,
  288. Integer apiId) {
  289. return tmsshipFeign.getWaterQualityResultList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId);
  290. }
  291. @PostMapping("getWaterQuality/{resultId}")
  292. @ApiOperation(value = "查询水分质检")
  293. Map<String, Object> getWaterQuality(@PathVariable("resultId") BigDecimal resultId) {
  294. return tmsshipFeign.getWaterQuality(resultId);
  295. }
  296. @PostMapping("selectWaterQualityResult/{resultId}")
  297. @ApiOperation(value = "通过id查询水分质检")
  298. Map<String, Object> selectWaterQualityResult(@PathVariable("resultId") BigDecimal resultId) {
  299. return tmsshipFeign.selectWaterQualityResult(resultId);
  300. }
  301. @PostMapping("deleteWaterQualityResult/{resultId}")
  302. @ApiOperation(value = "逻辑删除水分质检")
  303. Map<String, Object> deleteWaterQualityResult(@PathVariable("resultId") BigDecimal resultId) {
  304. return tmsshipFeign.deleteWaterQualityResult(resultId);
  305. }
  306. @PostMapping("updateWaterQualityResult")
  307. @ApiOperation(value = "修改水分质检")
  308. Map<String, Object> updateWaterQualityResult(@RequestBody Map<String, Object> tmsshipWaterQualityResult) {
  309. return tmsshipFeign.updateWaterQualityResult(tmsshipWaterQualityResult);
  310. }
  311. @PostMapping("addWaterQualityResult")
  312. @ApiOperation(value = "新增水分质检")
  313. Map<String, Object> addWaterQualityResult(@RequestBody Map<String, Object> map) {
  314. Map<String, Object> stringObjectMap = tmsshipFeign.addWaterQualityResult(map);
  315. return stringObjectMap;
  316. }
  317. /**
  318. * 船只信息
  319. *
  320. * @param mapValue
  321. * @param pageNum
  322. * @param pageSize
  323. * @param apiId
  324. * @return
  325. */
  326. @PostMapping("getCapacities")
  327. @ApiOperation(value = "展示船只信息列表")
  328. public Map<String, Object> getCapacities(BigDecimal instructionsId,
  329. @RequestBody(required = false) Map<String, Object> mapValue,
  330. Integer pageNum,
  331. Integer pageSize,
  332. Integer apiId) {
  333. if (mapValue == null) {
  334. mapValue = new HashMap<>();
  335. }
  336. return tmsshipFeign.getCapacities(instructionsId, mapValue, pageNum, pageSize, apiId);
  337. }
  338. @PostMapping("getInstructionsCapacity/{instructionsCapacityId}")
  339. @ApiOperation(value = "查询船只信息")
  340. Map<String, Object> getInstructionsCapacity(@PathVariable("instructionsCapacityId") BigDecimal instructionsCapacityId) {
  341. return tmsshipFeign.getInstructionsCapacity(instructionsCapacityId);
  342. }
  343. @PostMapping("deleteInstructionsCapacity/{instructionsCapacityId}")
  344. @ApiOperation(value = "逻辑删除船只信息")
  345. Map<String, Object> deleteInstructionsCapacity(@PathVariable("instructionsCapacityId") BigDecimal instructionsCapacityId) {
  346. return tmsshipFeign.deleteInstructionsCapacity(instructionsCapacityId);
  347. }
  348. @PostMapping("updateInstructionsCapacity")
  349. @ApiOperation(value = "修改船只信息")
  350. Map<String, Object> updateInstructionsCapacity(@RequestBody Map<String, Object> omsshipInstructionsCapacity) {
  351. return tmsshipFeign.updateInstructionsCapacity(omsshipInstructionsCapacity);
  352. }
  353. @PostMapping("addInstructionsCapacity")
  354. @ApiOperation(value = "新增船只信息")
  355. Map<String, Object> addInstructionsCapacity(@RequestBody Map<String, Object> omsshipInstructionsCapacity) {
  356. return tmsshipFeign.addInstructionsCapacity(omsshipInstructionsCapacity);
  357. }
  358. /**
  359. * 装船指令
  360. *
  361. * @param mapValue
  362. * @param pageNum
  363. * @param pageSize
  364. * @param apiId
  365. * @return
  366. */
  367. @PostMapping("getShipMentInstructionsList")
  368. @ApiOperation(value = "展示装船指令列表")
  369. public Map<String, Object> getShipMentInstructionsList(@RequestBody(required = false) Map<String, Object> mapValue,
  370. Integer pageNum,
  371. Integer pageSize,
  372. Integer apiId,
  373. String status) {
  374. if (mapValue == null) {
  375. mapValue = new HashMap<>();
  376. }
  377. return tmsshipFeign.getShipMentInstructionsList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,status);
  378. }
  379. @PostMapping("getShipmentInstructions/{instructionsId}")
  380. @ApiOperation(value = "下发装船指令")
  381. Map<String, Object> getShipmentInstructions(@PathVariable("instructionsId") BigDecimal instructionsId) {
  382. return tmsshipFeign.getShipmentInstructions(instructionsId);
  383. }
  384. @PostMapping("deleteByPrimaryKey/{instructionsId}")
  385. @ApiOperation(value = "逻辑删除装船指令")
  386. Map<String, Object> deleteByPrimaryKey(@PathVariable("instructionsId") BigDecimal instructionsId) {
  387. return tmsshipFeign.deleteByPrimaryKey(instructionsId);
  388. }
  389. @PostMapping("sendShipmentInstructionsStatus/{shipmentInstructionsId}")
  390. @ApiOperation(value = "修改状态")
  391. Map<String, Object> sendShipmentInstructionsStatus(@PathVariable("shipmentInstructionsId") BigDecimal shipmentInstructionsId) {
  392. return tmsshipFeign.sendShipmentInstructionsStatus(shipmentInstructionsId);
  393. }
  394. @PostMapping("updateShipmentInstructions")
  395. @ApiOperation(value = "修改装船指令")
  396. Map<String, Object> updateShipmentInstructions(@RequestBody Map<String, Object> omsshipShipmentInstructions) {
  397. return tmsshipFeign.updateShipmentInstructions(omsshipShipmentInstructions);
  398. }
  399. @PostMapping("addShipmentInstructions")
  400. @ApiOperation(value = "新增装船指令")
  401. Map<String, Object> addShipmentInstructions(@RequestBody Map<String, Object> omsshipShipmentInstructions) {
  402. return tmsshipFeign.addShipmentInstructions(omsshipShipmentInstructions);
  403. }
  404. /**
  405. * 货权转移
  406. *
  407. * @param mapValue
  408. * @param pageNum
  409. * @param pageSize
  410. * @param apiId
  411. * @return
  412. */
  413. @PostMapping("getAmsshipCargoTranferResultList")
  414. @ApiOperation(value = "展示货权转移")
  415. public Map<String, Object> getAmsshipCargoTranferResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  416. Integer pageNum,
  417. Integer pageSize,
  418. Integer apiId) {
  419. if (mapValue == null) {
  420. mapValue = new HashMap<>();
  421. }
  422. return tmsshipFeign.getAmsshipCargoTranferResultList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId);
  423. }
  424. @PostMapping("getGroupList")
  425. @ApiOperation(value = "展示收货人列表")
  426. @ApiImplicitParams(
  427. @ApiImplicitParam(name="apiId",value="217")
  428. )
  429. public Map<String, Object> getGroupList(@RequestBody(required = false) Map<String, Object> mapValue,
  430. Integer pageNum,
  431. Integer pageSize,
  432. Integer apiId,
  433. String con) {
  434. return tmsshipFeign.getGroupList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  435. }
  436. @PostMapping("getMaterialList")
  437. @ApiOperation(value = "展示物资列表")
  438. @ApiImplicitParams(
  439. @ApiImplicitParam(name="apiId",value="216")
  440. )
  441. public Map<String, Object> getMaterialList(@RequestBody(required = false) Map<String, Object> mapValue,
  442. Integer pageNum,
  443. Integer pageSize,
  444. Integer apiId,
  445. String con) {
  446. if (mapValue == null) {
  447. mapValue = new HashMap<>();
  448. }
  449. return tmsshipFeign.getMaterialList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  450. }
  451. @PostMapping("selectShippeByName")
  452. @ApiOperation(value = "展示货权转移送达单位列表")
  453. @ApiImplicitParams(
  454. @ApiImplicitParam(name = "apiId",value = "215")
  455. )
  456. public Map<String, Object> selectShippeByName(@RequestBody(required = false) Map<String, Object> mapValue,
  457. Integer pageNum,
  458. Integer pageSize,
  459. Integer apiId,
  460. String con) {
  461. if (mapValue == null) {
  462. mapValue = new HashMap<>();
  463. }
  464. return tmsshipFeign.selectShippeByName(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  465. }
  466. @PostMapping("insertamsshipCargoTransferResult")
  467. @ApiOperation(value = "新增货权转移")
  468. Map<String, Object> insertamsshipCargoTransferResult(@RequestBody Map<String, Object> amsshipCargoTransferResult) {
  469. return tmsshipFeign.insertamsshipCargoTransferResult(amsshipCargoTransferResult);
  470. }
  471. @PostMapping("deleteByCargoId/{cargoTransferResultId}")
  472. @ApiOperation(value = "逻辑删除货权转移")
  473. Map<String, Object> deleteByCargoId(@PathVariable("cargoTransferResultId") Integer cargoTransferResultId) {
  474. return tmsshipFeign.deleteByCargoId(cargoTransferResultId);
  475. }
  476. @PostMapping("editCargoTransferResult")
  477. @ApiOperation(value = "修改货权转移")
  478. Map<String, Object> editCargoTransferResult(@RequestBody Map<String, Object> amsshipCargoTransferResult) {
  479. return tmsshipFeign.editCargoTransferResult(amsshipCargoTransferResult);
  480. }
  481. @PostMapping("selectByCargoTranferResultId/{cargoTransferResultId}")
  482. @ApiOperation(value = "通过id查询货权转移")
  483. Map<String, Object> selectByCargoTranferResultId(@PathVariable("cargoTransferResultId") Integer cargoTransferResultId) {
  484. return tmsshipFeign.selectByCargoTranferResultId(cargoTransferResultId);
  485. }
  486. /**
  487. * 提货委托
  488. *
  489. * @param mapValue
  490. * @param pageNum
  491. * @param pageSize
  492. * @param apiId
  493. * @return
  494. */
  495. @PostMapping("getAmsshipDeliveryAttroneyList")
  496. @ApiOperation(value = "展示提货委托")
  497. public Map<String, Object> getAmsshipDeliveryAttroneyList(@RequestBody(required = false) Map<String, Object> mapValue,
  498. Integer pageNum,
  499. Integer pageSize,
  500. Integer apiId,
  501. Integer status,
  502. String con) {
  503. if (mapValue == null) {
  504. mapValue = new HashMap<>();
  505. }
  506. return tmsshipFeign.getAmsshipDeliveryAttroneyList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,status,con);
  507. }
  508. @PostMapping("insertshipDeliveryAttorney")
  509. @ApiOperation(value = "新增提货委托")
  510. Map<String, Object> insertshipDeliveryAttorney(@RequestBody Map<String, Object> map) {
  511. return tmsshipFeign.insertshipDeliveryAttorney(map);
  512. }
  513. @PostMapping("deleteByAttorneyId/{attorneyId}")
  514. @ApiOperation(value = "逻辑删除提货委托")
  515. Map<String, Object> deleteByAttorneyId(@PathVariable("attorneyId") Integer attorneyId) {
  516. return tmsshipFeign.deleteByAttorneyId(attorneyId);
  517. }
  518. @PostMapping("editDeliveryAttroney")
  519. @ApiOperation(value = "修改提货委托")
  520. Map<String, Object> editDeliveryAttroney(@RequestBody Map<String, Object> amsshipDeliveryAttorney) {
  521. return tmsshipFeign.editDeliveryAttroney(amsshipDeliveryAttorney);
  522. }
  523. @PostMapping("getDeliveryAttorneyId/{attorneyId}")
  524. @ApiOperation(value = "通过id查询提货委托")
  525. Map<String, Object> getDeliveryAttorneyId(@PathVariable("attorneyId") Integer attorneyId) {
  526. return tmsshipFeign.getDeliveryAttorneyId(attorneyId);
  527. }
  528. @PostMapping("sendDeliveryAttorneyStatus/{attorneyId}")
  529. @ApiOperation(value = "下发提货委托")
  530. Map<String, Object> sendDeliveryAttorneyStatus(@PathVariable("attorneyId") Integer attorneyId) {
  531. return tmsshipFeign.sendDeliveryAttorneyStatus(attorneyId);
  532. }
  533. /**
  534. * 放货通知
  535. *
  536. * @param mapValue
  537. * @param pageNum
  538. * @param pageSize
  539. * @param apiId
  540. * @return
  541. */
  542. @PostMapping("getshipDeliveryNoticeList")
  543. @ApiOperation(value = "展示放货通知")
  544. public Map<String, Object> getshipDeliveryNoticeList(@RequestBody(required = false) Map<String, Object> mapValue,
  545. Integer pageNum,
  546. Integer pageSize,
  547. Integer apiId,
  548. Integer status) {
  549. if (mapValue == null) {
  550. mapValue = new HashMap<>();
  551. }
  552. return tmsshipFeign.getshipDeliveryNoticeList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,status);
  553. }
  554. @PostMapping("insertDeliveryNotice")
  555. @ApiOperation(value = "新增放货通知")
  556. Map<String, Object> insertDeliveryNotice(@RequestBody Map<String, Object> amsshipDeliveryNotice) {
  557. return tmsshipFeign.insertDeliveryNotice(amsshipDeliveryNotice);
  558. }
  559. @PostMapping("deleteByNoticeId/{noticeId}")
  560. @ApiOperation(value = "逻辑删除放货通知")
  561. Map<String, Object> deleteByNoticeId(@PathVariable("noticeId") Integer noticeId) {
  562. return tmsshipFeign.deleteByNoticeId(noticeId);
  563. }
  564. @PostMapping("editDeliveryNotice")
  565. @ApiOperation(value = "修改放货通知")
  566. Map<String, Object> editDeliveryNotice(@RequestBody Map<String, Object> editDeliveryNotice) {
  567. return tmsshipFeign.editDeliveryNotice(editDeliveryNotice);
  568. }
  569. @PostMapping("selectByNoticeId/{noticeId}")
  570. @ApiOperation(value = "通过id查询放货通知")
  571. Map<String, Object> selectByNoticeId(@PathVariable("noticeId") Integer noticeId) {
  572. return tmsshipFeign.selectByNoticeId(noticeId);
  573. }
  574. @PostMapping("sendDeliveryNotice/{noticeId}")
  575. @ApiOperation(value = "下发放货通知")
  576. Map<String, Object> sendDeliveryNotice(@PathVariable("noticeId") Integer noticeId) {
  577. return tmsshipFeign.sendDeliveryNotice(noticeId);
  578. }
  579. //船舶动态表
  580. @PostMapping("/selectAllShipDynamaics")
  581. Map<String, Object> selectAllShipDynamaics(){
  582. return tmsshipFeign.selectAllShipDynamaics();
  583. }
  584. /**
  585. * 下拉框
  586. *
  587. * @return
  588. */
  589. @GetMapping("getGroupId")
  590. @ApiOperation(value = "得到下拉")
  591. public Map<String, Object> getGroupId() {
  592. return tmsshipFeign.getGroupId();
  593. }
  594. @GetMapping("getMaterialId")
  595. @ApiOperation(value = "得到物资ID下拉")
  596. public Map<String, Object> getMaterialId(){
  597. return tmsshipFeign.getMaterialId();
  598. }
  599. @GetMapping("getCargoId")
  600. @ApiOperation(value = "得到货物下拉")
  601. public Map<String, Object> getCargoId() {
  602. return tmsshipFeign.getCargoId();
  603. }
  604. @GetMapping("insertBetchId")
  605. @ApiOperation(value = "得到批次下拉")
  606. public Map<String, Object> insertBetchId() {
  607. return tmsshipFeign.insertBetchId();
  608. }
  609. @GetMapping("getAttorneyId")
  610. @ApiOperation(value = "得到提货下拉")
  611. public Map<String, Object> getAttorneyId() {
  612. return tmsshipFeign.getAttorneyId();
  613. }
  614. @GetMapping("getNoticeId")
  615. @ApiOperation(value = "得到放货下拉")
  616. public Map<String, Object> getNoticeId() {
  617. return tmsshipFeign.getNoticeId();
  618. }
  619. @GetMapping("getPortName")
  620. @ApiOperation(value = "得到货权转移单位")
  621. public Map<String, Object> getPortName() {
  622. return tmsshipFeign.getPortName();
  623. }
  624. @GetMapping("getPortId")
  625. @ApiOperation(value = "得到港口下拉")
  626. public Map<String, Object> getPortId() {
  627. return tmsshipFeign.getPortId();
  628. }
  629. @GetMapping("getRmRawId")
  630. @ApiOperation(value = "得到仓库下拉")
  631. public Map<String, Object> getRmRawId() {
  632. return tmsshipFeign.getRmRawId();
  633. }
  634. @GetMapping("getPierId")
  635. @ApiOperation(value = "得到码头下拉")
  636. public Map<String, Object> getPierId() {
  637. return tmsshipFeign.getPierId();
  638. }
  639. @ApiOperation(value = "查询特定所有的物资")
  640. @GetMapping("/getFuMaterial/{type}")
  641. public Map<String, Object> getFuMaterial(@PathVariable("type") Integer type) {
  642. return tmsTruckFeign.getFuMaterial(type);
  643. }
  644. @GetMapping("getResultNumber")
  645. @ApiOperation(value = "得到实绩编号下拉")
  646. public Map<String, Object> getResultNumber() {
  647. return tmsshipFeign.getResultNumber();
  648. }
  649. @GetMapping("getCarrier")
  650. @ApiOperation(value = "得到承运商下拉")
  651. public Map<String, Object> getCarrier() {
  652. return tmsshipFeign.getCarrier();
  653. }
  654. @GetMapping("getShipperId")
  655. @ApiOperation(value = "得到托运方下拉")
  656. public Map<String, Object> getShipperId() {
  657. return tmsshipFeign.getShipper();
  658. }
  659. @GetMapping("getOrderId")
  660. @ApiOperation(value = "得到装船指令下拉")
  661. public Map<String, Object> getTask() {
  662. return tmsshipFeign.getTask();
  663. }
  664. @GetMapping("getCapacityId")
  665. @ApiOperation(value = "得到船下拉")
  666. public Map<String, Object> getCapacityId() {
  667. return tmsshipFeign.getCapacityId();
  668. }
  669. /*======================================火运==========================================*/
  670. //************************************TmstrainLoadingResultController********************
  671. @ApiOperation(value = "查询装车作业信息")
  672. @ApiImplicitParams({
  673. @ApiImplicitParam(name = "apiId(58)", value = "表头", required = false, dataType = "Interger")
  674. })
  675. @PostMapping("/getTmstrainWagonLoad")
  676. public Map<String, Object> getTmstrainWagonLoad(@RequestBody(required = false) Map<String, Object> mapValue,
  677. Integer apiId,
  678. Integer pageNum,
  679. Integer pageSize,
  680. Integer resultType,
  681. String con) {
  682. return tmsTrainFeign.getTmstrainWagonLoad(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, resultType, con);
  683. }
  684. @ApiOperation(value = "新增车皮装车作业实绩")
  685. @ApiImplicitParams({
  686. @ApiImplicitParam(name = "tmstrainLoadingResult", value = "车皮装车对象", required = false, dataType = "TmstrainLoadingResult")
  687. })
  688. @PostMapping(value = "/insertTmstrainLoadingResult")
  689. public Map<String, Object> insertTmstrainLoadingResult(@RequestBody(required = false) Map<String, Object> map) {
  690. return tmsTrainFeign.insertTmstrainLoadingResult(map);
  691. }
  692. @ApiOperation(value = "通过主键查询车皮装车作业信息")
  693. @ApiImplicitParams({
  694. @ApiImplicitParam(name = "resultId", value = "车皮装车主键", required = false, dataType = "BigDecimal")
  695. })
  696. @PostMapping(value = "/getTmstrainLoadingResultByResultId/{resultId}")
  697. public Map<String, Object> getTmstrainLoadingResultByResultId(@PathVariable("resultId") BigDecimal resultId) {
  698. return tmsTrainFeign.getTmstrainLoadingResultByResultId(resultId);
  699. }
  700. @ApiOperation(value = "通过主键修改车皮装车作业实绩")
  701. @ApiImplicitParams({
  702. @ApiImplicitParam(name = "tmstrainLoadingResult", value = "修改车皮装车map", required = false, dataType = "TmstrainWagonLoadResult")
  703. })
  704. @PostMapping(value = "/upadteTmstrainLoadingResultByResultId")
  705. public Map<String, Object> upadteTmstrainLoadingResultByResultId(@RequestBody(required = false) Map<String, Object> map) {
  706. return tmsTrainFeign.upadteTmstrainLoadingResultByResultId(map);
  707. }
  708. @ApiOperation(value = "通过主键删除车皮装车作业实绩")
  709. @ApiImplicitParams({
  710. @ApiImplicitParam(name = "resultId", value = "主键ID", required = false, dataType = "BigDecimal")
  711. })
  712. @PostMapping(value = "/deleteTmstrainLoadingResultByResultId")
  713. public Map<String, Object> deleteTmstrainLoadingResultByResultId(@RequestParam BigDecimal resultId) {
  714. return tmsTrainFeign.deleteTmstrainLoadingResultByResultId(resultId);
  715. }
  716. //********************下拉框**********************
  717. @ApiOperation(value = "获取发站地点名称")
  718. @ApiImplicitParams({
  719. })
  720. @GetMapping(value = "/getSendStationName")
  721. public Map<String, Object> getSendStationName() {
  722. return tmsTrainFeign.getSendStationName();
  723. }
  724. @ApiOperation(value = "获取到站地点名称")
  725. @GetMapping(value = "/getArrivalStationName")
  726. public Map<String, Object> getArrivalStationName() {
  727. return tmsTrainFeign.getArrivalStationName();
  728. }
  729. @ApiOperation(value = "获取批次ID")
  730. @GetMapping(value = "/getBatchId")
  731. public Map<String, Object> getBatchId() {
  732. return tmsTrainFeign.getBatchId();
  733. }
  734. @ApiOperation(value = "获取已装车还未卸车车皮")
  735. @PostMapping(value = "/getWagonNo/{resultType}")
  736. public Map<String, Object> getWagonNo(@PathVariable("resultType") Integer resultType,
  737. @RequestBody(required = false) Map<String, Object> mapValue,
  738. Integer apiId,
  739. Integer pageNum,
  740. Integer pageSize){
  741. return tmsTrainFeign.getWagonNo(resultType, mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize);
  742. }
  743. @ApiOperation(value = "查询所有发运计划")
  744. @GetMapping(value = "/getRailPlan")
  745. public Map<String, Object> getRailPlan() {
  746. return tmsTrainFeign.getRailPlan();
  747. }
  748. @GetMapping(value = "/getDilBatch")
  749. public Map<String, Object> getDilBatch() {
  750. return tmsTruckFeign.getDilBatch();
  751. }
  752. @GetMapping(value = "/getCarrierId")
  753. public Map<String, Object> getCarrierId() {
  754. return tmsTruckFeign.getCarrier();
  755. }
  756. @GetMapping(value = "/getLine")
  757. public Map<String, Object> getLine() {
  758. return tmsTruckFeign.getLine();
  759. }
  760. @GetMapping(value = "/getWarehouse")
  761. public Map<String, Object> getWarehouse() {
  762. return tmsTruckFeign.getWarehouse();
  763. }
  764. @GetMapping(value = "/getGatepost")
  765. public Map<String, Object> getGatepost() {
  766. return tmsTruckFeign.getGatepost();
  767. }
  768. @GetMapping(value = "/getAPO")
  769. public Map<String, Object> getAPO() {
  770. return tmsTruckFeign.getAPO();
  771. }
  772. @GetMapping(value = "/getFuCapacityId")
  773. public Map<String, Object> getFuCapacityId() {
  774. return tmsTruckFeign.getFuCapacityId();
  775. }
  776. @GetMapping(value = "/getPort")
  777. public Map<String, Object> getPort() {
  778. return tmsTruckFeign.getPort();
  779. }
  780. @ApiOperation(value = "查询卸货点")
  781. @GetMapping("/getUnloadPoint/{type}")
  782. public Map<String, Object> getUnloadPoint(@PathVariable("type") Integer type) {
  783. return tmsTruckFeign.getUnloadPoint(type);
  784. }
  785. @ApiOperation(value = "查询卸车作业信息")
  786. @ApiImplicitParams({
  787. @ApiImplicitParam(name = "apiId(60)", value = "表头", required = false, dataType = "Interger")
  788. })
  789. @PostMapping("/getTmstrainWagonUnLoad")
  790. public Map<String, Object> getTmstrainWagonUnLoad(@RequestBody(required = false) Map<String, Object> mapValue,
  791. Integer apiId,
  792. Integer pageNum,
  793. Integer pageSize,
  794. Integer resultType,
  795. String con) {
  796. return tmsTrainFeign.getTmstrainWagonUnLoad(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, resultType,con);
  797. }
  798. @ApiOperation(value = "通过主键删除车皮卸车作业实绩")
  799. @ApiImplicitParams({
  800. @ApiImplicitParam(name = "unloadingId", value = "主键ID", required = false, dataType = "BigDecimal")
  801. })
  802. @PostMapping(value = "/deleteTmstrainWagonUnLoadResultByUnLoadingId")
  803. public Map<String, Object> deleteTmstrainWagonUnLoadResultByUnLoadingId(@RequestParam BigDecimal unloadingId) {
  804. return tmsTrainFeign.deleteTmstrainWagonUnLoadResultByUnLoadingId(unloadingId);
  805. }
  806. @ApiOperation(value = "新增车皮卸车作业实绩")
  807. @ApiImplicitParams({
  808. @ApiImplicitParam(name = "tmstrainWagonUnloadResult", value = "车皮卸车对象", required = false, dataType = "TmstrainWagonUnloadResult")
  809. })
  810. @PostMapping(value = "/insertTmstrainWagonUnLoadResult")
  811. public Map<String, Object> insertTmstrainWagonUnLoadResult(@RequestBody(required = false) Map<String, Object> tmstrainWagonUnloadResult) {
  812. return tmsTrainFeign.insertTmstrainWagonUnLoadResult(tmstrainWagonUnloadResult);
  813. }
  814. @ApiOperation(value = "通过主键修改车皮卸车作业实绩")
  815. @ApiImplicitParams({
  816. @ApiImplicitParam(name = "tmstrainWagonUnloadResult", value = "车皮卸车对象", required = false, dataType = "TmstrainWagonUnloadResult")
  817. })
  818. @PostMapping(value = "/upadteTmstrainWagonUnLoadResultByUnLoadingId")
  819. public Map<String, Object> upadteTmstrainWagonUnLoadResultByUnLoadingId(@RequestBody(required = false) Map<String, Object> tmstrainWagonUnloadResult) {
  820. return tmsTrainFeign.upadteTmstrainWagonUnLoadResultByUnLoadingId(tmstrainWagonUnloadResult);
  821. }
  822. @ApiOperation(value = "查看火运实绩")
  823. @ApiImplicitParams({
  824. @ApiImplicitParam(name = "apiId(65)", value = "表头", required = false, dataType = "Interger")
  825. })
  826. @PostMapping("/getTmstrainresult")
  827. public Map<String, Object> getTmstrainresult(@RequestBody(required = false) Map<String, Object> mapValue,
  828. Integer apiId,
  829. Integer pageNum,
  830. Integer pageSize,
  831. String con) {
  832. return tmsTrainFeign.getTmstrainresult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  833. }
  834. @ApiOperation(value = "通过主键查询车皮卸车作业信息")
  835. @ApiImplicitParams({
  836. @ApiImplicitParam(name = "unloadingId", value = "车皮卸车主键", required = false, dataType = "BigDecimal")
  837. })
  838. @PostMapping(value = "/getTmstrainWagonUnLoadResultByUnLoadingId/{unloadingId}")
  839. public Map<String, Object> getTmstrainWagonUnLoadResultByUnLoadingId(@PathVariable("unloadingId") BigDecimal unloadingId) {
  840. return tmsTrainFeign.getTmstrainWagonUnLoadResultByUnLoadingId(unloadingId);
  841. }
  842. //下拉框
  843. @ApiOperation(value = "获取卸车地点名称")
  844. @ApiImplicitParams({
  845. })
  846. @GetMapping(value = "/getUnloadingPointName")
  847. public Map<String, Object> getUnloadingPointName() {
  848. return tmsTrainFeign.getUnloadingPointName();
  849. }
  850. @ApiOperation(value = "获取卸车路径名称")
  851. @ApiImplicitParams({
  852. })
  853. @GetMapping(value = "/getUnloadingRouteName")
  854. public Map<String, Object> getUnloadingRouteName() {
  855. return tmsTrainFeign.getUnloadingRouteName();
  856. }
  857. @ApiOperation(value = "查询请车作业")
  858. @ApiImplicitParams({
  859. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  860. @ApiImplicitParam(name = "apiId(57)", value = "动态表头", required = false, dataType = "Integer"),
  861. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  862. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  863. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  864. })
  865. @PostMapping("/getAllWagonPlease")
  866. public Map<String, Object> getAllWagonPlease(@RequestBody(required = false) Map<String, Object> mapValue,
  867. Integer apiId,
  868. Integer pageNum,
  869. Integer pageSize,
  870. Integer status,
  871. Integer resultType,
  872. Integer resultId,
  873. String con) {
  874. return tmsTrainFeign.getAllWagonPlease(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, status, resultType,resultId,con);
  875. }
  876. @ApiOperation(value = "通过Id查询请车作业")
  877. @PostMapping("/getWagonPleaseById/{resultId}")
  878. public Map<String, Object> getWagonPleaseById(@PathVariable("resultId") Integer resultId) {
  879. return tmsTrainFeign.getWagonPleaseById(resultId);
  880. }
  881. @ApiOperation(value = "新增请车作业")
  882. @ApiImplicitParams({
  883. @ApiImplicitParam(name = "amstrainWagonPlease", value = "请车作业对象", required = false, dataType = "AmstrainWagonPlease"),
  884. })
  885. @PostMapping("/addWagonPlease")
  886. public Map<String, Object> addWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult) {
  887. return tmsTrainFeign.addWagonPlease(tmstrainPleaseApproveResult);
  888. }
  889. @ApiOperation(value = "修改请车作业")
  890. @ApiImplicitParams({
  891. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  892. })
  893. @PostMapping("/updateWagonPlease")
  894. public Map<String, Object> updateWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult) {
  895. return tmsTrainFeign.updateWagonPlease(tmstrainPleaseApproveResult);
  896. }
  897. @ApiOperation(value = "逻辑删除请车作业 设置状态码为 3")
  898. @ApiImplicitParams({
  899. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  900. })
  901. @PostMapping("/deleteWagonPlease/{resultId}")
  902. public Map<String, Object> deleteWagonPlease(@PathVariable("resultId") Integer resultId) {
  903. return tmsTrainFeign.deleteWagonPlease(resultId);
  904. }
  905. @ApiOperation(value = "下发请车作业 设置状态码为 1")
  906. @ApiImplicitParams({
  907. @ApiImplicitParam(name = "resultId", value = "请车作业实绩对象", required = false, dataType = "Integer"),
  908. })
  909. @PostMapping("/sendWagonPlease/{resultId}")
  910. public Map<String, Object> sendWagonPlease(@PathVariable("resultId") Integer resultId) {
  911. return tmsTrainFeign.sendWagonPlease(resultId);
  912. }
  913. //下拉框
  914. @ApiOperation(value = "查询所有发货单位")
  915. @GetMapping("/getShipper")
  916. public Map<String, Object> getShipper() {
  917. return tmsTrainFeign.getShipper();
  918. }
  919. @ApiOperation(value = "查询批车作业")
  920. @ApiImplicitParams({
  921. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  922. @ApiImplicitParam(name = "apiId(70)", value = "动态表头", required = false, dataType = "Integer"),
  923. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  924. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  925. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  926. })
  927. @PostMapping("/getApproveAllWagonPlease")
  928. public Map<String, Object> getApproveAllWagonPlease(@RequestBody(required = false) Map<String, Object> mapValue,
  929. Integer apiId,
  930. Integer pageNum,
  931. Integer pageSize,
  932. Integer resultType,
  933. Integer status,
  934. String con) {
  935. return tmsTrainFeign.getApproveAllWagonPlease(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, resultType,status,con);
  936. }
  937. @ApiOperation(value = "通过Id查询批车作业")
  938. @PostMapping("/getApproveWagonPleaseById/{resultId}")
  939. public Map<String, Object> getApproveWagonPleaseById(@PathVariable("resultId") Integer resultId) {
  940. return tmsTrainFeign.getApproveWagonPleaseById(resultId);
  941. }
  942. @ApiOperation(value = "新增批车作业")
  943. @ApiImplicitParams({
  944. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  945. })
  946. @PostMapping("/addApproveWagonPlease")
  947. public Map<String, Object> addApproveWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult) {
  948. return tmsTrainFeign.addApproveWagonPlease(tmstrainPleaseApproveResult);
  949. }
  950. @ApiOperation(value = "修改批车作业")
  951. @ApiImplicitParams({
  952. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  953. })
  954. @PostMapping("/updateApproveWagonPlease")
  955. public Map<String, Object> updateApproveWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult) {
  956. return tmsTrainFeign.updateApproveWagonPlease(tmstrainPleaseApproveResult);
  957. }
  958. @ApiOperation(value = "逻辑删除批车作业")
  959. @ApiImplicitParams({
  960. @ApiImplicitParam(name = "resultId", value = "请车作业实绩对象", required = false, dataType = "Integer"),
  961. })
  962. @PostMapping("/deleteApproveWagonPlease/{resultId}")
  963. public Map<String, Object> deleteApproveWagonPlease(@PathVariable("resultId") Integer resultId) {
  964. return tmsTrainFeign.deleteApproveWagonPlease(resultId);
  965. }
  966. /*======================================汽运==========================================*/
  967. //******************************************TmstruckLoadResultController***********************************
  968. @ApiOperation(value="查询所有正在排队的销售订单")
  969. @ApiImplicitParams({
  970. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  971. @ApiImplicitParam(name = "apiId(227)", value = "动态表头", required = false, dataType = "Integer"),
  972. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  973. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  974. })
  975. @PostMapping("/getSaleOrderOnQueue")
  976. public Map<String, Object> getSaleOrderOnQueue(@RequestBody(required=false) Map<String,Object> mapValue,
  977. Integer apiId,
  978. Integer pageNum,
  979. Integer pageSize,
  980. String con){
  981. return tmsTruckFeign.getSaleOrderOnQueue(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, con);
  982. }
  983. @ApiOperation(value="查询订单下的物资")
  984. @GetMapping("getOrderMaterial/{orderId}")
  985. public Map<String, Object> getOrderMaterial(@PathVariable("orderId") Integer orderId){
  986. return tmsTruckFeign.getOrderMaterial(orderId);
  987. }
  988. @ApiOperation(value="查询仓库下所有月台")
  989. @GetMapping("getPlatformIdByWarehouse/{warehouseId}")
  990. public Map<String, Object> getPlatformIdByWarehouse(@PathVariable("warehouseId") Integer warehouseId){
  991. return tmsTruckFeign.getPlatformIdByWarehouse(warehouseId);
  992. }
  993. @ApiOperation(value="修改装车点和装车顺序:销售钢材专用 ")
  994. @ApiImplicitParams({
  995. @ApiImplicitParam(name = "map", value = "", required = false, dataType = "Map"),
  996. })
  997. @PostMapping("/updateLoadingIdAndLoadSq")
  998. public Map<String, Object> updateLoadingIdAndLoadSq(@RequestBody(required=false) Map<String, Object> map){
  999. return tmsTruckFeign.updateLoadingIdAndLoadSq(map);
  1000. }
  1001. @ApiOperation(value = "查询所有装车实绩")
  1002. @ApiImplicitParams({
  1003. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1004. @ApiImplicitParam(name = "apiId(91)", value = "动态表头", required = false, dataType = "Integer"),
  1005. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1006. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1007. })
  1008. @PostMapping("/getAllLoadResult")
  1009. public Map<String, Object> getAllLoadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1010. Integer apiId,
  1011. Integer pageNum,
  1012. Integer pageSize,
  1013. Integer status,
  1014. Integer orderType,
  1015. String con,
  1016. String userId,
  1017. String userIds){
  1018. return tmsTruckFeign.getAllLoadResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, status, orderType, con,userId,userIds);
  1019. }
  1020. @ApiOperation(value = "新增采购汽车装车实绩")
  1021. @ApiImplicitParams({
  1022. @ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
  1023. })
  1024. @PostMapping("/addCGLoadResult")
  1025. public Map<String, Object> addCGLoadResult(@RequestBody(required = false) Map<String, Object> mapValue) {
  1026. return tmsTruckFeign.addCGLoadResult(mapValue);
  1027. }
  1028. @ApiOperation(value="销售新增钢材装车实绩 ")
  1029. @ApiImplicitParams({
  1030. @ApiImplicitParam(name = "map", value = "", required = false, dataType = "Map"),
  1031. })
  1032. @PostMapping("addSaleLoadResult")
  1033. public Map<String, Object> addSaleLoadResult(@RequestBody(required=false) Map<String, Object> map){
  1034. return tmsTruckFeign.addSaleLoadResult(map);
  1035. }
  1036. @ApiOperation(value="销售新增钢渣、水渣、危化品装车实绩 ")
  1037. @ApiImplicitParams({
  1038. @ApiImplicitParam(name = "map", value = "", required = false, dataType = "Map"),
  1039. })
  1040. @PostMapping("/addSale2LoadResult")
  1041. public Map<String, Object> addSale2LoadResult(@RequestBody(required=false) Map<String, Object> map){
  1042. return tmsTruckFeign.addSale2LoadResult(map);
  1043. }
  1044. @ApiOperation(value = "修改汽车装车实绩")
  1045. @ApiImplicitParams({
  1046. @ApiImplicitParam(name = "tmstruckLoadResult", value = "装车作业实绩对象", required = false, dataType = "TmstruckLoadResult"),
  1047. })
  1048. @PostMapping("/updateLoadResult")
  1049. public Map<String, Object> updateLoadResult(@RequestBody Map<String, Object> map) {
  1050. return tmsTruckFeign.updateLoadResult(map);
  1051. }
  1052. @ApiOperation(value = "通过ID查询装车实绩 ")
  1053. @ApiImplicitParams({
  1054. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1055. })
  1056. @PostMapping("/getLoadResultById/{resultId}")
  1057. public Map<String, Object> getLoadResultById(@PathVariable("resultId") Integer resultId) {
  1058. return tmsTruckFeign.getLoadResultById(resultId);
  1059. }
  1060. @ApiOperation(value = "逻辑删除车装车实绩")
  1061. @ApiImplicitParams({
  1062. @ApiImplicitParam(name = "tmstruckLoadResult", value = "装车作业实绩对象", required = false, dataType = "TmstruckLoadResult"),
  1063. })
  1064. @PostMapping("/deleteLoadResult/{resultId}")
  1065. public Map<String, Object> deleteLoadResult(@PathVariable("resultId") Integer resultId) {
  1066. return tmsTruckFeign.deleteLoadResult(resultId);
  1067. }
  1068. //***************************************TmstruckEnfactoryResultController***************************
  1069. @ApiOperation(value = "查询所有的进厂实绩")
  1070. @ApiImplicitParams({
  1071. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1072. @ApiImplicitParam(name = "apiId(220)", value = "动态表头", required = false, dataType = "Integer"),
  1073. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1074. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1075. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1076. })
  1077. @PostMapping("/getAllEnFactoryResult")
  1078. public Map<String, Object> getAllEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1079. Integer apiId,
  1080. Integer pageNum,
  1081. Integer pageSize,
  1082. Integer orderType,
  1083. String startTime,
  1084. String endTime,
  1085. String userId,
  1086. String userIds
  1087. ){
  1088. return tmsTruckFeign.getAllEnFactoryResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, startTime,endTime,userId,userIds);
  1089. }
  1090. @ApiOperation(value="通过运输订单id查询物资信息")
  1091. @ApiImplicitParams({
  1092. @ApiImplicitParam(name = "orderId", value = "运输订单id", required = false, dataType = "Integer"),
  1093. })
  1094. @GetMapping("/getMaterial")
  1095. public Map<String, Object> getMaterial(Integer orderId){
  1096. return tmsTruckFeign.getMaterial(orderId);
  1097. }
  1098. @ApiOperation(value="通过采集系统传来的数据新增进厂作业实绩")
  1099. @ApiImplicitParams({
  1100. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  1101. })
  1102. @PostMapping("/addEnFactoryResult")
  1103. public Map<String, Object> addEnFactoryResult(@RequestBody(required = false) Map<String, Object> mapValue) {
  1104. return tmsTruckFeign.addEnFactoryResult(mapValue);
  1105. }
  1106. @ApiOperation(value = "PDA扫描更新进厂作业实绩")
  1107. @ApiImplicitParams({
  1108. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  1109. })
  1110. @PostMapping("/enFactoryResultByPDA")
  1111. public Map<String, Object> enFactoryResultByPDA(@RequestBody(required = false) Map<String, Object> mapValue) {
  1112. //PDA扫码会多个反斜杠所以需要截取
  1113. String orderNumber = (String) mapValue.get("orderNumber");
  1114. orderNumber = orderNumber.substring(0, orderNumber.length()-1);
  1115. mapValue.put("orderNumber", orderNumber);
  1116. //通过订单号获取订单ID 和 订单类型
  1117. Map<String, Object> orderMesMap = universalMapper.getOrderMesByOrderNumber(orderNumber);
  1118. BigDecimal orderType = DataChange.dataToBigDecimal(orderMesMap.get("orderType"));
  1119. //如果订单类型为2 则需要财务公司审核才能进厂
  1120. if(orderType.intValue() == 2){
  1121. Integer saleOrderStatus = universalMapper.getSaleOrderStatus(DataChange.dataToBigDecimal(orderMesMap.get("orderId")));
  1122. if(saleOrderStatus != 4){
  1123. //如果不等于4则是未通过财务审批 ,不可以进厂
  1124. Map<String, Object> returnMap = new HashMap<>();
  1125. returnMap.put("code", "201");
  1126. returnMap.put("status", "failed");
  1127. returnMap.put("data", "审批未通过不能进厂!");
  1128. return returnMap;
  1129. }
  1130. }
  1131. return tmsTruckFeign.enFactoryResultByPDA(mapValue);
  1132. }
  1133. //***************************************TmstruckWeightResultController***************************
  1134. @ApiOperation(value = "查询计毛实绩")
  1135. @ApiImplicitParams({
  1136. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1137. @ApiImplicitParam(name = "apiId(102)", value = "动态表头", required = false, dataType = "Integer"),
  1138. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1139. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1140. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1141. })
  1142. @PostMapping("/getAllJiMaoResult")
  1143. public Map<String, Object> getAllJiMaoResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1144. Integer apiId,
  1145. Integer pageNum,
  1146. Integer pageSize,
  1147. Integer orderType,
  1148. String con,
  1149. String userId,
  1150. String userIds){
  1151. return tmsTruckFeign.getAllJiMaoResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,userId,userIds);
  1152. }
  1153. @ApiOperation(value = "查询计皮实绩")
  1154. @ApiImplicitParams({
  1155. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1156. @ApiImplicitParam(name = "apiId(104)", value = "动态表头", required = false, dataType = "Integer"),
  1157. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1158. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1159. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1160. })
  1161. @PostMapping("/getAllJiPiResult")
  1162. public Map<String, Object> getAllJiPiResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1163. Integer apiId,
  1164. Integer pageNum,
  1165. Integer pageSize,
  1166. Integer orderType,
  1167. String con,
  1168. String userId,
  1169. String userIds) {
  1170. return tmsTruckFeign.getAllJiPiResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,userId,userIds);
  1171. }
  1172. @ApiOperation(value = "采集新增计毛实绩 ")
  1173. @ApiImplicitParams({
  1174. @ApiImplicitParam(name = "mapValue", value = "采集的数据", required = false, dataType = "Map"),
  1175. })
  1176. @PostMapping("/addJiMaoResult")
  1177. public Map<String, Object> addJiMaoResult(@RequestBody Map<String, Object> mapValue) {
  1178. return tmsTruckFeign.addJiMaoResult(mapValue);
  1179. }
  1180. @ApiOperation(value = "采集新增计皮实绩 ")
  1181. @ApiImplicitParams({
  1182. @ApiImplicitParam(name = "mapValue", value = "采集的数据", required = false, dataType = "Map"),
  1183. })
  1184. @PostMapping("/addJiPiResult")
  1185. public Map<String, Object> addJiPiResult(@RequestBody Map<String, Object> mapValue) {
  1186. return tmsTruckFeign.addJiPiResult(mapValue);
  1187. }
  1188. //****************************************TmstruckUnloadResultController*******************************
  1189. @ApiOperation(value = "查询卸货实绩")
  1190. @ApiImplicitParams({
  1191. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1192. @ApiImplicitParam(name = "apiId(103)", value = "动态表头", required = false, dataType = "Integer"),
  1193. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1194. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1195. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1196. })
  1197. @PostMapping("/getUnloadResult")
  1198. public Map<String, Object> getUnloadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1199. Integer apiId,
  1200. Integer pageNum,
  1201. Integer pageSize,
  1202. Integer orderType,
  1203. String con,
  1204. String userId,
  1205. String userIds
  1206. ){
  1207. return tmsTruckFeign.getUnloadResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,userId,userIds);
  1208. }
  1209. @ApiOperation(value = "添加卸货实绩")
  1210. @ApiImplicitParams({
  1211. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1212. })
  1213. @PostMapping("/addUnloadResult")
  1214. public Map<String, Object> addUnloadResult(@RequestBody Map<String, Object> mapValue) {
  1215. return tmsTruckFeign.addUnloadResult(mapValue);
  1216. }
  1217. @ApiOperation(value = "更新卸货实绩 ")
  1218. @ApiImplicitParams({
  1219. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1220. })
  1221. @PostMapping("/updateUnloadResult")
  1222. public Map<String, Object> updateUnloadResult(@RequestBody Map<String, Object> mapValue) {
  1223. return tmsTruckFeign.updateUnloadResult(mapValue);
  1224. }
  1225. //****************************************TmstruckReceiptResultController*******************************
  1226. @ApiOperation(value = "查询收货实绩")
  1227. @ApiImplicitParams({
  1228. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1229. @ApiImplicitParam(name = "apiId(107)", value = "动态表头", required = false, dataType = "Integer"),
  1230. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1231. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1232. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1233. })
  1234. @PostMapping("/getReceiveResult")
  1235. public Map<String, Object> getReceiveResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1236. Integer apiId,
  1237. Integer pageNum,
  1238. Integer pageSize,
  1239. Integer orderType,String con
  1240. ){
  1241. return tmsTruckFeign.getReceiveResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con);
  1242. }
  1243. //****************************************TmstruckLeaveFactoryResultController*******************************
  1244. @ApiOperation(value="查询出厂实绩")
  1245. @ApiImplicitParams({
  1246. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1247. @ApiImplicitParam(name = "apiId(110)", value = "动态表头", required = false, dataType = "Integer"),
  1248. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1249. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1250. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1251. })
  1252. @PostMapping("/getLeaveFactoryResult")
  1253. public Map<String, Object> getLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1254. Integer apiId,
  1255. Integer pageNum,
  1256. Integer pageSize,
  1257. Integer orderType,
  1258. String con,
  1259. String carrierSsoId,
  1260. String userId,
  1261. String userIds,
  1262. String startTime,
  1263. String endTime
  1264. ){
  1265. return tmsTruckFeign.getLeaveFactoryResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con, carrierSsoId,userId,userIds,startTime,endTime);
  1266. }
  1267. @ApiOperation(value="PAD扫描汽车出厂实绩")
  1268. @ApiImplicitParams({
  1269. @ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
  1270. })
  1271. @PostMapping("/addLeaveFactoryResult")
  1272. public Map<String, Object> addLeaveFactoryResult(@RequestBody(required = false) Map<String, Object> mapValue) {
  1273. return tmsTruckFeign.addLeaveFactoryResult(mapValue);
  1274. }
  1275. //****************************************TmstruckMeasureCommissionController*******************************
  1276. @ApiOperation(value = "查询计量委托 ")
  1277. @ApiImplicitParams({
  1278. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1279. })
  1280. @PostMapping("/getAllMeasureCommission/{type}")
  1281. public Map<String, Object> getAllMeasureCommission(@PathVariable("type") Integer type) {
  1282. return tmsTruckFeign.getAllMeasureCommission(type);
  1283. }
  1284. //****************************************TmstruckQualityResultController*******************************
  1285. @ApiOperation(value = "查询所有的质检作业")
  1286. @ApiImplicitParams({
  1287. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1288. @ApiImplicitParam(name = "apiId(111)", value = "动态表头", required = false, dataType = "Integer"),
  1289. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1290. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1291. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1292. })
  1293. @PostMapping("/getQualityResult")
  1294. public Map<String, Object> getQualityResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1295. Integer apiId,
  1296. Integer pageNum,
  1297. Integer pageSize,
  1298. Integer orderType,
  1299. String con
  1300. ){
  1301. return tmsTruckFeign.getQualityResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,orderType, con);
  1302. }
  1303. @ApiOperation(value = "通过ID获取质检实绩 ")
  1304. @ApiImplicitParams({
  1305. @ApiImplicitParam(name = "resultId", value = "质检作业实绩ID", required = false, dataType = "Integer"),
  1306. })
  1307. @PostMapping("/getQualityResultById/{resultId}")
  1308. public Map<String, Object> getQualityResultById(@PathVariable("resultId") Integer resultId) {
  1309. return tmsTruckFeign.getQualityResultById(resultId);
  1310. }
  1311. @ApiOperation(value = "修改质检实绩 ")
  1312. @ApiImplicitParams({
  1313. @ApiImplicitParam(name = "resultId", value = "质检作业实绩ID", required = false, dataType = "Integer"),
  1314. })
  1315. @PostMapping("/updateQualityResult")
  1316. public Map<String, Object> updateQualityResult(@RequestBody(required = false) Map<String, Object> mapValue) {
  1317. return tmsTruckFeign.updateQualityResult(mapValue);
  1318. }
  1319. //*********************************内转物流tms-train*********************************************************************
  1320. @PostMapping("/addTrainLoadResultForConverted")
  1321. @ApiOperation(value = "内转物流新增装车")
  1322. public Map<String, Object> addTrainLoadResultForConverted(@RequestBody(required = false) Map<String, Object> tmstrainLoadingResult) {
  1323. return tmsTrainFeign.addTrainLoadResultForConverted(tmstrainLoadingResult);
  1324. }
  1325. @ApiOperation(value = "内转新增卸车实绩")
  1326. @ApiImplicitParams({
  1327. })
  1328. @PostMapping(value = "/addTmsTrainUnloadResultForNZ")
  1329. public Map<String, Object> addTmsTrainUnloadResultForNZ(@RequestBody(required = false)Map<String, Object> map) {
  1330. return tmsTrainFeign.addTmsTrainUnloadResultForNZ(map);
  1331. }
  1332. @ApiOperation(value = "查询车皮物资信息")
  1333. @ApiImplicitParams({
  1334. @ApiImplicitParam(name = "apiId(213)", value = "表头", required = false, dataType = "Interger")
  1335. })
  1336. @PostMapping(value = "/getMaterialAndCarByLoadingId")
  1337. public Map<String, Object> getMaterialAndCarByLoadingId(
  1338. @RequestBody(required = false) Map<String, Object> mapValue,
  1339. Integer apiId,
  1340. Integer pageNum,
  1341. Integer pageSize,
  1342. Integer loadingId,
  1343. Integer unloadingId) {
  1344. return tmsTrainFeign.getMaterialAndCarByLoadingId(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, loadingId, unloadingId);
  1345. }
  1346. @PostMapping("/selectLoadByResultId/{resultId}")
  1347. @ApiOperation(value = "内转物流通过主键查询车皮装车作业信息")
  1348. public Map<String, Object> selectLoadByResultId(@PathVariable("resultId") BigDecimal resultId) {
  1349. Map<String, Object> mes = tmsTrainFeign.selectLoadByResultId(resultId);
  1350. return mes;
  1351. }
  1352. @ApiOperation(value = "内转查询装车作业信息")
  1353. @ApiImplicitParams({
  1354. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1355. @ApiImplicitParam(name = "apiId(203)", value = "动态表头", required = false, dataType = "Integer"),
  1356. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1357. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1358. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1359. })
  1360. @PostMapping("/getTmstrainWagonLoadForConverted")
  1361. public Map<String, Object> getTmstrainWagonLoadForConverted(@RequestBody(required = false)
  1362. Integer apiId,
  1363. Integer pageNum,
  1364. Integer pageSize,
  1365. String con
  1366. ) {
  1367. return tmsTrainFeign.getTmstrainWagonLoadForConverted(apiId, pageNum, pageSize,con);
  1368. }
  1369. @PostMapping("/addWagonPleaseForNZ")
  1370. @ApiOperation(value = "内转物流新增请车")
  1371. public Map<String, Object> addPleaseForNZ(@RequestBody(required = false) Map<String, Object> tmstrainLoadingResult) {
  1372. return tmsTrainFeign.addPleaseForNZ(tmstrainLoadingResult);
  1373. }
  1374. @ApiOperation(value="内转新增达州站-厂内装车实绩 ")
  1375. @ApiImplicitParams({
  1376. @ApiImplicitParam(name = "map", value = "", required = false, dataType = "Map"),
  1377. })
  1378. @PostMapping("/addDaZhouToDaGangLoadResult")
  1379. public Map<String, Object> addDaZhouToDaGangLoadResult(@RequestBody(required = false)Map<String, Object> map){
  1380. return tmsTruckFeign.addDaZhouToDaGangLoadResult(map);
  1381. }
  1382. @ApiOperation(value = "内转查询请车作业信息")
  1383. @ApiImplicitParams({
  1384. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1385. @ApiImplicitParam(name = "apiId(199)", value = "动态表头", required = false, dataType = "Integer"),
  1386. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1387. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1388. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1389. })
  1390. @PostMapping("/getAllWagonPleaseForConverted")
  1391. public Map<String, Object> getAllWagonPleaseForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1392. Integer apiId,
  1393. Integer pageNum,
  1394. Integer pageSize,
  1395. Integer status,
  1396. String con
  1397. ) {
  1398. if (mapValue == null) {
  1399. mapValue = new HashMap<>();
  1400. }
  1401. mapValue.put("status", status);
  1402. return tmsTrainFeign.getTmstrainWagonLoadForConverted(apiId, pageNum, pageSize,con);
  1403. }
  1404. @PostMapping("/getPleasePlanByResultId/{resultId}")
  1405. @ApiOperation(value = "内转物流通过主键查请车计划")
  1406. public Map<String, Object> getPleasePlanByResultId(@PathVariable("resultId") BigDecimal resultId) {
  1407. Map<String, Object> mes = tmsTrainFeign.getPleasePlanByResultId(resultId);
  1408. return mes;
  1409. }
  1410. @PostMapping("/getApproveByResultId/{resultId}")
  1411. @ApiOperation(value = "内转物流通过主键查询车皮请车作业信息")
  1412. public Map<String, Object> getApproveByResultId(@PathVariable("resultId") BigDecimal resultId) {
  1413. Map<String, Object> mes = tmsTrainFeign.getApproveByResultId(resultId);
  1414. return mes;
  1415. }
  1416. @ApiOperation(value = "查询卸车作业信息")
  1417. @ApiImplicitParams({
  1418. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1419. @ApiImplicitParam(name = "apiId(201)", value = "动态表头", required = false, dataType = "Integer"),
  1420. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1421. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1422. })
  1423. @PostMapping("/selectWagonUnLoadResultForConverted")
  1424. public Map<String, Object> selectWagonUnLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1425. Integer apiId,
  1426. Integer pageNum,
  1427. Integer pageSize,
  1428. String con
  1429. ) {
  1430. return tmsTrainFeign.selectWagonUnLoadResultForConverted(apiId, pageNum, pageSize,con);
  1431. }
  1432. @ApiOperation(value = "内转查询火车卸货信息")
  1433. @ApiImplicitParams({
  1434. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1435. @ApiImplicitParam(name = "apiId(202)", value = "动态表头", required = false, dataType = "Integer"),
  1436. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1437. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1438. })
  1439. @PostMapping("/selectTrainUnLoadResultForConverted")
  1440. public Map<String, Object> selectTrainUnLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1441. Integer apiId,
  1442. Integer pageNum,
  1443. Integer pageSize,
  1444. String con
  1445. ) {
  1446. return tmsTrainFeign.selectTrainUnLoadResultForConverted(apiId, pageNum, pageSize,con);
  1447. }
  1448. /**
  1449. * 新增汽车装货实绩
  1450. */
  1451. @ApiOperation(value = "新增汽车装车实绩")
  1452. @ApiImplicitParams({
  1453. @ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
  1454. })
  1455. @PostMapping("/addLoadResultForConverted")
  1456. public Map<String, Object> addLoadResultForConverted(@RequestBody(required = false) Map<String, Object> map) {
  1457. Map<String, Object> resTfulResult = tmsTruckFeign.addLoadResultForConverted(map);
  1458. return resTfulResult;
  1459. }
  1460. @ApiOperation(value = "查询所有装车实绩")
  1461. @ApiImplicitParams({
  1462. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1463. @ApiImplicitParam(name = "apiId(91)", value = "动态表头", required = false, dataType = "Integer"),
  1464. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1465. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1466. })
  1467. @PostMapping("/selectLoadResultForConverted")
  1468. public Map<String, Object> selectLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1469. Integer apiId,
  1470. Integer pageNum,
  1471. Integer pageSize
  1472. ) {
  1473. return tmsTruckFeign.selectLoadResultForConverted(mapValue, apiId, pageNum, pageSize);
  1474. }
  1475. //根据实绩id渲染数据
  1476. @ApiOperation(value = "通过ID查询装车实绩 ")
  1477. @ApiImplicitParams({
  1478. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1479. })
  1480. @PostMapping("/getLoadResultByResultId/{resultId}")
  1481. public Map<String, Object> getLoadResultByResultId(@PathVariable("resultId") Integer resultId) {
  1482. Map<String, Object> resTfulResult = tmsTruckFeign.getLoadResultByResultId(resultId);
  1483. return resTfulResult;
  1484. }
  1485. @ApiOperation(value = "内转物流查询质检作业")
  1486. @ApiImplicitParams({
  1487. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1488. @ApiImplicitParam(name = "apiId(204)", value = "动态表头", required = false, dataType = "Integer"),
  1489. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1490. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1491. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1492. })
  1493. @PostMapping("/selectQualityResultForConverted")
  1494. public Map<String, Object> selectQualityResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1495. Integer apiId,
  1496. Integer pageNum,
  1497. Integer pageSize
  1498. ) {
  1499. return tmsTruckFeign.selectQualityResultForConverted(mapValue, apiId, pageNum, pageSize);
  1500. }
  1501. /**
  1502. * 展示计数实绩列表
  1503. */
  1504. @ApiOperation(value = "查询计数实绩列表")
  1505. @ApiImplicitParams({
  1506. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1507. @ApiImplicitParam(name = "apiId(364)", value = "动态表头", required = false, dataType = "Integer"),
  1508. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1509. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1510. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1511. })
  1512. @PostMapping("/selectCountList")
  1513. public Map<String, Object> selectCountList(@RequestBody(required = false) Map<String, Object> mapValue,
  1514. Integer apiId,
  1515. Integer pageNum,
  1516. Integer pageSize
  1517. ) {
  1518. return tmsTruckFeign.selectCountList(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize);
  1519. }
  1520. //采购内转待装车实绩
  1521. @ApiOperation(value = "查询待装车运单列表")
  1522. @PostMapping("/cgNzLoadingResult")
  1523. public Map<String, Object> cgNzLoadingResult(@RequestBody(required = false) Map<String, Object> mapVal,
  1524. Integer apiId,
  1525. Integer pageNum,
  1526. Integer pageSize,
  1527. Integer orderType,
  1528. Integer orderStatus
  1529. ) {
  1530. return tmsTruckFeign.cgNzLoadingResult(mapVal==null?new HashMap<>():mapVal, apiId, pageNum, pageSize,orderType,orderStatus);
  1531. }
  1532. /**
  1533. * 内转物流卸货装车实绩
  1534. *
  1535. * @param map
  1536. * @return
  1537. */
  1538. @ApiOperation(value = "内转物流新增卸货实绩 ")
  1539. @ApiImplicitParams({
  1540. @ApiImplicitParam(name = "orderNumber", value = "运输订单号", required = false, dataType = "String"),
  1541. })
  1542. @PostMapping("/addUnLoadResultForconverted")
  1543. public Map<String, Object> addUnLoadResultForconverted(@RequestBody(required = false) Map<String, Object> map) {
  1544. Map<String, Object> resTfulResult = tmsTruckFeign.addUnLoadResultForconverted(map);
  1545. return resTfulResult;
  1546. }
  1547. @ApiOperation(value = "查询所有的包月作业实绩")
  1548. @ApiImplicitParams({
  1549. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1550. @ApiImplicitParam(name = "apiId(还没有)", value = "动态表头", required = false, dataType = "Integer"),
  1551. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1552. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1553. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1554. })
  1555. @PostMapping("/getTmstruckMonthResult")
  1556. public Map<String, Object> getTmstruckMonthResult(@RequestBody(required = false) Map<String, Object> mapValue,
  1557. Integer apiId,
  1558. Integer pageNum,
  1559. Integer pageSize
  1560. ) {
  1561. return tmsTruckFeign.getTmstruckMonthResult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize);
  1562. }
  1563. /**
  1564. * 通过运输订单判断下一步是否需要计量,更新汽车衡到计量实绩中
  1565. */
  1566. @PostMapping("/updateTruckCalculate/{orderId}")
  1567. public Map<String, Object> updateTruckCalculate(@PathVariable("orderId") Integer orderId) {
  1568. return tmsTruckFeign.isNextNeedJl(orderId);
  1569. }
  1570. @ApiOperation(value="查询所有的短信实绩")
  1571. @ApiImplicitParams({
  1572. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1573. @ApiImplicitParam(name = "apiId(175)", value = "动态表头", required = false, dataType = "Integer"),
  1574. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1575. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1576. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1577. })
  1578. @PostMapping("/getSmsResult")
  1579. public Map<String, Object> getSmsResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1580. Integer apiId,
  1581. Integer pageNum,
  1582. Integer pageSize,
  1583. String con
  1584. ){
  1585. if (mapValue == null) {
  1586. mapValue = new HashMap<>();
  1587. }
  1588. return tmsTruckFeign.getSmsResult(mapValue,apiId,pageNum,pageSize,con);
  1589. }
  1590. @ApiOperation(value="APP查询进厂实绩")
  1591. @PostMapping("/getEnfactoryResultList")
  1592. public Map<String ,Object> getEnfactoryResultList() {
  1593. return tmsTruckFeign.getEnfactoryResultList();
  1594. }
  1595. @ApiOperation(value="APP通过运输订单id查询进厂实绩")
  1596. @PostMapping("/getEnfactoryMessageByOrderId")
  1597. public Map<String ,Object> getEnfactoryMessageByOrderId(String orderNumber) {
  1598. return tmsTruckFeign.getEnfactoryMessageByOrderId(orderNumber);
  1599. }
  1600. @ApiOperation(value="查询计皮实绩")
  1601. @ApiImplicitParams({
  1602. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1603. @ApiImplicitParam(name = "apiId(363)", value = "动态表头", required = false, dataType = "Integer"),
  1604. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1605. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1606. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1607. })
  1608. @PostMapping("/getAllTimeTaskResult")
  1609. public RESTfulResult getAllTimeTaskResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1610. Integer apiId,
  1611. Integer pageNum,
  1612. Integer pageSize,
  1613. String con,
  1614. String userId,
  1615. String startTime,
  1616. String endTime
  1617. ){
  1618. return tmsTruckFeign.getAllTimeTaskResult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, con,userId,startTime,endTime);
  1619. }
  1620. @ApiOperation(value="新增钢材到异地库达州站驻港人员确定收货")
  1621. @PostMapping("/addSteelNzReceiptResult")
  1622. public Map<String, Object> addSteelNzReceiptResult(@RequestBody(required = false) Map<String, Object> map) {
  1623. return tmsTruckFeign.addSteelNzReceiptResult(map);
  1624. }
  1625. @ApiOperation(value="更新计量实绩 ")
  1626. @ApiImplicitParams({
  1627. @ApiImplicitParam(name = "mapList", value = "计量数据", required = false, dataType = "List<Map>"),
  1628. })
  1629. @PostMapping("/updateTruckWeight")
  1630. public Map<String, Object> updateTruckWeight(@RequestBody List<Map<String, Object>> mapList){
  1631. return tmsTruckFeign.updateTruckWeight(mapList);
  1632. }
  1633. @ApiOperation(value="查询所有的退货实绩")
  1634. @ApiImplicitParams({
  1635. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1636. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  1637. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1638. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1639. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1640. })
  1641. @PostMapping("/getAllReturnResult")
  1642. public Map<String, Object> getAllReturnResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1643. Integer apiId,
  1644. Integer pageNum,
  1645. Integer pageSize,
  1646. Integer orderType,
  1647. String con
  1648. ){
  1649. return tmsTruckFeign.getAllReturnResult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, orderType, con);
  1650. }
  1651. @ApiOperation(value="提货单 ")
  1652. @ApiImplicitParams({
  1653. @ApiImplicitParam(name = "orderNumber", value = "运输订单号", required = false, dataType = "String"),
  1654. })
  1655. @PostMapping("/getBillOrder")
  1656. public Map<String, Object> getBillOrder(@RequestParam String orderNumber){
  1657. return tmsTruckFeign.getBillOrder(orderNumber);
  1658. }
  1659. @ApiOperation(value="发货通知单 ")
  1660. @ApiImplicitParams({
  1661. @ApiImplicitParam(name = "orderNumber", value = "运输订单号", required = false, dataType = "String"),
  1662. })
  1663. @PostMapping("/getDeliveryOrder")
  1664. public Map<String, Object> getDeliveryOrder(@RequestParam String orderNumber){
  1665. return tmsTruckFeign.getDeliveryOrder(orderNumber);
  1666. }
  1667. @ApiOperation(value="模糊查询江船名 ")
  1668. @ApiImplicitParams({
  1669. @ApiImplicitParam(name = "state", value = "用户输入的江船名", required = false, dataType = "String"),
  1670. })
  1671. @PostMapping("getShipNameList")
  1672. public Map<String, Object> getShipNameList(@RequestParam(value = "state") String state){
  1673. return tmsshipFeign.getShipNameList(state);
  1674. }
  1675. @ApiOperation(value = "国产矿物流新增装车")
  1676. @PostMapping(value = "/addDomesticLoadResult")
  1677. public Map<String, Object> addDomesticLoadResult(@RequestBody(required = false) Map<String, Object> map) {
  1678. return tmsTrainFeign.addDomesticLoadResult(map);
  1679. }
  1680. @ApiOperation(value = "国产矿物流补录装车信息")
  1681. @PostMapping(value = "/updateDomesticLoadResult")
  1682. public Map<String, Object> updateDomesticLoadResult(@RequestBody(required = false) Map<String, Object> map) {
  1683. return tmsTrainFeign.updateDomesticLoadResult(map);
  1684. }
  1685. @ApiOperation(value = "添加火车计量委托")
  1686. @PostMapping(value = "/addTrainMeasureCommission")
  1687. public Map<String, Object> addTrainMeasureCommission(@RequestBody(required = false) Map<String, Object> map) {
  1688. return tmsTrainFeign.addTrainMeasureCommission(map);
  1689. }
  1690. @ApiOperation(value = "查询需要发送计量委托的车皮信息")
  1691. @ApiImplicitParams({
  1692. @ApiImplicitParam(name = "apiId(209)", value = "表头", required = false, dataType = "Interger")
  1693. })
  1694. @PostMapping(value = "/getLoadResultToSendMC")
  1695. public Map<String, Object> getLoadResultToSendMC( @RequestBody(required = false) Map<String, Object> mapValue,
  1696. Integer apiId,
  1697. Integer pageNum,
  1698. Integer pageSize,Integer resultType) {
  1699. return tmsTrainFeign.getLoadResultToSendMC(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, resultType);
  1700. }
  1701. @ApiOperation(value = "批量新增计量委托")
  1702. @PostMapping(value = "/batchSendMeasureCommission")
  1703. public Map<String, Object> batchSendMeasureCommission(@RequestBody(required = false) Map<String, Object> map) {
  1704. return tmsTrainFeign.batchSendMeasureCommission(map);
  1705. }
  1706. //获取合同水分值,实装吨位,水分吨位
  1707. @PostMapping("/getMoistureAndInstallations")
  1708. public Map<String,Object> getMoistureAndInstallations(@RequestBody(required=false) Map<String,Object> map){
  1709. return tmsshipFeign.getMoistureAndInstallations(map);
  1710. }
  1711. @ApiOperation(value="查询辅料燃料统计报表")
  1712. @PostMapping("/getRLFLReport")
  1713. public Map<String, Object> getRLFLReport(@RequestBody(required=false) Map<String,Object> mapValue,
  1714. Integer apiId,
  1715. Integer pageNum,
  1716. Integer pageSize,
  1717. String startTime,
  1718. String endTime,
  1719. Integer orderType
  1720. ){
  1721. return tmsTruckFeign.getRLFLReport(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime, orderType);
  1722. }
  1723. @ApiOperation(value="查询销售统计报表")
  1724. @PostMapping("/getAllSaleReport")
  1725. public Map<String, Object> getAllSaleReport(@RequestBody(required=false) Map<String,Object> mapValue,
  1726. Integer apiId,
  1727. Integer pageNum,
  1728. Integer pageSize,
  1729. String startTime,
  1730. String endTime,
  1731. String carrierSsoId,
  1732. Integer orderType,
  1733. Integer shipperId
  1734. ){
  1735. return tmsTruckFeign.getAllSaleReport(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime, carrierSsoId,orderType,shipperId);
  1736. }
  1737. @ApiOperation(value="查询销售统计报表筛选过后的总净重")
  1738. @PostMapping("/getAllSaleReportTotal")
  1739. public Map<String, Object> getAllSaleReportTotal(@RequestBody(required=false) Map<String,Object> mapValue,
  1740. String startTime, String endTime,
  1741. String carrierSsoId
  1742. ){
  1743. return tmsTruckFeign.getAllSaleReportTotal(mapValue==null?new HashMap<>():mapValue, startTime, endTime, carrierSsoId);
  1744. }
  1745. @ApiOperation(value="查询零星物资进厂统计报表")
  1746. @PostMapping("/getSporadicSuppliesReport1")
  1747. public Map<String, Object> getSporadicSuppliesReport1(@RequestBody(required=false) Map<String,Object> mapValue,
  1748. Integer apiId,
  1749. Integer pageNum,
  1750. Integer pageSize,
  1751. String startTime, String endTime,
  1752. String carrierSsoId,
  1753. String userId,
  1754. String userIds,
  1755. String con,
  1756. Integer orderType
  1757. ){
  1758. return tmsTruckFeign.getSporadicSuppliesReport1(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize,startTime, endTime, carrierSsoId,userId,userIds,con,orderType);
  1759. }
  1760. @ApiOperation(value="查询零星物资出厂统计报表")
  1761. @PostMapping("/getSporadicSuppliesReport2")
  1762. public Map<String, Object> getSporadicSuppliesReport2(@RequestBody(required=false) Map<String,Object> mapValue,
  1763. Integer apiId,
  1764. Integer pageNum,
  1765. Integer pageSize,
  1766. String startTime,
  1767. String endTime,
  1768. String carrierSsoId,
  1769. String userId,
  1770. String userIds,
  1771. String con,
  1772. Integer orderType
  1773. ){
  1774. return tmsTruckFeign.getSporadicSuppliesReport2(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime, carrierSsoId,userId,userIds,con,orderType);
  1775. }
  1776. @ApiOperation(value="查询采购内转运输实绩")
  1777. @PostMapping("/getPurInwardReport")
  1778. public Map<String, Object> getPurInwardReport(@RequestBody(required=false) Map<String,Object> mapValue,
  1779. Integer apiId,
  1780. Integer pageNum,
  1781. Integer pageSize,
  1782. String startTime,
  1783. String endTime) {
  1784. return tmsTruckFeign.getPurInwardReport(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1785. }
  1786. @ApiOperation(value="查询内转运输实绩")
  1787. @PostMapping("/getInwardReport")
  1788. public Map<String, Object> getInwardReport(@RequestBody(required=false) Map<String,Object> mapValue,
  1789. Integer apiId,
  1790. Integer pageNum,
  1791. Integer pageSize,
  1792. String startTime,
  1793. String endTime) {
  1794. return tmsTruckFeign.getInwardReport(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1795. }
  1796. @PostMapping("/sendMeasureCommission")
  1797. public Map<String, Object> sendMeasureCommission(@RequestBody(required = false) Map<String, Object> map){
  1798. return tmsTruckFeign.sendMeasureCommission(map);
  1799. }
  1800. @ApiOperation(value="发送留皮计量委托(neizhuan)")
  1801. @GetMapping("/sendLiuPiMeasureCommission")
  1802. public Map<String, Object> sendLiuPiMeasureCommission(String capacityNumber){
  1803. return tmsTruckFeign.sendLiuPiMeasureCommission(capacityNumber);
  1804. }
  1805. @ApiOperation(value="新增计时作业实绩")
  1806. @PostMapping("/addTimeTaskResult")
  1807. public Map<String, Object> addTimeTaskResult(@RequestBody(required = false) Map<String, Object> map){
  1808. return tmsTruckFeign.addTimeTaskResult(map);
  1809. }
  1810. @ApiOperation(value="计时判断是否开始")
  1811. @PostMapping("/JudgeTimeTask")
  1812. public Map<String, Object> JudgeTimeTask(@RequestBody(required = false) Map<String, Object> map){
  1813. return tmsTruckFeign.JudgeTimeTask(map);
  1814. }
  1815. @ApiOperation(value="计时暂停")
  1816. @PostMapping("/unitSureEndTimeout")
  1817. public Map<String, Object> unitSureEndTimeout(@RequestBody(required = false) Map<String, Object> map){
  1818. return tmsTruckFeign.unitSureEndTimeout(map);
  1819. }
  1820. @ApiOperation(value="计时暂停")
  1821. @PostMapping("/JudgeTimeTaskPause")
  1822. public Map<String, Object> JudgeTimeTaskPause(@RequestBody(required = false) Map<String, Object> map){
  1823. return tmsTruckFeign.JudgeTimeTaskPause(map);
  1824. }
  1825. @ApiOperation(value="对内转车辆装货点进行统计")
  1826. @PostMapping("/getLoading")
  1827. public Map<String, Object> getLoading(@RequestBody(required=false) Map<String,Object> mapValue,
  1828. Integer apiId,
  1829. Integer pageNum,
  1830. Integer pageSize,
  1831. String startTime,
  1832. String endTime
  1833. ){
  1834. return tmsTruckFeign.getLoading(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1835. }
  1836. @ApiOperation(value="对内转车辆装货点进行统计")
  1837. @PostMapping("/getLoaderResult")
  1838. public Map<String, Object> getLoaderResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1839. Integer apiId,
  1840. Integer pageNum,
  1841. Integer pageSize,
  1842. String startTime,
  1843. String endTime
  1844. ){
  1845. return tmsTruckFeign.getLoaderResult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1846. }
  1847. @ApiOperation(value="对内转车辆装卸货点进行统计")
  1848. @PostMapping("/getUnLoading")
  1849. public Map<String, Object> getUnLoading(@RequestBody(required=false) Map<String,Object> mapValue,
  1850. Integer apiId,
  1851. Integer pageNum,
  1852. Integer pageSize,
  1853. String startTime,
  1854. String endTime
  1855. ){
  1856. return tmsTruckFeign.getUnLoading(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1857. }
  1858. @ApiOperation(value="查询零星中转统计报表")
  1859. @PostMapping("/getLXInwardReport")
  1860. public Map<String, Object> getLXInwardReport(@RequestBody(required=false) Map<String,Object> mapValue,
  1861. Integer apiId,
  1862. Integer pageNum,
  1863. Integer pageSize,
  1864. String startTime,
  1865. String endTime
  1866. ){
  1867. return tmsTruckFeign.getLXInwardReport(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1868. }
  1869. @ApiOperation(value="拼装车内转统计报表")
  1870. @PostMapping("/getInwardReportForAssemble")
  1871. public Map<String, Object> getInwardReportForAssemble(@RequestBody(required=false) Map<String,Object> mapValue,
  1872. Integer apiId,
  1873. Integer pageNum,
  1874. Integer pageSize,
  1875. String startTime,
  1876. String endTime
  1877. ){
  1878. return tmsTruckFeign.getInwardReportForAssemble(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1879. }
  1880. @ApiOperation("保卫部随机抽查车牌号")
  1881. @PostMapping("/getCapacityByDefend")
  1882. public Map<String,Object> getCapacityByDefend(@RequestBody(required = false) Map<String,Object> mapValue,
  1883. Integer apiId,
  1884. Integer pageNum,
  1885. Integer pageSize,
  1886. String startTime,
  1887. String endTime,
  1888. String con){
  1889. return tmsTruckFeign.getCapacityByDefend(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize,startTime,endTime,con);
  1890. }
  1891. @ApiOperation("厂外抵达作业")
  1892. @PostMapping("/getReceiptResult")
  1893. public Map<String,Object> getReceiptResult(@RequestBody(required = false) Map<String,Object> mapValue,
  1894. Integer apiId,
  1895. Integer pageNum,
  1896. Integer pageSize,
  1897. String con,
  1898. String startTime,
  1899. String endTime){
  1900. return tmsTruckFeign.getReceiptResult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con,startTime,endTime);
  1901. }
  1902. @ApiOperation("展示满货箱的照片")
  1903. @PostMapping("/getReceiptPhoto")
  1904. public String getReceiptPhoto(@RequestParam String orderNumber){
  1905. return tmsTruckFeign.getReceiptPhoto(orderNumber);
  1906. }
  1907. @ApiOperation("厂外收货作业")
  1908. @PostMapping("/getReceivingResult")
  1909. public Map<String,Object> getReceivingResult(@RequestBody(required = false) Map<String,Object> mapValue,
  1910. Integer apiId,
  1911. Integer pageNum,
  1912. Integer pageSize,
  1913. String con,
  1914. String startTime,
  1915. String endTime){
  1916. return tmsTruckFeign.getReceivingResult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con,startTime,endTime);
  1917. }
  1918. @ApiOperation("展示收货的照片")
  1919. @PostMapping("/getReceivingPhoto")
  1920. public Map<String,Object> getReceivingPhoto(@RequestParam String orderNumber){
  1921. return tmsTruckFeign.getReceivingPhoto(orderNumber);
  1922. }
  1923. @ApiOperation("展示收货的照片")
  1924. @PostMapping("/getReceivingPhotoByUrl")
  1925. public Map<String,Object> getReceivingPhotoByUrl(@RequestParam String orderNumber) throws Exception {
  1926. Map<String,Object> map=tmsTruckFeign.getReceivingPhotoByUrl(orderNumber);
  1927. if(map.containsKey("resultEmptyContainerPhoto") && map.get("resultEmptyContainerPhoto")!=null){
  1928. String resultEmptyContainerPhoto = (String) imageFileUtils.downloadFile(map.get("resultEmptyContainerPhoto").toString());
  1929. map.put("resultEmptyContainerPhoto",resultEmptyContainerPhoto);
  1930. }
  1931. if(map.containsKey("resultSignedNotePhoto") && map.get("resultSignedNotePhoto")!=null){
  1932. String resultSignedNotePhoto = (String) imageFileUtils.downloadFile(map.get("resultSignedNotePhoto").toString());
  1933. map.put("resultSignedNotePhoto",resultSignedNotePhoto);
  1934. }
  1935. return map;
  1936. }
  1937. }