TMSController.java 104 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183
  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. ){
  1733. return tmsTruckFeign.getAllSaleReport(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime, carrierSsoId);
  1734. }
  1735. @ApiOperation(value="查询销售统计报表筛选过后的总净重")
  1736. @PostMapping("/getAllSaleReportTotal")
  1737. public Map<String, Object> getAllSaleReportTotal(@RequestBody(required=false) Map<String,Object> mapValue,
  1738. String startTime, String endTime,
  1739. String carrierSsoId
  1740. ){
  1741. return tmsTruckFeign.getAllSaleReportTotal(mapValue==null?new HashMap<>():mapValue, startTime, endTime, carrierSsoId);
  1742. }
  1743. @ApiOperation(value="查询零星物资进厂统计报表")
  1744. @PostMapping("/getSporadicSuppliesReport1")
  1745. public Map<String, Object> getSporadicSuppliesReport1(@RequestBody(required=false) Map<String,Object> mapValue,
  1746. Integer apiId,
  1747. Integer pageNum,
  1748. Integer pageSize,
  1749. String startTime, String endTime,
  1750. String carrierSsoId,
  1751. String userId,
  1752. String userIds,
  1753. String con,
  1754. Integer orderType
  1755. ){
  1756. return tmsTruckFeign.getSporadicSuppliesReport1(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize,startTime, endTime, carrierSsoId,userId,userIds,con,orderType);
  1757. }
  1758. @ApiOperation(value="查询零星物资出厂统计报表")
  1759. @PostMapping("/getSporadicSuppliesReport2")
  1760. public Map<String, Object> getSporadicSuppliesReport2(@RequestBody(required=false) Map<String,Object> mapValue,
  1761. Integer apiId,
  1762. Integer pageNum,
  1763. Integer pageSize,
  1764. String startTime,
  1765. String endTime,
  1766. String carrierSsoId,
  1767. String userId,
  1768. String userIds,
  1769. String con,
  1770. Integer orderType
  1771. ){
  1772. return tmsTruckFeign.getSporadicSuppliesReport2(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime, carrierSsoId,userId,userIds,con,orderType);
  1773. }
  1774. @ApiOperation(value="查询采购内转运输实绩")
  1775. @PostMapping("/getPurInwardReport")
  1776. public Map<String, Object> getPurInwardReport(@RequestBody(required=false) Map<String,Object> mapValue,
  1777. Integer apiId,
  1778. Integer pageNum,
  1779. Integer pageSize,
  1780. String startTime,
  1781. String endTime) {
  1782. return tmsTruckFeign.getPurInwardReport(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1783. }
  1784. @ApiOperation(value="查询内转运输实绩")
  1785. @PostMapping("/getInwardReport")
  1786. public Map<String, Object> getInwardReport(@RequestBody(required=false) Map<String,Object> mapValue,
  1787. Integer apiId,
  1788. Integer pageNum,
  1789. Integer pageSize,
  1790. String startTime,
  1791. String endTime) {
  1792. return tmsTruckFeign.getInwardReport(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1793. }
  1794. @PostMapping("/sendMeasureCommission")
  1795. public Map<String, Object> sendMeasureCommission(@RequestBody(required = false) Map<String, Object> map){
  1796. return tmsTruckFeign.sendMeasureCommission(map);
  1797. }
  1798. @ApiOperation(value="发送留皮计量委托(neizhuan)")
  1799. @GetMapping("/sendLiuPiMeasureCommission")
  1800. public Map<String, Object> sendLiuPiMeasureCommission(String capacityNumber){
  1801. return tmsTruckFeign.sendLiuPiMeasureCommission(capacityNumber);
  1802. }
  1803. @ApiOperation(value="新增计时作业实绩")
  1804. @PostMapping("/addTimeTaskResult")
  1805. public Map<String, Object> addTimeTaskResult(@RequestBody(required = false) Map<String, Object> map){
  1806. return tmsTruckFeign.addTimeTaskResult(map);
  1807. }
  1808. @ApiOperation(value="计时判断是否开始")
  1809. @PostMapping("/JudgeTimeTask")
  1810. public Map<String, Object> JudgeTimeTask(@RequestBody(required = false) Map<String, Object> map){
  1811. return tmsTruckFeign.JudgeTimeTask(map);
  1812. }
  1813. @ApiOperation(value="计时暂停")
  1814. @PostMapping("/unitSureEndTimeout")
  1815. public Map<String, Object> unitSureEndTimeout(@RequestBody(required = false) Map<String, Object> map){
  1816. return tmsTruckFeign.unitSureEndTimeout(map);
  1817. }
  1818. @ApiOperation(value="计时暂停")
  1819. @PostMapping("/JudgeTimeTaskPause")
  1820. public Map<String, Object> JudgeTimeTaskPause(@RequestBody(required = false) Map<String, Object> map){
  1821. return tmsTruckFeign.JudgeTimeTaskPause(map);
  1822. }
  1823. @ApiOperation(value="对内转车辆装货点进行统计")
  1824. @PostMapping("/getLoading")
  1825. public Map<String, Object> getLoading(@RequestBody(required=false) Map<String,Object> mapValue,
  1826. Integer apiId,
  1827. Integer pageNum,
  1828. Integer pageSize,
  1829. String startTime,
  1830. String endTime
  1831. ){
  1832. return tmsTruckFeign.getLoading(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1833. }
  1834. @ApiOperation(value="对内转车辆装货点进行统计")
  1835. @PostMapping("/getLoaderResult")
  1836. public Map<String, Object> getLoaderResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1837. Integer apiId,
  1838. Integer pageNum,
  1839. Integer pageSize,
  1840. String startTime,
  1841. String endTime
  1842. ){
  1843. return tmsTruckFeign.getLoaderResult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1844. }
  1845. @ApiOperation(value="对内转车辆装卸货点进行统计")
  1846. @PostMapping("/getUnLoading")
  1847. public Map<String, Object> getUnLoading(@RequestBody(required=false) Map<String,Object> mapValue,
  1848. Integer apiId,
  1849. Integer pageNum,
  1850. Integer pageSize,
  1851. String startTime,
  1852. String endTime
  1853. ){
  1854. return tmsTruckFeign.getUnLoading(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1855. }
  1856. @ApiOperation(value="查询零星中转统计报表")
  1857. @PostMapping("/getLXInwardReport")
  1858. public Map<String, Object> getLXInwardReport(@RequestBody(required=false) Map<String,Object> mapValue,
  1859. Integer apiId,
  1860. Integer pageNum,
  1861. Integer pageSize,
  1862. String startTime,
  1863. String endTime
  1864. ){
  1865. return tmsTruckFeign.getLXInwardReport(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime);
  1866. }
  1867. @ApiOperation("保卫部随机抽查车牌号")
  1868. @PostMapping("/getCapacityByDefend")
  1869. public Map<String,Object> getCapacityByDefend(@RequestBody(required = false) Map<String,Object> mapValue,
  1870. Integer apiId,
  1871. Integer pageNum,
  1872. Integer pageSize,
  1873. String con){
  1874. return tmsTruckFeign.getCapacityByDefend(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
  1875. }
  1876. @ApiOperation("厂外抵达作业")
  1877. @PostMapping("/getReceiptResult")
  1878. public Map<String,Object> getReceiptResult(@RequestBody(required = false) Map<String,Object> mapValue,
  1879. Integer apiId,
  1880. Integer pageNum,
  1881. Integer pageSize,
  1882. String con,
  1883. String startTime,
  1884. String endTime){
  1885. return tmsTruckFeign.getReceiptResult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con,startTime,endTime);
  1886. }
  1887. @ApiOperation("展示满货箱的照片")
  1888. @PostMapping("/getReceiptPhoto")
  1889. public String getReceiptPhoto(@RequestParam String orderNumber){
  1890. return tmsTruckFeign.getReceiptPhoto(orderNumber);
  1891. }
  1892. @ApiOperation("厂外收货作业")
  1893. @PostMapping("/getReceivingResult")
  1894. public Map<String,Object> getReceivingResult(@RequestBody(required = false) Map<String,Object> mapValue,
  1895. Integer apiId,
  1896. Integer pageNum,
  1897. Integer pageSize,
  1898. String con,
  1899. String startTime,
  1900. String endTime){
  1901. return tmsTruckFeign.getReceivingResult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con,startTime,endTime);
  1902. }
  1903. @ApiOperation("展示收货的照片")
  1904. @PostMapping("/getReceivingPhoto")
  1905. public Map<String,Object> getReceivingPhoto(@RequestParam String orderNumber){
  1906. return tmsTruckFeign.getReceivingPhoto(orderNumber);
  1907. }
  1908. @ApiOperation("展示收货的照片")
  1909. @PostMapping("/getReceivingPhotoByUrl")
  1910. public Map<String,Object> getReceivingPhotoByUrl(@RequestParam String orderNumber) throws Exception {
  1911. Map<String,Object> map=tmsTruckFeign.getReceivingPhotoByUrl(orderNumber);
  1912. if(map.containsKey("resultEmptyContainerPhoto") && map.get("resultEmptyContainerPhoto")!=null){
  1913. String resultEmptyContainerPhoto = (String) imageFileUtils.downloadFile(map.get("resultEmptyContainerPhoto").toString());
  1914. map.put("resultEmptyContainerPhoto",resultEmptyContainerPhoto);
  1915. }
  1916. if(map.containsKey("resultSignedNotePhoto") && map.get("resultSignedNotePhoto")!=null){
  1917. String resultSignedNotePhoto = (String) imageFileUtils.downloadFile(map.get("resultSignedNotePhoto").toString());
  1918. map.put("resultSignedNotePhoto",resultSignedNotePhoto);
  1919. }
  1920. return map;
  1921. }
  1922. }