TMSController.java 104 KB

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