TMSController.java 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.feign.TmsshipFeign;
  3. import com.steerinfo.dil.feign.TmsTrainFeign;
  4. import com.steerinfo.dil.feign.TmsTruckFeign;
  5. import com.steerinfo.dil.util.BaseRESTfulController;
  6. import com.steerinfo.framework.controller.RESTfulResult;
  7. import io.swagger.annotations.ApiImplicitParam;
  8. import io.swagger.annotations.ApiImplicitParams;
  9. import io.swagger.annotations.ApiOperation;
  10. import io.swagger.models.auth.In;
  11. import org.springframework.beans.factory.annotation.Autowired;
  12. import org.springframework.web.bind.annotation.*;
  13. import java.math.BigDecimal;
  14. import java.util.HashMap;
  15. import java.util.Map;
  16. /**
  17. * @author luobang
  18. * @create 2021-09-17 14:11
  19. */
  20. @RestController
  21. @RequestMapping("${api.version}/tms")
  22. public class TMSController extends BaseRESTfulController {
  23. @Autowired
  24. private TmsTruckFeign tmsTruckFeign;
  25. @Autowired
  26. private TmsTrainFeign tmsTrainFeign;
  27. @Autowired
  28. TmsshipFeign tmsshipFeign;
  29. /*======================================船运==========================================*/
  30. /**
  31. * 驳船
  32. *
  33. * @param mapValue
  34. * @param pageNum
  35. * @param pageSize
  36. * @param apiId
  37. * @return
  38. */
  39. @PostMapping("getBargeOperationList")
  40. @ApiOperation(value = "展示驳船")
  41. public Map<String, Object> getBargeOperationList(@RequestBody(required = false) Map<String, Object> mapValue,
  42. Integer pageNum,
  43. Integer pageSize,
  44. Integer apiId,
  45. String con) {
  46. if (mapValue == null) {
  47. mapValue = new HashMap<>();
  48. }
  49. return tmsshipFeign.getBargeOperationList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  50. }
  51. @PostMapping("selectBargeOperation/{bargeOperationId}")
  52. @ApiOperation(value = "通过id查询驳船")
  53. Map<String, Object> selectBargeOperation(@PathVariable("bargeOperationId") BigDecimal bargeOperationId) {
  54. return tmsshipFeign.selectBargeOperation(bargeOperationId);
  55. }
  56. @PostMapping("getBargeOperation/{bargeOperationId}")
  57. @ApiOperation(value = "查询驳船")
  58. Map<String, Object> getBargeOperation(@PathVariable("bargeOperationId") BigDecimal bargeOperationId) {
  59. return tmsshipFeign.getBargeOperation(bargeOperationId);
  60. }
  61. @PostMapping("deleteBargeOperation/{bargeOperationId}")
  62. @ApiOperation(value = "逻辑删除驳船")
  63. Map<String, Object> deleteBargeOperation(@PathVariable("bargeOperationId") BigDecimal bargeOperationId) {
  64. return tmsshipFeign.deleteBargeOperation(bargeOperationId);
  65. }
  66. @PostMapping("updateBargeOperation")
  67. @ApiOperation(value = "修改驳船")
  68. Map<String, Object> updateBargeOperation(@RequestBody Map<String, Object> tmsshipBargeOperation) {
  69. return tmsshipFeign.updateBargeOperation(tmsshipBargeOperation);
  70. }
  71. @PostMapping("addBargeOperation")
  72. @ApiOperation(value = "新增驳船")
  73. Map<String, Object> addBargeOperation(@RequestBody Map<String, Object> map) {
  74. return tmsshipFeign.addBargeOperation(map);
  75. }
  76. @PostMapping("addTmsShipEntryWharyResult")
  77. @ApiOperation(value = "新增抵港")
  78. Map<String, Object> addTmsShipEntryWharyResult(@RequestBody Map<String, Object> mapVal) {
  79. return tmsshipFeign.addTmsShipEntryWharyResult(mapVal);
  80. }
  81. @PostMapping("addTmsShipOutWharyResult")
  82. @ApiOperation(value = "新增离港")
  83. Map<String, Object> addTmsShipOutWharyResult(@RequestBody Map<String, Object> mapVal) {
  84. return tmsshipFeign.addTmsShipOutWharyResult(mapVal);
  85. }
  86. /**
  87. * 装船
  88. *
  89. * @param mapValue
  90. * @param pageNum
  91. * @param pageSize
  92. * @param apiId
  93. * @return
  94. */
  95. @PostMapping("getLoadShipList")
  96. @ApiOperation(value = "展示装船")
  97. public Map<String, Object> getLoadShipList(@RequestBody(required = false) Map<String, Object> mapValue,
  98. Integer pageNum,
  99. Integer pageSize,
  100. Integer apiId,
  101. String con) {
  102. if (mapValue == null) {
  103. mapValue = new HashMap<>();
  104. }
  105. return tmsshipFeign.getLoadShipList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  106. }
  107. @PostMapping("getLoadShip/{resultId}")
  108. @ApiOperation(value = "查询装船")
  109. Map<String, Object> getLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  110. return tmsshipFeign.getLoadShip(resultId);
  111. }
  112. @PostMapping("selectLoadShip/{resultId}")
  113. @ApiOperation(value = "通过id查询装船")
  114. Map<String, Object> selectLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  115. return tmsshipFeign.selectLoadShip(resultId);
  116. }
  117. @PostMapping("deleteLoadShip/{resultId}")
  118. @ApiOperation(value = "逻辑删除装船")
  119. Map<String, Object> deleteLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  120. return tmsshipFeign.deleteLoadShip(resultId);
  121. }
  122. @PostMapping("updateLoadShip")
  123. @ApiOperation(value = "修改装船")
  124. Map<String, Object> updateLoadShip(@RequestBody Map<String, Object> tmsshipLoadShipResult) {
  125. return tmsshipFeign.updateLoadShip(tmsshipLoadShipResult);
  126. }
  127. @PostMapping("addLoadShip")
  128. @ApiOperation(value = "新增装船")
  129. Map<String, Object> addLoadShip(@RequestBody Map<String, Object> map) {
  130. return tmsshipFeign.addLoadShip(map);
  131. }
  132. /**
  133. * 位置作业
  134. *
  135. * @param mapValue
  136. * @param pageNum
  137. * @param pageSize
  138. * @param apiId
  139. * @return
  140. */
  141. @PostMapping("getShipLocationList")
  142. @ApiOperation(value = "展示位置作业")
  143. public Map<String, Object> getShipLocationList(@RequestBody(required = false) Map<String, Object> mapValue,
  144. Integer pageNum,
  145. Integer pageSize,
  146. Integer apiId,
  147. String con) {
  148. if (mapValue == null) {
  149. mapValue = new HashMap<>();
  150. }
  151. return tmsshipFeign.getShipLocationList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  152. }
  153. @PostMapping("getShipLocation/{locationId}")
  154. @ApiOperation(value = "查询位置作业")
  155. Map<String, Object> getShipLocation(@PathVariable("locationId") BigDecimal locationId) {
  156. return tmsshipFeign.getShipLocation(locationId);
  157. }
  158. @PostMapping("selectShipLocation/{locationId}")
  159. @ApiOperation(value = "通过id查询位置作业")
  160. Map<String, Object> selectShipLocation(@PathVariable("locationId") BigDecimal locationId) {
  161. return tmsshipFeign.selectShipLocation(locationId);
  162. }
  163. @PostMapping("deleteShipLocation/{locationId}")
  164. @ApiOperation(value = "逻辑删除位置作业")
  165. Map<String, Object> deleteShipLocation(@PathVariable("locationId") BigDecimal locationId) {
  166. return tmsshipFeign.deleteShipLocation(locationId);
  167. }
  168. @PostMapping("updateShipLocation")
  169. @ApiOperation(value = "修改位置作业")
  170. Map<String, Object> updateShipLocation(@RequestBody Map<String, Object> tmsshipShipLocation) {
  171. return tmsshipFeign.updateShipLocation(tmsshipShipLocation);
  172. }
  173. @PostMapping("addShipLocation")
  174. @ApiOperation(value = "新增位置作业")
  175. Map<String, Object> addShipLocation(@RequestBody Map<String, Object> map) {
  176. return tmsshipFeign.addShipLocation(map);
  177. }
  178. /**
  179. * 水路货物运单
  180. *
  181. * @param mapValue
  182. * @param pageNum
  183. * @param pageSize
  184. * @param apiId
  185. * @return
  186. */
  187. @PostMapping("listAllOrders")
  188. @ApiOperation(value = "展示水路货物运单")
  189. public Map<String, Object> listAllOrders(@RequestBody(required = false) Map<String, Object> mapValue,
  190. Integer pageNum,
  191. Integer pageSize,
  192. Integer apiId,
  193. String con) {
  194. if (mapValue == null) {
  195. mapValue = new HashMap<>();
  196. }
  197. return tmsshipFeign.listAllOrders(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  198. }
  199. /**
  200. * 展示船只信息
  201. *
  202. * @param mapValue
  203. * @param pageNum
  204. * @param pageSize
  205. * @param apiId
  206. * @return
  207. */
  208. @PostMapping("getCapacityList")
  209. @ApiOperation(value = "展示船只信息")
  210. public Map<String, Object> getCapacityList(@RequestBody(required = false) Map<String, Object> mapValue,
  211. Integer pageNum,
  212. Integer pageSize,
  213. Integer apiId) {
  214. if (mapValue == null) {
  215. mapValue = new HashMap<>();
  216. }
  217. return tmsshipFeign.getCapacityList(mapValue, pageNum, pageSize, apiId);
  218. }
  219. /**
  220. * 卸船作业
  221. *
  222. * @param mapValue
  223. * @param pageNum
  224. * @param pageSize
  225. * @param apiId
  226. * @return
  227. */
  228. @PostMapping("getUnLoadShipList")
  229. @ApiOperation(value = "展示卸船作业信息列表")
  230. public Map<String, Object> getUnLoadShipList(@RequestBody(required = false) Map<String, Object> mapValue,
  231. Integer pageNum,
  232. Integer pageSize,
  233. Integer apiId,
  234. String con) {
  235. if (mapValue == null) {
  236. mapValue = new HashMap<>();
  237. }
  238. return tmsshipFeign.getUnLoadShipList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  239. }
  240. @PostMapping("getUnloadShip/{resultId}")
  241. @ApiOperation(value = "查询卸船作业")
  242. Map<String, Object> getUnloadShip(@PathVariable("resultId") BigDecimal resultId) {
  243. return tmsshipFeign.getUnloadShip(resultId);
  244. }
  245. @PostMapping("selectUnLoadShip/{resultId}")
  246. @ApiOperation(value = "通过id查询卸船作业")
  247. Map<String, Object> selectUnLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  248. return tmsshipFeign.selectUnLoadShip(resultId);
  249. }
  250. @PostMapping("deleteUnLoadShip/{resultId}")
  251. @ApiOperation(value = "逻辑删除卸船作业")
  252. Map<String, Object> deleteUnLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  253. return tmsshipFeign.deleteUnLoadShip(resultId);
  254. }
  255. @PostMapping("updateUnLoadShip")
  256. @ApiOperation(value = "修改卸船作业")
  257. Map<String, Object> updateUnLoadShip(@RequestBody Map<String, Object> tmsshipUnloadShipResult) {
  258. return tmsshipFeign.updateUnLoadShip(tmsshipUnloadShipResult);
  259. }
  260. @PostMapping("addUnLoadShip")
  261. @ApiOperation(value = "新增卸船作业")
  262. Map<String, Object> addUnLoadShip(@RequestBody Map<String, Object> map) {
  263. return tmsshipFeign.addUnLoadShip(map);
  264. }
  265. /**
  266. * 水分质检
  267. *
  268. * @param mapValue
  269. * @param pageNum
  270. * @param pageSize
  271. * @param apiId
  272. * @return
  273. */
  274. @PostMapping("getWaterQualityResultList")
  275. @ApiOperation(value = "展示水分质检信息列表")
  276. public Map<String, Object> getWaterQualityResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  277. Integer pageNum,
  278. Integer pageSize,
  279. Integer apiId,
  280. String con) {
  281. if (mapValue == null) {
  282. mapValue = new HashMap<>();
  283. }
  284. return tmsshipFeign.getWaterQualityResultList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  285. }
  286. @PostMapping("getWaterQuality/{resultId}")
  287. @ApiOperation(value = "查询水分质检")
  288. Map<String, Object> getWaterQuality(@PathVariable("resultId") BigDecimal resultId) {
  289. return tmsshipFeign.getWaterQuality(resultId);
  290. }
  291. @PostMapping("selectWaterQualityResult/{resultId}")
  292. @ApiOperation(value = "通过id查询水分质检")
  293. Map<String, Object> selectWaterQualityResult(@PathVariable("resultId") BigDecimal resultId) {
  294. return tmsshipFeign.selectWaterQualityResult(resultId);
  295. }
  296. @PostMapping("deleteWaterQualityResult/{resultId}")
  297. @ApiOperation(value = "逻辑删除水分质检")
  298. Map<String, Object> deleteWaterQualityResult(@PathVariable("resultId") BigDecimal resultId) {
  299. return tmsshipFeign.deleteWaterQualityResult(resultId);
  300. }
  301. @PostMapping("updateWaterQualityResult")
  302. @ApiOperation(value = "修改水分质检")
  303. Map<String, Object> updateWaterQualityResult(@RequestBody Map<String, Object> tmsshipWaterQualityResult) {
  304. return tmsshipFeign.updateWaterQualityResult(tmsshipWaterQualityResult);
  305. }
  306. @PostMapping("addWaterQualityResult")
  307. @ApiOperation(value = "新增水分质检")
  308. Map<String, Object> addWaterQualityResult(@RequestBody Map<String, Object> map) {
  309. return tmsshipFeign.addWaterQualityResult(map);
  310. }
  311. /**
  312. * 船只信息
  313. *
  314. * @param mapValue
  315. * @param pageNum
  316. * @param pageSize
  317. * @param apiId
  318. * @return
  319. */
  320. @PostMapping("getCapacities")
  321. @ApiOperation(value = "展示船只信息列表")
  322. public Map<String, Object> getCapacities(BigDecimal instructionsId,
  323. @RequestBody(required = false) Map<String, Object> mapValue,
  324. Integer pageNum,
  325. Integer pageSize,
  326. Integer apiId) {
  327. if (mapValue == null) {
  328. mapValue = new HashMap<>();
  329. }
  330. return tmsshipFeign.getCapacities(instructionsId, mapValue, pageNum, pageSize, apiId);
  331. }
  332. @PostMapping("getInstructionsCapacity/{instructionsCapacityId}")
  333. @ApiOperation(value = "查询船只信息")
  334. Map<String, Object> getInstructionsCapacity(@PathVariable("instructionsCapacityId") BigDecimal instructionsCapacityId) {
  335. return tmsshipFeign.getInstructionsCapacity(instructionsCapacityId);
  336. }
  337. @PostMapping("deleteInstructionsCapacity/{instructionsCapacityId}")
  338. @ApiOperation(value = "逻辑删除船只信息")
  339. Map<String, Object> deleteInstructionsCapacity(@PathVariable("instructionsCapacityId") BigDecimal instructionsCapacityId) {
  340. return tmsshipFeign.deleteInstructionsCapacity(instructionsCapacityId);
  341. }
  342. @PostMapping("updateInstructionsCapacity")
  343. @ApiOperation(value = "修改船只信息")
  344. Map<String, Object> updateInstructionsCapacity(@RequestBody Map<String, Object> omsshipInstructionsCapacity) {
  345. return tmsshipFeign.updateInstructionsCapacity(omsshipInstructionsCapacity);
  346. }
  347. @PostMapping("addInstructionsCapacity")
  348. @ApiOperation(value = "新增船只信息")
  349. Map<String, Object> addInstructionsCapacity(@RequestBody Map<String, Object> omsshipInstructionsCapacity) {
  350. return tmsshipFeign.addInstructionsCapacity(omsshipInstructionsCapacity);
  351. }
  352. /**
  353. * 装船指令
  354. *
  355. * @param mapValue
  356. * @param pageNum
  357. * @param pageSize
  358. * @param apiId
  359. * @return
  360. */
  361. @PostMapping("getShipMentInstructionsList")
  362. @ApiOperation(value = "展示装船指令列表")
  363. public Map<String, Object> getShipMentInstructionsList(@RequestBody(required = false) Map<String, Object> mapValue,
  364. Integer pageNum,
  365. Integer pageSize,
  366. Integer apiId,
  367. String con) {
  368. if (mapValue == null) {
  369. mapValue = new HashMap<>();
  370. }
  371. return tmsshipFeign.getShipMentInstructionsList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  372. }
  373. @PostMapping("getShipmentInstructions/{instructionsId}")
  374. @ApiOperation(value = "查询装船指令")
  375. Map<String, Object> getShipmentInstructions(@PathVariable("instructionsId") BigDecimal instructionsId) {
  376. return tmsshipFeign.getShipmentInstructions(instructionsId);
  377. }
  378. @PostMapping("deleteByPrimaryKey/{instructionsId}")
  379. @ApiOperation(value = "逻辑删除装船指令")
  380. Map<String, Object> deleteByPrimaryKey(@PathVariable("instructionsId") BigDecimal instructionsId) {
  381. return tmsshipFeign.deleteByPrimaryKey(instructionsId);
  382. }
  383. @PostMapping("updateIssueStatus/{shipmentInstructionsId}")
  384. @ApiOperation(value = "修改状态")
  385. Map<String, Object> updateIssueStatus(@PathVariable("shipmentInstructionsId") BigDecimal shipmentInstructionsId) {
  386. return tmsshipFeign.updateIssueStatus(shipmentInstructionsId);
  387. }
  388. @PostMapping("updateShipmentInstructions")
  389. @ApiOperation(value = "修改装船指令")
  390. Map<String, Object> updateShipmentInstructions(@RequestBody Map<String, Object> omsshipShipmentInstructions) {
  391. return tmsshipFeign.updateShipmentInstructions(omsshipShipmentInstructions);
  392. }
  393. @PostMapping("addShipmentInstructions")
  394. @ApiOperation(value = "新增装船指令")
  395. Map<String, Object> addShipmentInstructions(@RequestBody Map<String, Object> omsshipShipmentInstructions) {
  396. return tmsshipFeign.addShipmentInstructions(omsshipShipmentInstructions);
  397. }
  398. /**
  399. * 货权转移
  400. *
  401. * @param mapValue
  402. * @param pageNum
  403. * @param pageSize
  404. * @param apiId
  405. * @return
  406. */
  407. @PostMapping("getAmsshipCargoTranferResultList")
  408. @ApiOperation(value = "展示货权转移")
  409. public Map<String, Object> getAmsshipCargoTranferResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  410. Integer pageNum,
  411. Integer pageSize,
  412. Integer apiId,
  413. String con) {
  414. if (mapValue == null) {
  415. mapValue = new HashMap<>();
  416. }
  417. return tmsshipFeign.getAmsshipCargoTranferResultList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  418. }
  419. @PostMapping("getGroupList")
  420. @ApiOperation(value = "展示收货人列表")
  421. @ApiImplicitParams(
  422. @ApiImplicitParam(name="apiId",value="217")
  423. )
  424. public Map<String, Object> getGroupList(@RequestBody(required = false) Map<String, Object> mapValue,
  425. Integer pageNum,
  426. Integer pageSize,
  427. Integer apiId,
  428. String con) {
  429. if (mapValue == null) {
  430. mapValue = new HashMap<>();
  431. }
  432. return tmsshipFeign.getGroupList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  433. }
  434. @PostMapping("getMaterialList")
  435. @ApiOperation(value = "展示物资列表")
  436. @ApiImplicitParams(
  437. @ApiImplicitParam(name="apiId",value="216")
  438. )
  439. public Map<String, Object> getMaterialList(@RequestBody(required = false) Map<String, Object> mapValue,
  440. Integer pageNum,
  441. Integer pageSize,
  442. Integer apiId,
  443. String con) {
  444. if (mapValue == null) {
  445. mapValue = new HashMap<>();
  446. }
  447. return tmsshipFeign.getMaterialList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  448. }
  449. @PostMapping("selectShippeByName")
  450. @ApiOperation(value = "展示货权转移送达单位列表")
  451. @ApiImplicitParams(
  452. @ApiImplicitParam(name = "apiId",value = "215")
  453. )
  454. public Map<String, Object> selectShippeByName(@RequestBody(required = false) Map<String, Object> mapValue,
  455. Integer pageNum,
  456. Integer pageSize,
  457. Integer apiId,
  458. String con) {
  459. if (mapValue == null) {
  460. mapValue = new HashMap<>();
  461. }
  462. return tmsshipFeign.selectShippeByName(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con);
  463. }
  464. @PostMapping("insertamsshipCargoTransferResult")
  465. @ApiOperation(value = "新增货权转移")
  466. Map<String, Object> insertamsshipCargoTransferResult(@RequestBody Map<String, Object> amsshipCargoTransferResult) {
  467. return tmsshipFeign.insertamsshipCargoTransferResult(amsshipCargoTransferResult);
  468. }
  469. @PostMapping("deleteByCargoId/{cargoTransferResultId}")
  470. @ApiOperation(value = "逻辑删除货权转移")
  471. Map<String, Object> deleteByCargoId(@PathVariable("cargoTransferResultId") Integer cargoTransferResultId) {
  472. return tmsshipFeign.deleteByCargoId(cargoTransferResultId);
  473. }
  474. @PostMapping("editCargoTransferResult")
  475. @ApiOperation(value = "修改货权转移")
  476. Map<String, Object> editCargoTransferResult(@RequestBody Map<String, Object> amsshipCargoTransferResult) {
  477. return tmsshipFeign.editCargoTransferResult(amsshipCargoTransferResult);
  478. }
  479. @PostMapping("selectByCargoTranferResultId/{cargoTransferResultId}")
  480. @ApiOperation(value = "通过id查询货权转移")
  481. Map<String, Object> selectByCargoTranferResultId(@PathVariable("cargoTransferResultId") Integer cargoTransferResultId) {
  482. return tmsshipFeign.selectByCargoTranferResultId(cargoTransferResultId);
  483. }
  484. /**
  485. * 提货委托
  486. *
  487. * @param mapValue
  488. * @param pageNum
  489. * @param pageSize
  490. * @param apiId
  491. * @return
  492. */
  493. @PostMapping("getAmsshipDeliveryAttroneyList")
  494. @ApiOperation(value = "展示提货委托")
  495. public Map<String, Object> getAmsshipDeliveryAttroneyList(@RequestBody(required = false) Map<String, Object> mapValue,
  496. Integer pageNum,
  497. Integer pageSize,
  498. Integer apiId,
  499. String con,
  500. Integer status) {
  501. if (mapValue == null) {
  502. mapValue = new HashMap<>();
  503. }
  504. return tmsshipFeign.getAmsshipDeliveryAttroneyList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con,status);
  505. }
  506. @PostMapping("insertshipDeliveryAttorney")
  507. @ApiOperation(value = "新增提货委托")
  508. Map<String, Object> insertshipDeliveryAttorney(@RequestBody Map<String, Object> amsshipDeliveryAttorney) {
  509. return tmsshipFeign.insertshipDeliveryAttorney(amsshipDeliveryAttorney);
  510. }
  511. @PostMapping("deleteByAttorneyId/{attorneyId}")
  512. @ApiOperation(value = "逻辑删除提货委托")
  513. Map<String, Object> deleteByAttorneyId(@PathVariable("attorneyId") Integer attorneyId) {
  514. return tmsshipFeign.deleteByAttorneyId(attorneyId);
  515. }
  516. @PostMapping("editDeliveryAttroney")
  517. @ApiOperation(value = "修改提货委托")
  518. Map<String, Object> editDeliveryAttroney(@RequestBody Map<String, Object> amsshipDeliveryAttorney) {
  519. return tmsshipFeign.editDeliveryAttroney(amsshipDeliveryAttorney);
  520. }
  521. @PostMapping("getDeliveryAttorneyId/{attorneyId}")
  522. @ApiOperation(value = "通过id查询提货委托")
  523. Map<String, Object> getDeliveryAttorneyId(@PathVariable("attorneyId") Integer attorneyId) {
  524. return tmsshipFeign.getDeliveryAttorneyId(attorneyId);
  525. }
  526. @PostMapping("sendDeliveryAttorneyStatus/{attorneyId}")
  527. @ApiOperation(value = "下发提货委托")
  528. Map<String, Object> sendDeliveryAttorneyStatus(@PathVariable("attorneyId") Integer attorneyId) {
  529. return tmsshipFeign.sendDeliveryAttorneyStatus(attorneyId);
  530. }
  531. /**
  532. * 放货通知
  533. *
  534. * @param mapValue
  535. * @param pageNum
  536. * @param pageSize
  537. * @param apiId
  538. * @return
  539. */
  540. @PostMapping("getshipDeliveryNoticeList")
  541. @ApiOperation(value = "展示放货通知")
  542. public Map<String, Object> getshipDeliveryNoticeList(@RequestBody(required = false) Map<String, Object> mapValue,
  543. Integer pageNum,
  544. Integer pageSize,
  545. Integer apiId,
  546. String con,
  547. Integer status) {
  548. if (mapValue == null) {
  549. mapValue = new HashMap<>();
  550. }
  551. return tmsshipFeign.getshipDeliveryNoticeList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,con,status);
  552. }
  553. @PostMapping("insertDeliveryNotice")
  554. @ApiOperation(value = "新增放货通知")
  555. Map<String, Object> insertDeliveryNotice(@RequestBody Map<String, Object> amsshipDeliveryNotice) {
  556. return tmsshipFeign.insertDeliveryNotice(amsshipDeliveryNotice);
  557. }
  558. @PostMapping("deleteByNoticeId/{noticeId}")
  559. @ApiOperation(value = "逻辑删除放货通知")
  560. Map<String, Object> deleteByNoticeId(@PathVariable("noticeId") Integer noticeId) {
  561. return tmsshipFeign.deleteByNoticeId(noticeId);
  562. }
  563. @PostMapping("editDeliveryNotice")
  564. @ApiOperation(value = "修改放货通知")
  565. Map<String, Object> editDeliveryNotice(@RequestBody Map<String, Object> editDeliveryNotice) {
  566. return tmsshipFeign.editDeliveryNotice(editDeliveryNotice);
  567. }
  568. @PostMapping("selectByNoticeId/{noticeId}")
  569. @ApiOperation(value = "通过id查询放货通知")
  570. Map<String, Object> selectByNoticeId(@PathVariable("noticeId") Integer noticeId) {
  571. return tmsshipFeign.selectByNoticeId(noticeId);
  572. }
  573. @PostMapping("sendDeliveryNotice/{noticeId}")
  574. @ApiOperation(value = "下发放货通知")
  575. Map<String, Object> sendDeliveryNotice(@PathVariable("noticeId") Integer noticeId) {
  576. return tmsshipFeign.sendDeliveryNotice(noticeId);
  577. }
  578. /**
  579. * 下拉框
  580. *
  581. * @return
  582. */
  583. @GetMapping("getGroupId")
  584. @ApiOperation(value = "得到下拉")
  585. public Map<String, Object> getGroupId() {
  586. return tmsshipFeign.getGroupId();
  587. }
  588. @GetMapping("getMaterialId")
  589. @ApiOperation(value = "得到物资ID下拉")
  590. public Map<String, Object> getMaterialId(){
  591. return tmsshipFeign.getMaterialId();
  592. }
  593. @GetMapping("getCargoId")
  594. @ApiOperation(value = "得到货物下拉")
  595. public Map<String, Object> getCargoId() {
  596. return tmsshipFeign.getCargoId();
  597. }
  598. @GetMapping("insertBetchId")
  599. @ApiOperation(value = "得到批次下拉")
  600. public Map<String, Object> insertBetchId() {
  601. return tmsshipFeign.insertBetchId();
  602. }
  603. @GetMapping("getAttorneyId")
  604. @ApiOperation(value = "得到提货下拉")
  605. public Map<String, Object> getAttorneyId() {
  606. return tmsshipFeign.getAttorneyId();
  607. }
  608. @GetMapping("getNoticeId")
  609. @ApiOperation(value = "得到放货下拉")
  610. public Map<String, Object> getNoticeId() {
  611. return tmsshipFeign.getNoticeId();
  612. }
  613. @GetMapping("getPortName")
  614. @ApiOperation(value = "得到货权转移单位")
  615. public Map<String, Object> getPortName() {
  616. return tmsshipFeign.getPortName();
  617. }
  618. @GetMapping("getPortId")
  619. @ApiOperation(value = "得到港口下拉")
  620. public Map<String, Object> getPortId() {
  621. return tmsshipFeign.getPortId();
  622. }
  623. @GetMapping("getRmRawId")
  624. @ApiOperation(value = "得到仓库下拉")
  625. public Map<String, Object> getRmRawId() {
  626. return tmsshipFeign.getRmRawId();
  627. }
  628. @GetMapping("getPierId")
  629. @ApiOperation(value = "得到码头下拉")
  630. public Map<String, Object> getPierId() {
  631. return tmsshipFeign.getPierId();
  632. }
  633. @ApiOperation(value = "查询特定所有的物资")
  634. @GetMapping("/getFuMaterial/{type}")
  635. public Map<String, Object> getFuMaterial(@PathVariable("type") Integer type) {
  636. return tmsTruckFeign.getFuMaterial(type);
  637. }
  638. @GetMapping("getResultNumber")
  639. @ApiOperation(value = "得到实绩编号下拉")
  640. public Map<String, Object> getResultNumber() {
  641. return tmsshipFeign.getResultNumber();
  642. }
  643. @GetMapping("getCarrier")
  644. @ApiOperation(value = "得到承运商下拉")
  645. public Map<String, Object> getCarrier() {
  646. return tmsshipFeign.getCarrier();
  647. }
  648. @GetMapping("getShipperId")
  649. @ApiOperation(value = "得到托运方下拉")
  650. public Map<String, Object> getShipperId() {
  651. return tmsshipFeign.getShipper();
  652. }
  653. @GetMapping("getOrderId")
  654. @ApiOperation(value = "得到装船指令下拉")
  655. public Map<String, Object> getTask() {
  656. return tmsshipFeign.getTask();
  657. }
  658. @GetMapping("getCapacityId")
  659. @ApiOperation(value = "得到船下拉")
  660. public Map<String, Object> getCapacityId() {
  661. return tmsshipFeign.getCapacityId();
  662. }
  663. /*======================================火运==========================================*/
  664. //************************************TmstrainLoadingResultController********************
  665. @ApiOperation(value = "查询装车作业信息")
  666. @ApiImplicitParams({
  667. @ApiImplicitParam(name = "apiId(58)", value = "表头", required = false, dataType = "Interger")
  668. })
  669. @PostMapping("/getTmstrainWagonLoad")
  670. public Map<String, Object> getTmstrainWagonLoad(@RequestBody(required = false) Map<String, Object> mapValue,
  671. Integer apiId,
  672. Integer pageNum,
  673. Integer pageSize,
  674. Integer resultType,
  675. String con) {
  676. return tmsTrainFeign.getTmstrainWagonLoad(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, resultType, con);
  677. }
  678. @ApiOperation(value = "新增车皮装车作业实绩")
  679. @ApiImplicitParams({
  680. @ApiImplicitParam(name = "tmstrainLoadingResult", value = "车皮装车对象", required = false, dataType = "TmstrainLoadingResult")
  681. })
  682. @PostMapping(value = "/insertTmstrainLoadingResult")
  683. public Map<String, Object> insertTmstrainLoadingResult(@RequestBody(required = false) Map<String, Object> map) {
  684. return tmsTrainFeign.insertTmstrainLoadingResult(map);
  685. }
  686. @ApiOperation(value = "通过主键查询车皮装车作业信息")
  687. @ApiImplicitParams({
  688. @ApiImplicitParam(name = "resultId", value = "车皮装车主键", required = false, dataType = "BigDecimal")
  689. })
  690. @PostMapping(value = "/getTmstrainLoadingResultByResultId/{resultId}")
  691. public Map<String, Object> getTmstrainLoadingResultByResultId(@PathVariable("resultId") BigDecimal resultId) {
  692. return tmsTrainFeign.getTmstrainLoadingResultByResultId(resultId);
  693. }
  694. @ApiOperation(value = "通过主键修改车皮装车作业实绩")
  695. @ApiImplicitParams({
  696. @ApiImplicitParam(name = "tmstrainLoadingResult", value = "修改车皮装车map", required = false, dataType = "TmstrainWagonLoadResult")
  697. })
  698. @PostMapping(value = "/upadteTmstrainLoadingResultByResultId")
  699. public Map<String, Object> upadteTmstrainLoadingResultByResultId(@RequestBody(required = false) Map<String, Object> map) {
  700. return tmsTrainFeign.upadteTmstrainLoadingResultByResultId(map);
  701. }
  702. @ApiOperation(value = "通过主键删除车皮装车作业实绩")
  703. @ApiImplicitParams({
  704. @ApiImplicitParam(name = "resultId", value = "主键ID", required = false, dataType = "BigDecimal")
  705. })
  706. @PostMapping(value = "/deleteTmstrainLoadingResultByResultId")
  707. public Map<String, Object> deleteTmstrainLoadingResultByResultId(@RequestParam BigDecimal resultId) {
  708. return tmsTrainFeign.deleteTmstrainLoadingResultByResultId(resultId);
  709. }
  710. //********************下拉框**********************
  711. @ApiOperation(value = "获取发站地点名称")
  712. @ApiImplicitParams({
  713. })
  714. @GetMapping(value = "/getSendStationName")
  715. public Map<String, Object> getSendStationName() {
  716. return tmsTrainFeign.getSendStationName();
  717. }
  718. @ApiOperation(value = "获取到站地点名称")
  719. @GetMapping(value = "/getArrivalStationName")
  720. public Map<String, Object> getArrivalStationName() {
  721. return tmsTrainFeign.getArrivalStationName();
  722. }
  723. @ApiOperation(value = "获取批次ID")
  724. @GetMapping(value = "/getBatchId")
  725. public Map<String, Object> getBatchId() {
  726. return tmsTrainFeign.getBatchId();
  727. }
  728. @ApiOperation(value = "获取已装车还未卸车车皮")
  729. @PostMapping(value = "/getWagonNo/{resultType}")
  730. public Map<String, Object> getWagonNo(@PathVariable("resultType") Integer resultType,
  731. @RequestBody(required = false) Map<String, Object> mapValue,
  732. Integer apiId,
  733. Integer pageNum,
  734. Integer pageSize){
  735. return tmsTrainFeign.getWagonNo(resultType, mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize);
  736. }
  737. @ApiOperation(value = "查询所有发运计划")
  738. @GetMapping(value = "/getRailPlan")
  739. public Map<String, Object> getRailPlan() {
  740. return tmsTrainFeign.getRailPlan();
  741. }
  742. @GetMapping(value = "/getDilBatch")
  743. public Map<String, Object> getDilBatch() {
  744. return tmsTruckFeign.getDilBatch();
  745. }
  746. @GetMapping(value = "/getCarrierId")
  747. public Map<String, Object> getCarrierId() {
  748. return tmsTruckFeign.getCarrier();
  749. }
  750. @GetMapping(value = "/getLine")
  751. public Map<String, Object> getLine() {
  752. return tmsTruckFeign.getLine();
  753. }
  754. @GetMapping(value = "/getWarehouse")
  755. public Map<String, Object> getWarehouse() {
  756. return tmsTruckFeign.getWarehouse();
  757. }
  758. @GetMapping(value = "/getGatepost")
  759. public Map<String, Object> getGatepost() {
  760. return tmsTruckFeign.getGatepost();
  761. }
  762. @GetMapping(value = "/getAPO")
  763. public Map<String, Object> getAPO() {
  764. return tmsTruckFeign.getAPO();
  765. }
  766. @GetMapping(value = "/getFuCapacityId")
  767. public Map<String, Object> getFuCapacityId() {
  768. return tmsTruckFeign.getFuCapacityId();
  769. }
  770. @GetMapping(value = "/getPort")
  771. public Map<String, Object> getPort() {
  772. return tmsTruckFeign.getPort();
  773. }
  774. @ApiOperation(value = "查询卸货点")
  775. @GetMapping("/getUnloadPoint/{type}")
  776. public Map<String, Object> getUnloadPoint(@PathVariable("type") Integer type) {
  777. return tmsTruckFeign.getUnloadPoint(type);
  778. }
  779. @ApiOperation(value = "查询卸车作业信息")
  780. @ApiImplicitParams({
  781. @ApiImplicitParam(name = "apiId(60)", value = "表头", required = false, dataType = "Interger")
  782. })
  783. @PostMapping("/getTmstrainWagonUnLoad")
  784. public Map<String, Object> getTmstrainWagonUnLoad(@RequestBody(required = false) Map<String, Object> mapValue,
  785. Integer apiId,
  786. Integer pageNum,
  787. Integer pageSize,
  788. Integer resultType,
  789. String con) {
  790. return tmsTrainFeign.getTmstrainWagonUnLoad(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, resultType,con);
  791. }
  792. @ApiOperation(value = "通过主键删除车皮卸车作业实绩")
  793. @ApiImplicitParams({
  794. @ApiImplicitParam(name = "unloadingId", value = "主键ID", required = false, dataType = "BigDecimal")
  795. })
  796. @PostMapping(value = "/deleteTmstrainWagonUnLoadResultByUnLoadingId")
  797. public Map<String, Object> deleteTmstrainWagonUnLoadResultByUnLoadingId(@RequestParam BigDecimal unloadingId) {
  798. return tmsTrainFeign.deleteTmstrainWagonUnLoadResultByUnLoadingId(unloadingId);
  799. }
  800. @ApiOperation(value = "新增车皮卸车作业实绩")
  801. @ApiImplicitParams({
  802. @ApiImplicitParam(name = "tmstrainWagonUnloadResult", value = "车皮卸车对象", required = false, dataType = "TmstrainWagonUnloadResult")
  803. })
  804. @PostMapping(value = "/insertTmstrainWagonUnLoadResult")
  805. public Map<String, Object> insertTmstrainWagonUnLoadResult(@RequestBody(required = false) Map<String, Object> tmstrainWagonUnloadResult) {
  806. return tmsTrainFeign.insertTmstrainWagonUnLoadResult(tmstrainWagonUnloadResult);
  807. }
  808. @ApiOperation(value = "通过主键修改车皮卸车作业实绩")
  809. @ApiImplicitParams({
  810. @ApiImplicitParam(name = "tmstrainWagonUnloadResult", value = "车皮卸车对象", required = false, dataType = "TmstrainWagonUnloadResult")
  811. })
  812. @PostMapping(value = "/upadteTmstrainWagonUnLoadResultByUnLoadingId")
  813. public Map<String, Object> upadteTmstrainWagonUnLoadResultByUnLoadingId(@RequestBody(required = false) Map<String, Object> tmstrainWagonUnloadResult) {
  814. return tmsTrainFeign.upadteTmstrainWagonUnLoadResultByUnLoadingId(tmstrainWagonUnloadResult);
  815. }
  816. @ApiOperation(value = "查看火运实绩")
  817. @ApiImplicitParams({
  818. @ApiImplicitParam(name = "apiId(65)", value = "表头", required = false, dataType = "Interger")
  819. })
  820. @PostMapping("/getTmstrainresult")
  821. public Map<String, Object> getTmstrainresult(@RequestBody(required = false) Map<String, Object> mapValue,
  822. Integer apiId,
  823. Integer pageNum,
  824. Integer pageSize,
  825. String con) {
  826. return tmsTrainFeign.getTmstrainresult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
  827. }
  828. @ApiOperation(value = "通过主键查询车皮卸车作业信息")
  829. @ApiImplicitParams({
  830. @ApiImplicitParam(name = "unloadingId", value = "车皮卸车主键", required = false, dataType = "BigDecimal")
  831. })
  832. @PostMapping(value = "/getTmstrainWagonUnLoadResultByUnLoadingId/{unloadingId}")
  833. public Map<String, Object> getTmstrainWagonUnLoadResultByUnLoadingId(@PathVariable("unloadingId") BigDecimal unloadingId) {
  834. return tmsTrainFeign.getTmstrainWagonUnLoadResultByUnLoadingId(unloadingId);
  835. }
  836. //下拉框
  837. @ApiOperation(value = "获取卸车地点名称")
  838. @ApiImplicitParams({
  839. })
  840. @GetMapping(value = "/getUnloadingPointName")
  841. public Map<String, Object> getUnloadingPointName() {
  842. return tmsTrainFeign.getUnloadingPointName();
  843. }
  844. @ApiOperation(value = "获取卸车路径名称")
  845. @ApiImplicitParams({
  846. })
  847. @GetMapping(value = "/getUnloadingRouteName")
  848. public Map<String, Object> getUnloadingRouteName() {
  849. return tmsTrainFeign.getUnloadingRouteName();
  850. }
  851. @ApiOperation(value = "查询请车作业")
  852. @ApiImplicitParams({
  853. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  854. @ApiImplicitParam(name = "apiId(57)", value = "动态表头", required = false, dataType = "Integer"),
  855. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  856. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  857. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  858. })
  859. @PostMapping("/getAllWagonPlease")
  860. public Map<String, Object> getAllWagonPlease(@RequestBody(required = false) Map<String, Object> mapValue,
  861. Integer apiId,
  862. Integer pageNum,
  863. Integer pageSize,
  864. Integer status,
  865. Integer resultType,
  866. String con) {
  867. return tmsTrainFeign.getAllWagonPlease(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, status, resultType,con);
  868. }
  869. @ApiOperation(value = "通过Id查询请车作业")
  870. @PostMapping("/getWagonPleaseById/{resultId}")
  871. public Map<String, Object> getWagonPleaseById(@PathVariable("resultId") Integer resultId) {
  872. return tmsTrainFeign.getWagonPleaseById(resultId);
  873. }
  874. @ApiOperation(value = "新增请车作业")
  875. @ApiImplicitParams({
  876. @ApiImplicitParam(name = "amstrainWagonPlease", value = "请车作业对象", required = false, dataType = "AmstrainWagonPlease"),
  877. })
  878. @PostMapping("/addWagonPlease")
  879. public Map<String, Object> addWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult) {
  880. return tmsTrainFeign.addWagonPlease(tmstrainPleaseApproveResult);
  881. }
  882. @ApiOperation(value = "修改请车作业")
  883. @ApiImplicitParams({
  884. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  885. })
  886. @PostMapping("/updateWagonPlease")
  887. public Map<String, Object> updateWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult) {
  888. return tmsTrainFeign.updateWagonPlease(tmstrainPleaseApproveResult);
  889. }
  890. @ApiOperation(value = "逻辑删除请车作业 设置状态码为 3")
  891. @ApiImplicitParams({
  892. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  893. })
  894. @PostMapping("/deleteWagonPlease/{resultId}")
  895. public Map<String, Object> deleteWagonPlease(@PathVariable("resultId") Integer resultId) {
  896. return tmsTrainFeign.deleteWagonPlease(resultId);
  897. }
  898. @ApiOperation(value = "下发请车作业 设置状态码为 1")
  899. @ApiImplicitParams({
  900. @ApiImplicitParam(name = "resultId", value = "请车作业实绩对象", required = false, dataType = "Integer"),
  901. })
  902. @PostMapping("/sendWagonPlease/{resultId}")
  903. public Map<String, Object> sendWagonPlease(@PathVariable("resultId") Integer resultId) {
  904. return tmsTrainFeign.sendWagonPlease(resultId);
  905. }
  906. //下拉框
  907. @ApiOperation(value = "查询所有发货单位")
  908. @GetMapping("/getShipper")
  909. public Map<String, Object> getShipper() {
  910. return tmsTrainFeign.getShipper();
  911. }
  912. @ApiOperation(value = "查询批车作业")
  913. @ApiImplicitParams({
  914. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  915. @ApiImplicitParam(name = "apiId(70)", value = "动态表头", required = false, dataType = "Integer"),
  916. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  917. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  918. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  919. })
  920. @PostMapping("/getApproveAllWagonPlease")
  921. public Map<String, Object> getApproveAllWagonPlease(@RequestBody(required = false) Map<String, Object> mapValue,
  922. Integer apiId,
  923. Integer pageNum,
  924. Integer pageSize,
  925. Integer resultType,
  926. String con) {
  927. return tmsTrainFeign.getApproveAllWagonPlease(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, resultType,con);
  928. }
  929. @ApiOperation(value = "通过Id查询批车作业")
  930. @PostMapping("/getApproveWagonPleaseById/{resultId}")
  931. public Map<String, Object> getApproveWagonPleaseById(@PathVariable("resultId") Integer resultId) {
  932. return tmsTrainFeign.getApproveWagonPleaseById(resultId);
  933. }
  934. @ApiOperation(value = "新增批车作业")
  935. @ApiImplicitParams({
  936. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  937. })
  938. @PostMapping("/addApproveWagonPlease")
  939. public Map<String, Object> addApproveWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult) {
  940. return tmsTrainFeign.addApproveWagonPlease(tmstrainPleaseApproveResult);
  941. }
  942. @ApiOperation(value = "修改批车作业")
  943. @ApiImplicitParams({
  944. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  945. })
  946. @PostMapping("/updateApproveWagonPlease")
  947. public Map<String, Object> updateApproveWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult) {
  948. return tmsTrainFeign.updateApproveWagonPlease(tmstrainPleaseApproveResult);
  949. }
  950. @ApiOperation(value = "逻辑删除批车作业")
  951. @ApiImplicitParams({
  952. @ApiImplicitParam(name = "resultId", value = "请车作业实绩对象", required = false, dataType = "Integer"),
  953. })
  954. @PostMapping("/deleteApproveWagonPlease/{resultId}")
  955. public Map<String, Object> deleteApproveWagonPlease(@PathVariable("resultId") Integer resultId) {
  956. return tmsTrainFeign.deleteApproveWagonPlease(resultId);
  957. }
  958. /*======================================汽运==========================================*/
  959. //******************************************TmstruckLoadResultController***********************************
  960. @ApiOperation(value = "查询所有装车实绩")
  961. @ApiImplicitParams({
  962. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  963. @ApiImplicitParam(name = "apiId(91)", value = "动态表头", required = false, dataType = "Integer"),
  964. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  965. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  966. })
  967. @PostMapping("/getAllLoadResult")
  968. public Map<String, Object> getAllLoadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  969. Integer apiId,
  970. Integer pageNum,
  971. Integer pageSize,
  972. Integer status,
  973. Integer orderType, String con){
  974. return tmsTruckFeign.getAllLoadResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, status, orderType, con);
  975. }
  976. @ApiOperation(value = "新增采购汽车装车实绩")
  977. @ApiImplicitParams({
  978. @ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
  979. })
  980. @PostMapping("/addCGLoadResult")
  981. public Map<String, Object> addCGLoadResult(@RequestBody(required = false) Map<String, Object> mapValue) {
  982. return tmsTruckFeign.addCGLoadResult(mapValue);
  983. }
  984. @ApiOperation(value="销售新增钢材装车实绩 ")
  985. @ApiImplicitParams({
  986. @ApiImplicitParam(name = "map", value = "", required = false, dataType = "Map"),
  987. })
  988. @PostMapping("addSaleLoadResult")
  989. public Map<String, Object> addSaleLoadResult(@RequestBody(required=false) Map<String, Object> map){
  990. return tmsTruckFeign.addSaleLoadResult(map);
  991. }
  992. @ApiOperation(value="销售新增钢渣、水渣、危化品装车实绩 ")
  993. @ApiImplicitParams({
  994. @ApiImplicitParam(name = "map", value = "", required = false, dataType = "Map"),
  995. })
  996. @PostMapping("/addSale2LoadResult")
  997. public Map<String, Object> addSale2LoadResult(@RequestBody(required=false) Map<String, Object> map){
  998. return tmsTruckFeign.addSale2LoadResult(map);
  999. }
  1000. @ApiOperation(value = "修改汽车装车实绩")
  1001. @ApiImplicitParams({
  1002. @ApiImplicitParam(name = "tmstruckLoadResult", value = "装车作业实绩对象", required = false, dataType = "TmstruckLoadResult"),
  1003. })
  1004. @PostMapping("/updateLoadResult")
  1005. public Map<String, Object> updateLoadResult(@RequestBody Map<String, Object> map) {
  1006. return tmsTruckFeign.updateLoadResult(map);
  1007. }
  1008. @ApiOperation(value = "通过ID查询装车实绩 ")
  1009. @ApiImplicitParams({
  1010. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1011. })
  1012. @PostMapping("/getLoadResultById/{resultId}")
  1013. public Map<String, Object> getLoadResultById(@PathVariable("resultId") Integer resultId) {
  1014. return tmsTruckFeign.getLoadResultById(resultId);
  1015. }
  1016. @ApiOperation(value = "逻辑删除车装车实绩")
  1017. @ApiImplicitParams({
  1018. @ApiImplicitParam(name = "tmstruckLoadResult", value = "装车作业实绩对象", required = false, dataType = "TmstruckLoadResult"),
  1019. })
  1020. @PostMapping("/deleteLoadResult/{resultId}")
  1021. public Map<String, Object> deleteLoadResult(@PathVariable("resultId") Integer resultId) {
  1022. return tmsTruckFeign.deleteLoadResult(resultId);
  1023. }
  1024. //***************************************TmstruckEnfactoryResultController***************************
  1025. @ApiOperation(value = "查询所有的进厂实绩")
  1026. @ApiImplicitParams({
  1027. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1028. @ApiImplicitParam(name = "apiId(99)", value = "动态表头", required = false, dataType = "Integer"),
  1029. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1030. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1031. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1032. })
  1033. @PostMapping("/getAllEnFactoryResult")
  1034. public Map<String, Object> getAllEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1035. Integer apiId,
  1036. Integer pageNum,
  1037. Integer pageSize,
  1038. Integer orderType,
  1039. String con
  1040. ){
  1041. return tmsTruckFeign.getAllEnFactoryResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con);
  1042. }
  1043. @ApiOperation(value = "通过采集系统传来的数据新增进厂作业实绩")
  1044. @ApiImplicitParams({
  1045. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  1046. })
  1047. @PostMapping("/addEnFactoryResult")
  1048. public Map<String, Object> addEnFactoryResult(@RequestBody(required = false) Map<String, Object> mapValue) {
  1049. return tmsTruckFeign.addEnFactoryResult(mapValue);
  1050. }
  1051. @ApiOperation(value = "PDA扫描更新进厂作业实绩")
  1052. @ApiImplicitParams({
  1053. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  1054. })
  1055. @PostMapping("/enFactoryResultByPDA")
  1056. public Map<String, Object> enFactoryResultByPDA(@RequestBody(required = false) Map<String, Object> mapValue) {
  1057. return tmsTruckFeign.enFactoryResultByPDA(mapValue);
  1058. }
  1059. //***************************************TmstruckWeightResultController***************************
  1060. @ApiOperation(value = "查询计毛实绩")
  1061. @ApiImplicitParams({
  1062. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1063. @ApiImplicitParam(name = "apiId(102)", value = "动态表头", required = false, dataType = "Integer"),
  1064. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1065. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1066. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1067. })
  1068. @PostMapping("/getAllJiMaoResult")
  1069. public Map<String, Object> getAllJiMaoResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1070. Integer apiId,
  1071. Integer pageNum,
  1072. Integer pageSize,
  1073. Integer orderType,String con){
  1074. return tmsTruckFeign.getAllJiMaoResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con);
  1075. }
  1076. @ApiOperation(value = "查询计皮实绩")
  1077. @ApiImplicitParams({
  1078. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1079. @ApiImplicitParam(name = "apiId(104)", value = "动态表头", required = false, dataType = "Integer"),
  1080. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1081. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1082. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1083. })
  1084. @PostMapping("/getAllJiPiResult")
  1085. public Map<String, Object> getAllJiPiResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1086. Integer apiId,
  1087. Integer pageNum,
  1088. Integer pageSize,
  1089. Integer orderType,
  1090. String con) {
  1091. return tmsTruckFeign.getAllJiPiResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con);
  1092. }
  1093. @ApiOperation(value = "采集新增计毛实绩 ")
  1094. @ApiImplicitParams({
  1095. @ApiImplicitParam(name = "mapValue", value = "采集的数据", required = false, dataType = "Map"),
  1096. })
  1097. @PostMapping("/addJiMaoResult")
  1098. public Map<String, Object> addJiMaoResult(@RequestBody Map<String, Object> mapValue) {
  1099. return tmsTruckFeign.addJiMaoResult(mapValue);
  1100. }
  1101. @ApiOperation(value = "采集新增计皮实绩 ")
  1102. @ApiImplicitParams({
  1103. @ApiImplicitParam(name = "mapValue", value = "采集的数据", required = false, dataType = "Map"),
  1104. })
  1105. @PostMapping("/addJiPiResult")
  1106. public Map<String, Object> addJiPiResult(@RequestBody Map<String, Object> mapValue) {
  1107. return tmsTruckFeign.addJiPiResult(mapValue);
  1108. }
  1109. //****************************************TmstruckUnloadResultController*******************************
  1110. @ApiOperation(value = "查询卸货实绩")
  1111. @ApiImplicitParams({
  1112. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1113. @ApiImplicitParam(name = "apiId(103)", value = "动态表头", required = false, dataType = "Integer"),
  1114. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1115. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1116. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1117. })
  1118. @PostMapping("/getUnloadResult")
  1119. public Map<String, Object> getUnloadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1120. Integer apiId,
  1121. Integer pageNum,
  1122. Integer pageSize,
  1123. Integer orderType,
  1124. String con
  1125. ){
  1126. return tmsTruckFeign.getUnloadResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con);
  1127. }
  1128. @ApiOperation(value = "添加卸货实绩")
  1129. @ApiImplicitParams({
  1130. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1131. })
  1132. @PostMapping("/addUnloadResult")
  1133. public Map<String, Object> addUnloadResult(@RequestBody Map<String, Object> mapValue) {
  1134. return tmsTruckFeign.addUnloadResult(mapValue);
  1135. }
  1136. @ApiOperation(value = "更新卸货实绩 ")
  1137. @ApiImplicitParams({
  1138. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1139. })
  1140. @PostMapping("/updateUnloadResult")
  1141. public Map<String, Object> updateUnloadResult(@RequestBody Map<String, Object> mapValue) {
  1142. return tmsTruckFeign.updateUnloadResult(mapValue);
  1143. }
  1144. //****************************************TmstruckReceiptResultController*******************************
  1145. @ApiOperation(value = "查询收货实绩")
  1146. @ApiImplicitParams({
  1147. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1148. @ApiImplicitParam(name = "apiId(107)", value = "动态表头", required = false, dataType = "Integer"),
  1149. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1150. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1151. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1152. })
  1153. @PostMapping("/getReceiveResult")
  1154. public Map<String, Object> getReceiveResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1155. Integer apiId,
  1156. Integer pageNum,
  1157. Integer pageSize,
  1158. Integer orderType,String con
  1159. ){
  1160. return tmsTruckFeign.getReceiveResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con);
  1161. }
  1162. //****************************************TmstruckLeaveFactoryResultController*******************************
  1163. @ApiOperation(value="查询出厂实绩")
  1164. @ApiImplicitParams({
  1165. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1166. @ApiImplicitParam(name = "apiId(110)", value = "动态表头", required = false, dataType = "Integer"),
  1167. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1168. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1169. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1170. })
  1171. @PostMapping("/getLeaveFactoryResult")
  1172. public Map<String, Object> getLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1173. Integer apiId,
  1174. Integer pageNum,
  1175. Integer pageSize,
  1176. Integer orderType,String con
  1177. ){
  1178. return tmsTruckFeign.getLeaveFactoryResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con);
  1179. }
  1180. @ApiOperation(value="PAD扫描汽车出厂实绩")
  1181. @ApiImplicitParams({
  1182. @ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
  1183. })
  1184. @PostMapping("/addLeaveFactoryResult")
  1185. public Map<String, Object> addLeaveFactoryResult(@RequestBody(required = false) Map<String, Object> mapValue) {
  1186. return tmsTruckFeign.addLeaveFactoryResult(mapValue);
  1187. }
  1188. //****************************************TmstruckMeasureCommissionController*******************************
  1189. @ApiOperation(value = "查询计量委托 ")
  1190. @ApiImplicitParams({
  1191. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1192. })
  1193. @PostMapping("/getAllMeasureCommission/{type}")
  1194. public Map<String, Object> getAllMeasureCommission(@PathVariable("type") Integer type) {
  1195. return tmsTruckFeign.getAllMeasureCommission(type);
  1196. }
  1197. //****************************************TmstruckQualityResultController*******************************
  1198. @ApiOperation(value = "查询所有的质检作业")
  1199. @ApiImplicitParams({
  1200. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1201. @ApiImplicitParam(name = "apiId(111)", value = "动态表头", required = false, dataType = "Integer"),
  1202. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1203. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1204. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1205. })
  1206. @PostMapping("/getQualityResult")
  1207. public Map<String, Object> getQualityResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1208. Integer apiId,
  1209. Integer pageNum,
  1210. Integer pageSize,String con
  1211. ){
  1212. return tmsTruckFeign.getQualityResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
  1213. }
  1214. @ApiOperation(value = "通过ID获取质检实绩 ")
  1215. @ApiImplicitParams({
  1216. @ApiImplicitParam(name = "resultId", value = "质检作业实绩ID", required = false, dataType = "Integer"),
  1217. })
  1218. @PostMapping("/getQualityResultById/{resultId}")
  1219. public Map<String, Object> getQualityResultById(@PathVariable("resultId") Integer resultId) {
  1220. return tmsTruckFeign.getQualityResultById(resultId);
  1221. }
  1222. @ApiOperation(value = "修改质检实绩 ")
  1223. @ApiImplicitParams({
  1224. @ApiImplicitParam(name = "resultId", value = "质检作业实绩ID", required = false, dataType = "Integer"),
  1225. })
  1226. @PostMapping("/updateQualityResult")
  1227. public Map<String, Object> updateQualityResult(@RequestBody(required = false) Map<String, Object> mapValue) {
  1228. return tmsTruckFeign.updateQualityResult(mapValue);
  1229. }
  1230. //*********************************内转物流tms-train*********************************************************************
  1231. @PostMapping("/addTrainLoadResultForConverted")
  1232. @ApiOperation(value = "内转物流新增装车")
  1233. public Map<String, Object> addTrainLoadResultForConverted(Map<String, Object> tmstrainLoadingResult) {
  1234. Map<String, Object> mes = tmsTrainFeign.addTrainLoadResultForConverted(tmstrainLoadingResult);
  1235. return mes;
  1236. }
  1237. @PostMapping("/selectLoadByResultId/{resultId}")
  1238. @ApiOperation(value = "内转物流通过主键查询车皮装车作业信息")
  1239. public Map<String, Object> selectLoadByResultId(@PathVariable("resultId") BigDecimal resultId) {
  1240. Map<String, Object> mes = tmsTrainFeign.selectLoadByResultId(resultId);
  1241. return mes;
  1242. }
  1243. @ApiOperation(value = "内转查询装车作业信息")
  1244. @ApiImplicitParams({
  1245. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1246. @ApiImplicitParam(name = "apiId(203)", value = "动态表头", required = false, dataType = "Integer"),
  1247. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1248. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1249. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1250. })
  1251. @PostMapping("/getTmstrainWagonLoadForConverted")
  1252. public Map<String, Object> getTmstrainWagonLoadForConverted(@RequestBody(required = false)
  1253. Integer apiId,
  1254. Integer pageNum,
  1255. Integer pageSize,
  1256. String con
  1257. ) {
  1258. return tmsTrainFeign.getTmstrainWagonLoadForConverted(apiId, pageNum, pageSize,con);
  1259. }
  1260. @PostMapping("/addWagonApprove")
  1261. @ApiOperation(value = "内转物流新增装车")
  1262. public Map<String, Object> addWagonApprove(Map<String, Object> tmstrainLoadingResult) {
  1263. Map<String, Object> mes = tmsTrainFeign.addWagonApprove(tmstrainLoadingResult);
  1264. return mes;
  1265. }
  1266. @ApiOperation(value = "内转查询请车作业信息")
  1267. @ApiImplicitParams({
  1268. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1269. @ApiImplicitParam(name = "apiId(199)", value = "动态表头", required = false, dataType = "Integer"),
  1270. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1271. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1272. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1273. })
  1274. @PostMapping("/getAllWagonPleaseForConverted")
  1275. public Map<String, Object> getAllWagonPleaseForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1276. Integer apiId,
  1277. Integer pageNum,
  1278. Integer pageSize,
  1279. Integer status,
  1280. String con
  1281. ) {
  1282. if (mapValue == null) {
  1283. mapValue = new HashMap<>();
  1284. }
  1285. mapValue.put("status", status);
  1286. return tmsTrainFeign.getTmstrainWagonLoadForConverted(apiId, pageNum, pageSize,con);
  1287. }
  1288. @PostMapping("/getPleasePlanByResultId/{resultId}")
  1289. @ApiOperation(value = "内转物流通过主键查请车计划")
  1290. public Map<String, Object> getPleasePlanByResultId(@PathVariable("resultId") BigDecimal resultId) {
  1291. Map<String, Object> mes = tmsTrainFeign.getPleasePlanByResultId(resultId);
  1292. return mes;
  1293. }
  1294. @PostMapping("/getApproveByResultId/{resultId}")
  1295. @ApiOperation(value = "内转物流通过主键查询车皮请车作业信息")
  1296. public Map<String, Object> getApproveByResultId(@PathVariable("resultId") BigDecimal resultId) {
  1297. Map<String, Object> mes = tmsTrainFeign.getApproveByResultId(resultId);
  1298. return mes;
  1299. }
  1300. @ApiOperation(value = "查询卸车作业信息")
  1301. @ApiImplicitParams({
  1302. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1303. @ApiImplicitParam(name = "apiId(201)", value = "动态表头", required = false, dataType = "Integer"),
  1304. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1305. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1306. })
  1307. @PostMapping("/selectWagonUnLoadResultForConverted")
  1308. public Map<String, Object> selectWagonUnLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1309. Integer apiId,
  1310. Integer pageNum,
  1311. Integer pageSize,
  1312. String con
  1313. ) {
  1314. return tmsTrainFeign.selectWagonUnLoadResultForConverted(apiId, pageNum, pageSize,con);
  1315. }
  1316. @ApiOperation(value = "内转查询火车卸货信息")
  1317. @ApiImplicitParams({
  1318. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1319. @ApiImplicitParam(name = "apiId(202)", value = "动态表头", required = false, dataType = "Integer"),
  1320. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1321. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1322. })
  1323. @PostMapping("/selectTrainUnLoadResultForConverted")
  1324. public Map<String, Object> selectTrainUnLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1325. Integer apiId,
  1326. Integer pageNum,
  1327. Integer pageSize,
  1328. String con
  1329. ) {
  1330. return tmsTrainFeign.selectTrainUnLoadResultForConverted(apiId, pageNum, pageSize,con);
  1331. }
  1332. /**
  1333. * 新增汽车装货实绩
  1334. */
  1335. @ApiOperation(value = "新增汽车装车实绩")
  1336. @ApiImplicitParams({
  1337. @ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
  1338. })
  1339. @PostMapping("/addLoadResultForConverted")
  1340. public Map<String, Object> addLoadResultForConverted(@RequestBody(required = false) Map<String, Object> map) {
  1341. Map<String, Object> resTfulResult = tmsTruckFeign.addLoadResultForConverted(map);
  1342. return resTfulResult;
  1343. }
  1344. @ApiOperation(value = "查询所有装车实绩")
  1345. @ApiImplicitParams({
  1346. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1347. @ApiImplicitParam(name = "apiId(91)", value = "动态表头", required = false, dataType = "Integer"),
  1348. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1349. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1350. })
  1351. @PostMapping("/selectLoadResultForConverted")
  1352. public Map<String, Object> selectLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1353. Integer apiId,
  1354. Integer pageNum,
  1355. Integer pageSize
  1356. ) {
  1357. return tmsTruckFeign.selectLoadResultForConverted(mapValue, apiId, pageNum, pageSize);
  1358. }
  1359. //根据实绩id渲染数据
  1360. @ApiOperation(value = "通过ID查询装车实绩 ")
  1361. @ApiImplicitParams({
  1362. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1363. })
  1364. @PostMapping("/getLoadResultByResultId/{resultId}")
  1365. public Map<String, Object> getLoadResultByResultId(@PathVariable("resultId") Integer resultId) {
  1366. Map<String, Object> resTfulResult = tmsTruckFeign.getLoadResultByResultId(resultId);
  1367. return resTfulResult;
  1368. }
  1369. @ApiOperation(value = "内转物流查询质检作业")
  1370. @ApiImplicitParams({
  1371. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1372. @ApiImplicitParam(name = "apiId(204)", value = "动态表头", required = false, dataType = "Integer"),
  1373. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1374. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1375. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1376. })
  1377. @PostMapping("/selectQualityResultForConverted")
  1378. public Map<String, Object> selectQualityResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
  1379. Integer apiId,
  1380. Integer pageNum,
  1381. Integer pageSize
  1382. ) {
  1383. return tmsTruckFeign.selectQualityResultForConverted(mapValue, apiId, pageNum, pageSize);
  1384. }
  1385. /**
  1386. * 展示计数实绩列表
  1387. */
  1388. @ApiOperation(value = "查询计数实绩列表")
  1389. @ApiImplicitParams({
  1390. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1391. @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
  1392. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1393. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1394. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1395. })
  1396. @PostMapping("/selectCountList")
  1397. public Map<String, Object> selectCountList(@RequestBody(required = false) Map<String, Object> mapValue,
  1398. Integer apiId,
  1399. Integer pageNum,
  1400. Integer pageSize
  1401. ) {
  1402. return tmsTruckFeign.selectCountList(mapValue, apiId, pageNum, pageSize);
  1403. }
  1404. /**
  1405. * 内转物流卸货装车实绩
  1406. *
  1407. * @param map
  1408. * @return
  1409. */
  1410. @ApiOperation(value = "内转物流新增卸货实绩 ")
  1411. @ApiImplicitParams({
  1412. @ApiImplicitParam(name = "orderNumber", value = "运输订单号", required = false, dataType = "String"),
  1413. })
  1414. @PostMapping("/addUnLoadResultForconverted")
  1415. public Map<String, Object> addUnLoadResultForconverted(@RequestBody(required = false) Map<String, Object> map) {
  1416. Map<String, Object> resTfulResult = tmsTruckFeign.addUnLoadResultForconverted(map);
  1417. return resTfulResult;
  1418. }
  1419. @ApiOperation(value = "查询所有的包月作业实绩")
  1420. @ApiImplicitParams({
  1421. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1422. @ApiImplicitParam(name = "apiId(还没有)", value = "动态表头", required = false, dataType = "Integer"),
  1423. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1424. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1425. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1426. })
  1427. @PostMapping("/getTmstruckMonthResult")
  1428. public Map<String, Object> getTmstruckMonthResult(@RequestBody(required = false) Map<String, Object> mapValue,
  1429. Integer apiId,
  1430. Integer pageNum,
  1431. Integer pageSize
  1432. ) {
  1433. return tmsTruckFeign.getTmstruckMonthResult(mapValue, apiId, pageNum, pageSize);
  1434. }
  1435. /**
  1436. * 通过运输订单判断下一步是否需要计量,更新汽车衡到计量实绩中
  1437. */
  1438. @PostMapping("/updateTruckCalculate/{orderId}")
  1439. public Map<String, Object> updateTruckCalculate(@PathVariable("orderId") Integer orderId) {
  1440. return tmsTruckFeign.isNextNeedJl(orderId);
  1441. }
  1442. }