TMSController.java 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.feign.TmsTrainFeign;
  3. import com.steerinfo.dil.feign.TmsTruckFeign;
  4. import com.steerinfo.dil.feign.TmsshipFeign;
  5. import com.steerinfo.framework.controller.RESTfulResult;
  6. import io.swagger.annotations.ApiImplicitParam;
  7. import io.swagger.annotations.ApiImplicitParams;
  8. import io.swagger.annotations.ApiOperation;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.*;
  11. import java.math.BigDecimal;
  12. import java.util.HashMap;
  13. import java.util.Map;
  14. /**
  15. * @author luobang
  16. * @create 2021-09-17 14:11
  17. */
  18. @RestController
  19. @RequestMapping("${api.version}/tms")
  20. public class TMSController {
  21. @Autowired
  22. private TmsTruckFeign tmsTruckFeign;
  23. @Autowired
  24. private TmsTrainFeign tmsTrainFeign;
  25. @Autowired
  26. TmsshipFeign tmsshipFeign;
  27. /*======================================船运==========================================*/
  28. /**
  29. * 驳船
  30. *
  31. * @param mapValue
  32. * @param pageNum
  33. * @param pageSize
  34. * @param apiId
  35. * @return
  36. */
  37. @PostMapping("getBargeOperationList")
  38. @ApiOperation(value = "展示驳船")
  39. public RESTfulResult getBargeOperationList(@RequestBody(required = false) Map<String, Object> mapValue,
  40. Integer pageNum,
  41. Integer pageSize,
  42. Integer apiId) {
  43. if (mapValue == null) {
  44. mapValue = new HashMap<>();
  45. }
  46. return tmsshipFeign.getBargeOperationList(mapValue, pageNum, pageSize, apiId);
  47. }
  48. @PostMapping("selectBargeOperation/{bargeOperationId}")
  49. @ApiOperation(value = "通过id查询驳船")
  50. RESTfulResult selectBargeOperation(@PathVariable("bargeOperationId") BigDecimal bargeOperationId) {
  51. return tmsshipFeign.selectBargeOperation(bargeOperationId);
  52. }
  53. @PostMapping("getBargeOperation/{bargeOperationId}")
  54. @ApiOperation(value = "查询驳船")
  55. RESTfulResult getBargeOperation(@PathVariable("bargeOperationId") BigDecimal bargeOperationId) {
  56. return tmsshipFeign.getBargeOperation(bargeOperationId);
  57. }
  58. @PostMapping("deleteBargeOperation/{bargeOperationId}")
  59. @ApiOperation(value = "逻辑删除驳船")
  60. RESTfulResult deleteBargeOperation(@PathVariable("bargeOperationId") BigDecimal bargeOperationId) {
  61. return tmsshipFeign.deleteBargeOperation(bargeOperationId);
  62. }
  63. @PostMapping("updateBargeOperation")
  64. @ApiOperation(value = "修改驳船")
  65. RESTfulResult updateBargeOperation(@RequestBody Map<String, Object> tmsshipBargeOperation) {
  66. return tmsshipFeign.updateBargeOperation(tmsshipBargeOperation);
  67. }
  68. @PostMapping("addBargeOperation")
  69. @ApiOperation(value = "新增驳船")
  70. RESTfulResult addBargeOperation(@RequestBody Map<String, Object> map) {
  71. return tmsshipFeign.addBargeOperation(map);
  72. }
  73. @PostMapping("addTmsShipEntryWharyResult")
  74. @ApiOperation(value = "新增抵港")
  75. RESTfulResult addTmsShipEntryWharyResult(@RequestBody Map<String, Object> mapVal) {
  76. return tmsshipFeign.addTmsShipEntryWharyResult(mapVal);
  77. }
  78. @PostMapping("addTmsShipOutWharyResult")
  79. @ApiOperation(value = "新增离港")
  80. RESTfulResult addTmsShipOutWharyResult(@RequestBody Map<String, Object> mapVal) {
  81. return tmsshipFeign.addTmsShipOutWharyResult(mapVal);
  82. }
  83. /**
  84. * 装船
  85. *
  86. * @param mapValue
  87. * @param pageNum
  88. * @param pageSize
  89. * @param apiId
  90. * @return
  91. */
  92. @PostMapping("getLoadShipList")
  93. @ApiOperation(value = "展示装船")
  94. public RESTfulResult getLoadShipList(@RequestBody(required = false) Map<String, Object> mapValue,
  95. Integer pageNum,
  96. Integer pageSize,
  97. Integer apiId) {
  98. if (mapValue == null) {
  99. mapValue = new HashMap<>();
  100. }
  101. return tmsshipFeign.getLoadShipList(mapValue, pageNum, pageSize, apiId);
  102. }
  103. @PostMapping("getLoadShip/{resultId}")
  104. @ApiOperation(value = "查询装船")
  105. RESTfulResult getLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  106. return tmsshipFeign.getLoadShip(resultId);
  107. }
  108. @PostMapping("selectLoadShip/{resultId}")
  109. @ApiOperation(value = "通过id查询装船")
  110. RESTfulResult selectLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  111. return tmsshipFeign.selectLoadShip(resultId);
  112. }
  113. @PostMapping("deleteLoadShip/{resultId}")
  114. @ApiOperation(value = "逻辑删除装船")
  115. RESTfulResult deleteLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  116. return tmsshipFeign.deleteLoadShip(resultId);
  117. }
  118. @PostMapping("updateLoadShip")
  119. @ApiOperation(value = "修改装船")
  120. RESTfulResult updateLoadShip(@RequestBody Map<String, Object> tmsshipLoadShipResult) {
  121. return tmsshipFeign.updateLoadShip(tmsshipLoadShipResult);
  122. }
  123. @PostMapping("addLoadShip")
  124. @ApiOperation(value = "新增装船")
  125. RESTfulResult addLoadShip(@RequestBody Map<String, Object> map) {
  126. return tmsshipFeign.addLoadShip(map);
  127. }
  128. /**
  129. * 位置作业
  130. *
  131. * @param mapValue
  132. * @param pageNum
  133. * @param pageSize
  134. * @param apiId
  135. * @return
  136. */
  137. @PostMapping("getShipLocationList")
  138. @ApiOperation(value = "展示位置作业")
  139. public RESTfulResult getShipLocationList(@RequestBody(required = false) Map<String, Object> mapValue,
  140. Integer pageNum,
  141. Integer pageSize,
  142. Integer apiId) {
  143. if (mapValue == null) {
  144. mapValue = new HashMap<>();
  145. }
  146. return tmsshipFeign.getShipLocationList(mapValue, pageNum, pageSize, apiId);
  147. }
  148. @PostMapping("getShipLocation/{locationId}")
  149. @ApiOperation(value = "查询位置作业")
  150. RESTfulResult getShipLocation(@PathVariable("locationId") BigDecimal locationId) {
  151. return tmsshipFeign.getShipLocation(locationId);
  152. }
  153. @PostMapping("selectShipLocation/{locationId}")
  154. @ApiOperation(value = "通过id查询位置作业")
  155. RESTfulResult selectShipLocation(@PathVariable("locationId") BigDecimal locationId) {
  156. return tmsshipFeign.selectShipLocation(locationId);
  157. }
  158. @PostMapping("deleteShipLocation/{locationId}")
  159. @ApiOperation(value = "逻辑删除位置作业")
  160. RESTfulResult deleteShipLocation(@PathVariable("locationId") BigDecimal locationId) {
  161. return tmsshipFeign.deleteShipLocation(locationId);
  162. }
  163. @PostMapping("updateShipLocation")
  164. @ApiOperation(value = "修改位置作业")
  165. RESTfulResult updateShipLocation(@RequestBody Map<String, Object> tmsshipShipLocation) {
  166. return tmsshipFeign.updateShipLocation(tmsshipShipLocation);
  167. }
  168. @PostMapping("addShipLocation")
  169. @ApiOperation(value = "新增位置作业")
  170. RESTfulResult addShipLocation(@RequestBody Map<String, Object> map) {
  171. return tmsshipFeign.addShipLocation(map);
  172. }
  173. /**
  174. * 水路货物运单
  175. *
  176. * @param mapValue
  177. * @param pageNum
  178. * @param pageSize
  179. * @param apiId
  180. * @return
  181. */
  182. @PostMapping("listAllOrders")
  183. @ApiOperation(value = "展示水路货物运单")
  184. public RESTfulResult listAllOrders(@RequestBody(required = false) Map<String, Object> mapValue,
  185. Integer pageNum,
  186. Integer pageSize,
  187. Integer apiId) {
  188. if (mapValue == null) {
  189. mapValue = new HashMap<>();
  190. }
  191. return tmsshipFeign.listAllOrders(mapValue, pageNum, pageSize, apiId);
  192. }
  193. /**
  194. * 展示船只信息
  195. *
  196. * @param mapValue
  197. * @param pageNum
  198. * @param pageSize
  199. * @param apiId
  200. * @return
  201. */
  202. @PostMapping("getCapacityList")
  203. @ApiOperation(value = "展示船只信息")
  204. public RESTfulResult getCapacityList(@RequestBody(required = false) Map<String, Object> mapValue,
  205. Integer pageNum,
  206. Integer pageSize,
  207. Integer apiId) {
  208. if (mapValue == null) {
  209. mapValue = new HashMap<>();
  210. }
  211. return tmsshipFeign.getCapacityList(mapValue, pageNum, pageSize, apiId);
  212. }
  213. /**
  214. * 卸船作业
  215. *
  216. * @param mapValue
  217. * @param pageNum
  218. * @param pageSize
  219. * @param apiId
  220. * @return
  221. */
  222. @PostMapping("getUnLoadShipList")
  223. @ApiOperation(value = "展示卸船作业信息列表")
  224. public RESTfulResult getUnLoadShipList(@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.getUnLoadShipList(mapValue, pageNum, pageSize, apiId);
  232. }
  233. @PostMapping("getUnloadShip/{resultId}")
  234. @ApiOperation(value = "查询卸船作业")
  235. RESTfulResult getUnloadShip(@PathVariable("resultId") BigDecimal resultId) {
  236. return tmsshipFeign.getUnloadShip(resultId);
  237. }
  238. @PostMapping("selectUnLoadShip/{resultId}")
  239. @ApiOperation(value = "通过id查询卸船作业")
  240. RESTfulResult selectUnLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  241. return tmsshipFeign.selectUnLoadShip(resultId);
  242. }
  243. @PostMapping("deleteUnLoadShip/{resultId}")
  244. @ApiOperation(value = "逻辑删除卸船作业")
  245. RESTfulResult deleteUnLoadShip(@PathVariable("resultId") BigDecimal resultId) {
  246. return tmsshipFeign.deleteUnLoadShip(resultId);
  247. }
  248. @PostMapping("updateUnLoadShip")
  249. @ApiOperation(value = "修改卸船作业")
  250. RESTfulResult updateUnLoadShip(@RequestBody Map<String, Object> tmsshipUnloadShipResult) {
  251. return tmsshipFeign.updateUnLoadShip(tmsshipUnloadShipResult);
  252. }
  253. @PostMapping("addUnLoadShip")
  254. @ApiOperation(value = "新增卸船作业")
  255. RESTfulResult addUnLoadShip(@RequestBody Map<String, Object> map) {
  256. return tmsshipFeign.addUnLoadShip(map);
  257. }
  258. /**
  259. * 水分质检
  260. *
  261. * @param mapValue
  262. * @param pageNum
  263. * @param pageSize
  264. * @param apiId
  265. * @return
  266. */
  267. @PostMapping("getWaterQualityResultList")
  268. @ApiOperation(value = "展示水分质检信息列表")
  269. public RESTfulResult getWaterQualityResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  270. Integer pageNum,
  271. Integer pageSize,
  272. Integer apiId) {
  273. if (mapValue == null) {
  274. mapValue = new HashMap<>();
  275. }
  276. return tmsshipFeign.getWaterQualityResultList(mapValue, pageNum, pageSize, apiId);
  277. }
  278. @PostMapping("getWaterQuality/{resultId}")
  279. @ApiOperation(value = "查询水分质检")
  280. RESTfulResult getWaterQuality(@PathVariable("resultId") BigDecimal resultId) {
  281. return tmsshipFeign.getWaterQuality(resultId);
  282. }
  283. @PostMapping("selectWaterQualityResult/{resultId}")
  284. @ApiOperation(value = "通过id查询水分质检")
  285. RESTfulResult selectWaterQualityResult(@PathVariable("resultId") BigDecimal resultId) {
  286. return tmsshipFeign.selectWaterQualityResult(resultId);
  287. }
  288. @PostMapping("deleteWaterQualityResult/{resultId}")
  289. @ApiOperation(value = "逻辑删除水分质检")
  290. RESTfulResult deleteWaterQualityResult(@PathVariable("resultId") BigDecimal resultId) {
  291. return tmsshipFeign.deleteWaterQualityResult(resultId);
  292. }
  293. @PostMapping("updateWaterQualityResult")
  294. @ApiOperation(value = "修改水分质检")
  295. RESTfulResult updateWaterQualityResult(@RequestBody Map<String, Object> tmsshipWaterQualityResult) {
  296. return tmsshipFeign.updateWaterQualityResult(tmsshipWaterQualityResult);
  297. }
  298. @PostMapping("addWaterQualityResult")
  299. @ApiOperation(value = "新增水分质检")
  300. RESTfulResult addWaterQualityResult(@RequestBody Map<String, Object> map) {
  301. return tmsshipFeign.addWaterQualityResult(map);
  302. }
  303. /**
  304. * 船只信息
  305. *
  306. * @param mapValue
  307. * @param pageNum
  308. * @param pageSize
  309. * @param apiId
  310. * @return
  311. */
  312. @PostMapping("getCapacities")
  313. @ApiOperation(value = "展示船只信息列表")
  314. public RESTfulResult getCapacities(BigDecimal instructionsId,
  315. @RequestBody(required = false) Map<String, Object> mapValue,
  316. Integer pageNum,
  317. Integer pageSize,
  318. Integer apiId) {
  319. if (mapValue == null) {
  320. mapValue = new HashMap<>();
  321. }
  322. return tmsshipFeign.getCapacities(instructionsId, mapValue, pageNum, pageSize, apiId);
  323. }
  324. @PostMapping("getInstructionsCapacity/{instructionsCapacityId}")
  325. @ApiOperation(value = "查询船只信息")
  326. RESTfulResult getInstructionsCapacity(@PathVariable("instructionsCapacityId") BigDecimal instructionsCapacityId) {
  327. return tmsshipFeign.getInstructionsCapacity(instructionsCapacityId);
  328. }
  329. @PostMapping("deleteInstructionsCapacity/{instructionsCapacityId}")
  330. @ApiOperation(value = "逻辑删除船只信息")
  331. RESTfulResult deleteInstructionsCapacity(@PathVariable("instructionsCapacityId") BigDecimal instructionsCapacityId) {
  332. return tmsshipFeign.deleteInstructionsCapacity(instructionsCapacityId);
  333. }
  334. @PostMapping("updateInstructionsCapacity")
  335. @ApiOperation(value = "修改船只信息")
  336. RESTfulResult updateInstructionsCapacity(@RequestBody Map<String, Object> omsshipInstructionsCapacity) {
  337. return tmsshipFeign.updateInstructionsCapacity(omsshipInstructionsCapacity);
  338. }
  339. @PostMapping("addInstructionsCapacity")
  340. @ApiOperation(value = "新增船只信息")
  341. RESTfulResult addInstructionsCapacity(@RequestBody Map<String, Object> omsshipInstructionsCapacity) {
  342. return tmsshipFeign.addInstructionsCapacity(omsshipInstructionsCapacity);
  343. }
  344. /**
  345. * 装船指令
  346. *
  347. * @param mapValue
  348. * @param pageNum
  349. * @param pageSize
  350. * @param apiId
  351. * @return
  352. */
  353. @PostMapping("getShipMentInstructionsList")
  354. @ApiOperation(value = "展示装船指令列表")
  355. public RESTfulResult getShipMentInstructionsList(@RequestBody(required = false) Map<String, Object> mapValue,
  356. Integer pageNum,
  357. Integer pageSize,
  358. Integer apiId) {
  359. if (mapValue == null) {
  360. mapValue = new HashMap<>();
  361. }
  362. return tmsshipFeign.getShipMentInstructionsList(mapValue, pageNum, pageSize, apiId);
  363. }
  364. @PostMapping("getShipmentInstructions/{instructionsId}")
  365. @ApiOperation(value = "查询装船指令")
  366. RESTfulResult getShipmentInstructions(@PathVariable("instructionsId") BigDecimal instructionsId) {
  367. return tmsshipFeign.getShipmentInstructions(instructionsId);
  368. }
  369. @PostMapping("deleteByPrimaryKey/{instructionsId}")
  370. @ApiOperation(value = "逻辑删除装船指令")
  371. RESTfulResult deleteByPrimaryKey(@PathVariable("instructionsId") BigDecimal instructionsId) {
  372. return tmsshipFeign.deleteByPrimaryKey(instructionsId);
  373. }
  374. @PostMapping("updateIssueStatus/{shipmentInstructionsId}")
  375. @ApiOperation(value = "修改状态")
  376. RESTfulResult updateIssueStatus(@PathVariable("shipmentInstructionsId") BigDecimal shipmentInstructionsId) {
  377. return tmsshipFeign.updateIssueStatus(shipmentInstructionsId);
  378. }
  379. @PostMapping("updateShipmentInstructions")
  380. @ApiOperation(value = "修改装船指令")
  381. RESTfulResult updateShipmentInstructions(@RequestBody Map<String, Object> omsshipShipmentInstructions) {
  382. return tmsshipFeign.updateShipmentInstructions(omsshipShipmentInstructions);
  383. }
  384. @PostMapping("addShipmentInstructions")
  385. @ApiOperation(value = "新增装船指令")
  386. RESTfulResult addShipmentInstructions(@RequestBody Map<String, Object> omsshipShipmentInstructions) {
  387. return tmsshipFeign.addShipmentInstructions(omsshipShipmentInstructions);
  388. }
  389. /*======================================火运==========================================*/
  390. //************************************TmstrainLoadingResultController********************
  391. @ApiOperation(value="查询装车作业信息")
  392. @ApiImplicitParams({
  393. @ApiImplicitParam(name = "apiId(58)", value = "表头", required = false, dataType = "Interger")
  394. })
  395. @PostMapping("/getTmstrainWagonLoad")
  396. public RESTfulResult getTmstrainWagonLoad(@RequestBody(required=false) Map<String,Object> mapValue,
  397. Integer apiId,
  398. Integer pageNum,
  399. Integer pageSize){
  400. return tmsTrainFeign.getTmstrainWagonLoad(mapValue == null?new HashMap<>():mapValue, apiId, pageNum, pageSize);
  401. }
  402. @ApiOperation(value="新增车皮装车作业实绩")
  403. @ApiImplicitParams({
  404. @ApiImplicitParam(name = "tmstrainLoadingResult", value = "车皮装车对象", required = false, dataType = "TmstrainLoadingResult")
  405. })
  406. @PostMapping(value = "/insertTmstrainLoadingResult")
  407. public RESTfulResult insertTmstrainLoadingResult(@RequestBody(required = false) Map<String, Object> map){
  408. return tmsTrainFeign.insertTmstrainLoadingResult(map);
  409. }
  410. @ApiOperation(value="通过主键查询车皮装车作业信息")
  411. @ApiImplicitParams({
  412. @ApiImplicitParam(name = "resultId", value = "车皮装车主键", required = false, dataType = "BigDecimal")
  413. })
  414. @PostMapping(value = "/getTmstrainLoadingResultByResultId/{resultId}")
  415. public RESTfulResult getTmstrainLoadingResultByResultId(@PathVariable("resultId") BigDecimal resultId){
  416. return tmsTrainFeign.getTmstrainLoadingResultByResultId(resultId);
  417. }
  418. @ApiOperation(value="通过主键修改车皮装车作业实绩")
  419. @ApiImplicitParams({
  420. @ApiImplicitParam(name = "tmstrainLoadingResult", value = "修改车皮装车map", required = false, dataType = "TmstrainWagonLoadResult")
  421. })
  422. @PostMapping(value = "/upadteTmstrainLoadingResultByResultId")
  423. public RESTfulResult upadteTmstrainLoadingResultByResultId(@RequestBody(required = false) Map<String, Object> map) {
  424. return tmsTrainFeign.upadteTmstrainLoadingResultByResultId(map);
  425. }
  426. @ApiOperation(value="通过主键删除车皮装车作业实绩")
  427. @ApiImplicitParams({
  428. @ApiImplicitParam(name = "resultId", value = "主键ID", required = false, dataType = "BigDecimal")
  429. })
  430. @PostMapping(value = "/deleteTmstrainLoadingResultByResultId")
  431. public RESTfulResult deleteTmstrainLoadingResultByResultId(@RequestParam BigDecimal resultId){
  432. return tmsTrainFeign.deleteTmstrainLoadingResultByResultId(resultId);
  433. }
  434. //********************下拉框**********************
  435. @ApiOperation(value="获取发站地点名称")
  436. @ApiImplicitParams({
  437. })
  438. @GetMapping(value = "/getSendStationName")
  439. public RESTfulResult getSendStationName(){
  440. return tmsTrainFeign.getSendStationName();
  441. }
  442. @ApiOperation(value="获取到站地点名称")
  443. @GetMapping(value = "/getArrivalStationName")
  444. public RESTfulResult getArrivalStationName(){
  445. return tmsTrainFeign.getArrivalStationName();
  446. }
  447. @ApiOperation(value="获取批次ID")
  448. @GetMapping(value = "/getBatchId")
  449. public RESTfulResult getBatchId(){
  450. return tmsTrainFeign.getBatchId();
  451. }
  452. @ApiOperation(value="获取装车车皮号")
  453. @GetMapping(value = "/getWagonNo")
  454. public RESTfulResult getWagonNo(){
  455. return tmsTrainFeign.getWagonNo();
  456. }
  457. @ApiOperation(value="查询卸车作业信息")
  458. @ApiImplicitParams({
  459. @ApiImplicitParam(name = "apiId(60)", value = "表头", required = false, dataType = "Interger")
  460. })
  461. @PostMapping("/getTmstrainWagonUnLoad")
  462. public RESTfulResult getTmstrainWagonUnLoad(@RequestBody(required=false) Map<String,Object> mapValue,
  463. Integer apiId,
  464. Integer pageNum,
  465. Integer pageSize){
  466. return tmsTrainFeign.getTmstrainWagonUnLoad(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize);
  467. }
  468. @ApiOperation(value="通过主键删除车皮卸车作业实绩")
  469. @ApiImplicitParams({
  470. @ApiImplicitParam(name = "unloadingId", value = "主键ID", required = false, dataType = "BigDecimal")
  471. })
  472. @PostMapping(value = "/deleteTmstrainWagonUnLoadResultByUnLoadingId")
  473. public RESTfulResult deleteTmstrainWagonUnLoadResultByUnLoadingId(@RequestParam BigDecimal unloadingId){
  474. return tmsTrainFeign.deleteTmstrainWagonUnLoadResultByUnLoadingId(unloadingId);
  475. }
  476. @ApiOperation(value="新增车皮卸车作业实绩")
  477. @ApiImplicitParams({
  478. @ApiImplicitParam(name = "tmstrainWagonUnloadResult", value = "车皮卸车对象", required = false, dataType = "TmstrainWagonUnloadResult")
  479. })
  480. @PostMapping(value = "/insertTmstrainWagonUnLoadResult")
  481. public RESTfulResult insertTmstrainWagonUnLoadResult(@RequestBody(required = false) Map<String, Object> tmstrainWagonUnloadResult){
  482. return tmsTrainFeign.insertTmstrainWagonUnLoadResult(tmstrainWagonUnloadResult);
  483. }
  484. @ApiOperation(value="通过主键修改车皮卸车作业实绩")
  485. @ApiImplicitParams({
  486. @ApiImplicitParam(name = "tmstrainWagonUnloadResult", value = "车皮卸车对象", required = false, dataType = "TmstrainWagonUnloadResult")
  487. })
  488. @PostMapping(value = "/upadteTmstrainWagonUnLoadResultByUnLoadingId")
  489. public RESTfulResult upadteTmstrainWagonUnLoadResultByUnLoadingId(@RequestBody(required = false) Map<String, Object> tmstrainWagonUnloadResult){
  490. return tmsTrainFeign.upadteTmstrainWagonUnLoadResultByUnLoadingId(tmstrainWagonUnloadResult);
  491. }
  492. @ApiOperation(value="查看火运实绩")
  493. @ApiImplicitParams({
  494. @ApiImplicitParam(name = "apiId(65)", value = "表头", required = false, dataType = "Interger")
  495. })
  496. @PostMapping("/getTmstrainresult")
  497. public RESTfulResult getTmstrainresult(@RequestBody(required=false) Map<String,Object> mapValue,
  498. Integer apiId,
  499. Integer pageNum,
  500. Integer pageSize){
  501. return tmsTrainFeign.getTmstrainresult(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize);
  502. }
  503. @ApiOperation(value="通过主键查询车皮卸车作业信息")
  504. @ApiImplicitParams({
  505. @ApiImplicitParam(name = "unloadingId", value = "车皮卸车主键", required = false, dataType = "BigDecimal")
  506. })
  507. @PostMapping(value = "/getTmstrainWagonUnLoadResultByUnLoadingId/{unloadingId}")
  508. public RESTfulResult getTmstrainWagonUnLoadResultByUnLoadingId(@PathVariable("unloadingId") BigDecimal unloadingId) {
  509. return tmsTrainFeign.getTmstrainWagonUnLoadResultByUnLoadingId(unloadingId);
  510. }
  511. //下拉框
  512. @ApiOperation(value="获取卸车地点名称")
  513. @ApiImplicitParams({
  514. })
  515. @GetMapping(value = "/getUnloadingPointName")
  516. public RESTfulResult getUnloadingPointName(){
  517. return tmsTrainFeign.getUnloadingPointName();
  518. }
  519. @ApiOperation(value="获取卸车路径名称")
  520. @ApiImplicitParams({
  521. })
  522. @GetMapping(value = "/getUnloadingRouteName")
  523. public RESTfulResult getUnloadingRouteName(){
  524. return tmsTrainFeign.getUnloadingRouteName();
  525. }
  526. @ApiOperation(value="查询请车作业")
  527. @ApiImplicitParams({
  528. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  529. @ApiImplicitParam(name = "apiId(57)", value = "动态表头", required = false, dataType = "Integer"),
  530. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  531. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  532. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  533. })
  534. @PostMapping("/getAllWagonPlease")
  535. public RESTfulResult getAllWagonPlease(@RequestBody(required=false) Map<String,Object> mapValue,
  536. Integer apiId,
  537. Integer pageNum,
  538. Integer pageSize,
  539. Integer status){
  540. return tmsTrainFeign.getAllWagonPlease(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, status);
  541. }
  542. @ApiOperation(value="通过Id查询请车作业")
  543. @PostMapping ("/getWagonPleaseById/{resultId}")
  544. public RESTfulResult getWagonPleaseById(@PathVariable("resultId")Integer resultId){
  545. return tmsTrainFeign.getWagonPleaseById(resultId);
  546. }
  547. @ApiOperation(value="新增请车作业")
  548. @ApiImplicitParams({
  549. @ApiImplicitParam(name = "amstrainWagonPlease", value = "请车作业对象", required = false, dataType = "AmstrainWagonPlease"),
  550. })
  551. @PostMapping("/addWagonPlease")
  552. public RESTfulResult addWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult){
  553. return tmsTrainFeign.addWagonPlease(tmstrainPleaseApproveResult);
  554. }
  555. @ApiOperation(value="修改请车作业")
  556. @ApiImplicitParams({
  557. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  558. })
  559. @PostMapping("/updateWagonPlease")
  560. public RESTfulResult updateWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult){
  561. return tmsTrainFeign.updateWagonPlease(tmstrainPleaseApproveResult);
  562. }
  563. @ApiOperation(value="逻辑删除请车作业 设置状态码为 3")
  564. @ApiImplicitParams({
  565. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  566. })
  567. @PostMapping("/deleteWagonPlease/{resultId}")
  568. public RESTfulResult deleteWagonPlease(@PathVariable("resultId") Integer resultId){
  569. return tmsTrainFeign.deleteWagonPlease(resultId);
  570. }
  571. @ApiOperation(value="下发请车作业 设置状态码为 1")
  572. @ApiImplicitParams({
  573. @ApiImplicitParam(name = "resultId", value = "请车作业实绩对象", required = false, dataType = "Integer"),
  574. })
  575. @PostMapping("/sendWagonPlease/{resultId}")
  576. public RESTfulResult sendWagonPlease(@PathVariable("resultId") Integer resultId){
  577. return tmsTrainFeign.sendWagonPlease(resultId);
  578. }
  579. //下拉框
  580. @ApiOperation(value="查询所有发货单位")
  581. @GetMapping("/getShipper")
  582. public RESTfulResult getShipper(){
  583. return tmsTrainFeign.getShipper();
  584. }
  585. @ApiOperation(value="查询批车作业")
  586. @ApiImplicitParams({
  587. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  588. @ApiImplicitParam(name = "apiId(70)", value = "动态表头", required = false, dataType = "Integer"),
  589. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  590. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  591. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  592. })
  593. @PostMapping("/getApproveAllWagonPlease")
  594. public RESTfulResult getApproveAllWagonPlease(@RequestBody(required=false) Map<String,Object> mapValue,
  595. Integer apiId,
  596. Integer pageNum,
  597. Integer pageSize){
  598. return tmsTrainFeign.getApproveAllWagonPlease(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize);
  599. }
  600. @ApiOperation(value="通过Id查询批车作业")
  601. @PostMapping ("/getApproveWagonPleaseById/{resultId}")
  602. public RESTfulResult getApproveWagonPleaseById(@PathVariable("resultId")Integer resultId){
  603. return tmsTrainFeign.getApproveWagonPleaseById(resultId);
  604. }
  605. @ApiOperation(value="新增批车作业")
  606. @ApiImplicitParams({
  607. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  608. })
  609. @PostMapping("/addApproveWagonPlease")
  610. public RESTfulResult addApproveWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult){
  611. return tmsTrainFeign.addApproveWagonPlease(tmstrainPleaseApproveResult);
  612. }
  613. @ApiOperation(value="修改批车作业")
  614. @ApiImplicitParams({
  615. @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
  616. })
  617. @PostMapping("/updateApproveWagonPlease")
  618. public RESTfulResult updateApproveWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult){
  619. return tmsTrainFeign.updateApproveWagonPlease(tmstrainPleaseApproveResult);
  620. }
  621. @ApiOperation(value="逻辑删除批车作业")
  622. @ApiImplicitParams({
  623. @ApiImplicitParam(name = "resultId", value = "请车作业实绩对象", required = false, dataType = "Integer"),
  624. })
  625. @PostMapping("/deleteApproveWagonPlease/{resultId}")
  626. public RESTfulResult deleteApproveWagonPlease(@PathVariable("resultId") Integer resultId){
  627. return tmsTrainFeign.deleteApproveWagonPlease(resultId);
  628. }
  629. /*======================================汽运==========================================*/
  630. @ApiOperation(value="查询运输预约")
  631. @ApiImplicitParams({
  632. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  633. @ApiImplicitParam(name = "apiId(79)", value = "动态表头", required = false, dataType = "Integer"),
  634. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  635. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  636. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  637. })
  638. @PostMapping("/getAllPurPlan")
  639. public RESTfulResult getAllPurPlan(@RequestBody(required = false) Map<String, Object> mapValue,
  640. Integer apiId,
  641. Integer pageNum,
  642. Integer pageSize,
  643. Integer status) {
  644. if (mapValue == null) {
  645. mapValue = new HashMap<>();
  646. }
  647. return tmsTruckFeign.getAllPurPlan(mapValue, apiId, pageNum, pageSize, status);
  648. }
  649. /*
  650. 不知道谁写的
  651. */
  652. @PostMapping("/getAllPurPlan/{apiId}")
  653. public RESTfulResult getDetailListByCon(@PathVariable("apiId") Integer apiId,
  654. @RequestBody(required = false) Map<String, Object> mapValue,
  655. Integer pageNum,
  656. Integer pageSize,
  657. String con) {
  658. if (mapValue == null) {
  659. mapValue = new HashMap<>();
  660. }
  661. return tmsTruckFeign.getDetailListByCon(apiId, mapValue, pageNum, pageSize, con);
  662. }
  663. @ApiOperation(value = "通过Id查询请车作业")
  664. @PostMapping("/getPurPlanById/{planId}")
  665. public RESTfulResult getPurPlanById(@PathVariable("planId") Integer planId) {
  666. return tmsTruckFeign.getPurPlanById(planId);
  667. }
  668. @ApiOperation(value = "新增运输计划 状态:0")
  669. @ApiImplicitParams({
  670. @ApiImplicitParam(name = "amstruckPurplan", value = "运输计划实绩对象", required = false, dataType = "AmstruckPurplan"),
  671. })
  672. @PostMapping("/addPurPlan")
  673. public RESTfulResult addPurPlan(@RequestBody Map<String, Object> map) {
  674. return tmsTruckFeign.addPurPlan(map);
  675. }
  676. @ApiOperation(value = "下发运输计划 状态:1")
  677. @ApiImplicitParams({
  678. @ApiImplicitParam(name = "planId", value = "运输计划Id", required = false, dataType = "Integer"),
  679. })
  680. @PostMapping("/sendPurPlan/{planId}")
  681. public RESTfulResult sendPurPlan(@PathVariable("planId") Integer planId) {
  682. return tmsTruckFeign.sendPurPlan(planId);
  683. }
  684. @ApiOperation(value = "接收运输计划 状态:2")
  685. @ApiImplicitParams({
  686. @ApiImplicitParam(name = "planId", value = "运输计划Id", required = false, dataType = "Integer"),
  687. })
  688. @PostMapping("/receptionPurPlan/{planId}")
  689. public RESTfulResult receptionPurPlan(@PathVariable("planId") Integer planId) {
  690. return tmsTruckFeign.receptionPurPlan(planId);
  691. }
  692. @ApiOperation(value = "逻辑删除运输计划 状态:3")
  693. @ApiImplicitParams({
  694. @ApiImplicitParam(name = "planId", value = "运输计划Id", required = false, dataType = "Integer"),
  695. })
  696. @PostMapping("/deletePurPlan/{planId}")
  697. public RESTfulResult deletePurPlan(@PathVariable("planId") Integer planId) {
  698. return tmsTruckFeign.deletePurPlan(planId);
  699. }
  700. //**************************************************************************************
  701. @ApiOperation(value = "查询要分派的计划")
  702. @ApiImplicitParams({
  703. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  704. @ApiImplicitParam(name = "apiId(82)", value = "动态表头", required = false, dataType = "Integer"),
  705. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  706. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  707. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  708. })
  709. @PostMapping("/getDecomposedPlan")
  710. public RESTfulResult getDecomposedPlan(@RequestBody(required = false) Map<String, Object> mapValue,
  711. Integer apiId,
  712. Integer pageNum,
  713. Integer pageSize,
  714. Integer planId,
  715. Integer status) {
  716. return tmsTruckFeign.getDecomposedPlan(mapValue == null? new HashMap<>() : mapValue, apiId, pageNum, pageSize, planId, status);
  717. }
  718. //********************************************omsTruckOrderController*****************************
  719. @ApiOperation(value = "查询所有运输订单")
  720. @ApiImplicitParams({
  721. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  722. @ApiImplicitParam(name = "apiId(86)", value = "动态表头", required = false, dataType = "Integer"),
  723. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  724. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  725. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  726. })
  727. @PostMapping("/getAllTruckOrder")
  728. public RESTfulResult getAllTruckOrder(@RequestBody(required = false) Map<String, Object> mapValue,
  729. Integer apiId,
  730. Integer pageNum,
  731. Integer pageSize,
  732. Integer orderStatus,
  733. Integer planId,
  734. Integer orderType) {
  735. return tmsTruckFeign.getAllTruckOrder(mapValue == null? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderStatus, planId, orderType);
  736. }
  737. @ApiOperation(value = "不适用表头返回数据")
  738. @ApiImplicitParams({
  739. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  740. })
  741. @PostMapping("/getAllTruckOrderReturnListMap")
  742. public RESTfulResult getAllTruckOrder(Integer orderStatus, Integer planId, Integer orderType) {
  743. return tmsTruckFeign.getAllTruckOrder(orderStatus, planId, orderType);
  744. }
  745. @ApiOperation(value = "查询所有空闲的运力信息")
  746. @ApiImplicitParams({
  747. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  748. @ApiImplicitParam(name = "apiId(85)", value = "动态表头", required = false, dataType = "Integer"),
  749. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  750. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  751. })
  752. @PostMapping("/getAllCapacity")
  753. public RESTfulResult getAllCapacity(@RequestBody(required = false) Map<String, Object> mapValue,
  754. Integer apiId,
  755. Integer pageNum,
  756. Integer pageSize,
  757. Integer carrierId
  758. ) {
  759. if (mapValue == null) {
  760. mapValue = new HashMap<>();
  761. }
  762. return tmsTruckFeign.getAllCapacity(mapValue, apiId, pageNum, pageSize, carrierId);
  763. }
  764. @ApiOperation(value = "分解运输计划后 新增订单 或者直接新增订单 ")
  765. @ApiImplicitParams({
  766. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  767. })
  768. @PostMapping("/addPurOrder")
  769. public RESTfulResult addPurOrder(@RequestBody(required = false) Map<String, Object> mapValue) {
  770. return tmsTruckFeign.addPurOrder(mapValue);
  771. }
  772. // == null ? new HashMap<>() : mapValue
  773. @ApiOperation(value = "修改分派计划")
  774. @PostMapping("/updateOrder")
  775. public RESTfulResult updateOrder(@RequestBody Map<String, Object> map) {
  776. return tmsTruckFeign.updateOrder(map);
  777. }
  778. @ApiOperation(value = "派单")
  779. @PostMapping("/dispatchOrder/{orderId}")
  780. public RESTfulResult dispatchOrder(@PathVariable("orderId") Integer orderId) {
  781. return tmsTruckFeign.dispatchOrder(orderId);
  782. }
  783. @ApiOperation(value = "逻辑删除运单")
  784. @ApiImplicitParams({
  785. @ApiImplicitParam(name = "planId", value = "运输计划Id", required = false, dataType = "Integer"),
  786. })
  787. @PostMapping("/deleteOrder")
  788. public RESTfulResult deleteOrder(@RequestBody(required = false) Map<String, Object> map,
  789. Integer planId) {
  790. return tmsTruckFeign.deleteOrder(map, planId);
  791. }
  792. @ApiOperation(value = "司机接收、拒绝接单")
  793. @ApiImplicitParams({
  794. @ApiImplicitParam(name = "orderId", value = "运输订单Id", required = false, dataType = "Integer"),
  795. })
  796. @PostMapping("/driverReceiveOrRefuse/{orderId}")
  797. public RESTfulResult driverReceiveOrRefuse(@PathVariable("orderId") Integer orderId, Integer orderReceiveStatus) {
  798. return tmsTruckFeign.driverReceiveOrRefuse(orderId, orderReceiveStatus);
  799. }
  800. @ApiOperation(value="司机接单信息")
  801. @ApiImplicitParams({
  802. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  803. @ApiImplicitParam(name = "apiId(117)", value = "动态表头", required = false, dataType = "Integer"),
  804. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  805. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  806. })
  807. @PostMapping("/getReceiveRefuseOrder/{orderReceiveStatus}")
  808. public RESTfulResult getReceiveRefuseOrder(@RequestBody(required=false) Map<String,Object> mapValue,
  809. Integer apiId,
  810. Integer pageNum,
  811. Integer pageSize,
  812. @PathVariable Integer orderReceiveStatus,
  813. Integer orderType,
  814. Integer orderStatus
  815. ){
  816. return tmsTruckFeign.getReceiveRefuseOrder(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum,
  817. pageSize, orderReceiveStatus, orderType, orderStatus);
  818. }
  819. @ApiOperation(value="司机APP端调用接口查询数据 4 已下发 5 已接收")
  820. @ApiImplicitParams({
  821. @ApiImplicitParam(name = "capacityNumber", value = "车牌号", required = false, dataType = "String"),
  822. })
  823. @PostMapping("/sendMesToDriver")
  824. public RESTfulResult sendMesToDriver(String capacityNumber, Integer orderStatus){
  825. return tmsTruckFeign.sendMesToDriver(capacityNumber, orderStatus);
  826. }
  827. @ApiOperation(value="通过车牌获取所有已拒绝的订单")
  828. @ApiImplicitParams({
  829. @ApiImplicitParam(name = "capacityNumber", value = "车牌号", required = false, dataType = "String"),
  830. })
  831. @PostMapping("/getRefuseOrderByCapacityNum")
  832. public RESTfulResult sendMesToDriver(String capacityNumber){
  833. return tmsTruckFeign.sendMesToDriver(capacityNumber);
  834. }
  835. @ApiOperation(value="通过运输订单ID查询运单信息 包含各个作业路径")
  836. @ApiImplicitParams({
  837. @ApiImplicitParam(name = "orderId", value = "订单Id", required = false, dataType = "Integer"),
  838. })
  839. @PostMapping("/getOrderMesByOrderNum/{orderId}")
  840. public RESTfulResult getOrderMesByOrderNum(@PathVariable("orderId") Integer orderId){
  841. return tmsTruckFeign.getOrderMesByOrderNum(orderId);
  842. }
  843. @ApiOperation(value="通过运输订单ID查询实绩地点和时间")
  844. @ApiImplicitParams({
  845. @ApiImplicitParam(name = "orderId", value = "运输订单Id", required = false, dataType = "Integer"),
  846. })
  847. @PostMapping("/selectPlaceAndTime/{orderId}")
  848. public RESTfulResult selectPlaceAndTime(@PathVariable("orderId") Integer orderId){
  849. return tmsTruckFeign.selectPlaceAndTime(orderId);
  850. }
  851. @ApiOperation(value="通过运输订单ID查询运单信息")
  852. @PostMapping("/selectOrderByOrderId/{orderId}")
  853. public RESTfulResult selectOrderByOrderId(@PathVariable("orderId") Integer orderId){
  854. return tmsTruckFeign.selectOrderByOrderId(orderId);
  855. }
  856. @ApiOperation(value="查看运输派单")
  857. @ApiImplicitParams({
  858. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  859. @ApiImplicitParam(name = "apiId(117)", value = "动态表头", required = false, dataType = "Integer"),
  860. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  861. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  862. })
  863. @PostMapping("/getTransportDispatch/{orderReceiveStatus}")
  864. public RESTfulResult getTransportDispatch(@RequestBody(required=false) Map<String,Object> mapValue,
  865. Integer apiId,
  866. Integer pageNum,
  867. Integer pageSize,
  868. @PathVariable Integer orderReceiveStatus,
  869. Integer orderType,
  870. Integer orderStatus){
  871. return tmsTruckFeign.getTransportDispatch(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,
  872. orderReceiveStatus, orderType, orderStatus);
  873. }
  874. //******************************************TmstruckLoadResultController***********************************
  875. @ApiOperation(value="查询所有装车实绩")
  876. @ApiImplicitParams({
  877. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  878. @ApiImplicitParam(name = "apiId(91)", value = "动态表头", required = false, dataType = "Integer"),
  879. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  880. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  881. })
  882. @PostMapping("/getAllLoadResult")
  883. public RESTfulResult getAllLoadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  884. Integer apiId,
  885. Integer pageNum,
  886. Integer pageSize,
  887. Integer status ){
  888. return tmsTruckFeign.getAllLoadResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, status);
  889. }
  890. @ApiOperation(value="新增汽车装车实绩")
  891. @ApiImplicitParams({
  892. @ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
  893. })
  894. @PostMapping("/addLoadResult")
  895. public RESTfulResult addLoadResult(@RequestBody(required=false) Map<String,Object> mapValue){
  896. return tmsTruckFeign.addLoadResult(mapValue);
  897. }
  898. @ApiOperation(value="修改汽车装车实绩")
  899. @ApiImplicitParams({
  900. @ApiImplicitParam(name = "tmstruckLoadResult", value = "装车作业实绩对象", required = false, dataType = "TmstruckLoadResult"),
  901. })
  902. @PostMapping("/updateLoadResult")
  903. public RESTfulResult updateLoadResult(@RequestBody Map<String, Object> map){
  904. return tmsTruckFeign.updateLoadResult(map);
  905. }
  906. @ApiOperation(value="通过ID查询装车实绩 ")
  907. @ApiImplicitParams({
  908. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  909. })
  910. @PostMapping("/getLoadResultById/{resultId}")
  911. public RESTfulResult getLoadResultById(@PathVariable("resultId") Integer resultId){
  912. return tmsTruckFeign.getLoadResultById(resultId);
  913. }
  914. @ApiOperation(value="逻辑删除车装车实绩")
  915. @ApiImplicitParams({
  916. @ApiImplicitParam(name = "tmstruckLoadResult", value = "装车作业实绩对象", required = false, dataType = "TmstruckLoadResult"),
  917. })
  918. @PostMapping("/deleteLoadResult/{resultId}")
  919. public RESTfulResult deleteLoadResult(@PathVariable("resultId")Integer resultId){
  920. return tmsTruckFeign.deleteLoadResult(resultId);
  921. }
  922. //***************************************TmstruckEnfactoryResultController***************************
  923. @ApiOperation(value="查询所有的进厂实绩")
  924. @ApiImplicitParams({
  925. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  926. @ApiImplicitParam(name = "apiId(99)", value = "动态表头", required = false, dataType = "Integer"),
  927. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  928. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  929. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  930. })
  931. @PostMapping("/getAllEnFactoryResult")
  932. public RESTfulResult getAllEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  933. Integer apiId,
  934. Integer pageNum,
  935. Integer pageSize
  936. ){
  937. return tmsTruckFeign.getAllEnFactoryResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  938. }
  939. @ApiOperation(value="通过采集系统传来的数据新增进厂作业实绩")
  940. @ApiImplicitParams({
  941. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  942. })
  943. @PostMapping("/addEnFactoryResult")
  944. public RESTfulResult addEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue){
  945. return tmsTruckFeign.addEnFactoryResult(mapValue);
  946. }
  947. @ApiOperation(value="PDA扫描更新进厂作业实绩")
  948. @ApiImplicitParams({
  949. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  950. })
  951. @PostMapping("/updateEnactoryResult")
  952. public RESTfulResult updateEnactoryResult(@RequestBody(required=false) Map<String,Object> mapValue){
  953. return tmsTruckFeign.updateEnactoryResult(mapValue);
  954. }
  955. //***************************************TmstruckWeightResultController***************************
  956. @ApiOperation(value="查询计毛实绩")
  957. @ApiImplicitParams({
  958. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  959. @ApiImplicitParam(name = "apiId(102)", value = "动态表头", required = false, dataType = "Integer"),
  960. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  961. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  962. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  963. })
  964. @PostMapping("/getAllJiMaoResult")
  965. public RESTfulResult getAllJiMaoResult(@RequestBody(required=false) Map<String,Object> mapValue,
  966. Integer apiId,
  967. Integer pageNum,
  968. Integer pageSize){
  969. return tmsTruckFeign.getAllJiMaoResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  970. }
  971. @ApiOperation(value="查询计皮实绩")
  972. @ApiImplicitParams({
  973. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  974. @ApiImplicitParam(name = "apiId(104)", value = "动态表头", required = false, dataType = "Integer"),
  975. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  976. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  977. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  978. })
  979. @PostMapping("/getAllJiPiResult")
  980. public RESTfulResult getAllJiPiResult(@RequestBody(required=false) Map<String,Object> mapValue,
  981. Integer apiId,
  982. Integer pageNum,
  983. Integer pageSize) {
  984. return tmsTruckFeign.getAllJiPiResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  985. }
  986. @ApiOperation(value="采集新增计毛实绩 ")
  987. @ApiImplicitParams({
  988. @ApiImplicitParam(name = "mapValue", value = "采集的数据", required = false, dataType = "Map"),
  989. })
  990. @PostMapping("/addJiMaoResult")
  991. public RESTfulResult addJiMaoResult(@RequestBody Map<String, Object> mapValue){
  992. return tmsTruckFeign.addJiMaoResult(mapValue);
  993. }
  994. @ApiOperation(value="采集新增计皮实绩 ")
  995. @ApiImplicitParams({
  996. @ApiImplicitParam(name = "mapValue", value = "采集的数据", required = false, dataType = "Map"),
  997. })
  998. @PostMapping("/addJiPiResult")
  999. public RESTfulResult addJiPiResult(@RequestBody Map<String, Object> mapValue){
  1000. return tmsTruckFeign.addJiPiResult(mapValue);
  1001. }
  1002. //****************************************TmstruckUnloadResultController*******************************
  1003. @ApiOperation(value="查询卸货实绩")
  1004. @ApiImplicitParams({
  1005. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1006. @ApiImplicitParam(name = "apiId(103)", value = "动态表头", required = false, dataType = "Integer"),
  1007. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1008. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1009. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1010. })
  1011. @PostMapping("/getUnloadResult")
  1012. public RESTfulResult getUnloadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1013. Integer apiId,
  1014. Integer pageNum,
  1015. Integer pageSize
  1016. ){
  1017. return tmsTruckFeign.getUnloadResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  1018. }
  1019. @ApiOperation(value="更新卸货实绩 实际上是更新实绩")
  1020. @ApiImplicitParams({
  1021. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1022. })
  1023. @PostMapping("/addUnloadResult")
  1024. public RESTfulResult addUnloadResult(@RequestBody Map<String, Object> mapValue){
  1025. return tmsTruckFeign.addUnloadResult(mapValue);
  1026. }
  1027. //****************************************TmstruckReceiptResultController*******************************
  1028. @ApiOperation(value="查询收货实绩")
  1029. @ApiImplicitParams({
  1030. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1031. @ApiImplicitParam(name = "apiId(107)", value = "动态表头", required = false, dataType = "Integer"),
  1032. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1033. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1034. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1035. })
  1036. @PostMapping("/getReceiveResult")
  1037. public RESTfulResult getReceiveResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1038. Integer apiId,
  1039. Integer pageNum,
  1040. Integer pageSize
  1041. ){
  1042. return tmsTruckFeign.getReceiveResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  1043. }
  1044. //****************************************TmstruckLeaveFactoryResultController*******************************
  1045. @ApiOperation(value="查询出厂实绩")
  1046. @ApiImplicitParams({
  1047. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1048. @ApiImplicitParam(name = "apiId(110)", value = "动态表头", required = false, dataType = "Integer"),
  1049. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1050. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1051. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1052. })
  1053. @PostMapping("/getLeaveFactoryResult")
  1054. public RESTfulResult getLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1055. Integer apiId,
  1056. Integer pageNum,
  1057. Integer pageSize
  1058. ){
  1059. return tmsTruckFeign.getLeaveFactoryResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  1060. }
  1061. @ApiOperation(value="PAD扫描汽车出厂实绩")
  1062. @ApiImplicitParams({
  1063. @ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
  1064. })
  1065. @PostMapping("/addLeaveFactoryResult")
  1066. public RESTfulResult addLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue){
  1067. return tmsTruckFeign.addLeaveFactoryResult(mapValue);
  1068. }
  1069. //****************************************TmstruckMeasureCommissionController*******************************
  1070. @ApiOperation(value="查询计量委托 ")
  1071. @ApiImplicitParams({
  1072. @ApiImplicitParam(name = "resultId", value = "装车作业实绩ID", required = false, dataType = "Integer"),
  1073. })
  1074. @PostMapping("/getAllMeasureCommission/{type}")
  1075. public RESTfulResult getAllMeasureCommission(@PathVariable("type") Integer type){
  1076. return tmsTruckFeign.getAllMeasureCommission(type);
  1077. }
  1078. //****************************************TmstruckQualityResultController*******************************
  1079. @ApiOperation(value="查询所有的质检作业")
  1080. @ApiImplicitParams({
  1081. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  1082. @ApiImplicitParam(name = "apiId(111)", value = "动态表头", required = false, dataType = "Integer"),
  1083. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  1084. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  1085. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  1086. })
  1087. @PostMapping("/getQualityResult")
  1088. public RESTfulResult getQualityResult(@RequestBody(required=false) Map<String,Object> mapValue,
  1089. Integer apiId,
  1090. Integer pageNum,
  1091. Integer pageSize
  1092. ){
  1093. return tmsTruckFeign.getQualityResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize);
  1094. }
  1095. @ApiOperation(value="通过ID获取质检实绩 ")
  1096. @ApiImplicitParams({
  1097. @ApiImplicitParam(name = "resultId", value = "质检作业实绩ID", required = false, dataType = "Integer"),
  1098. })
  1099. @PostMapping("/getQualityResultById/{resultId}")
  1100. public RESTfulResult getQualityResultById(@PathVariable("resultId") Integer resultId){
  1101. return tmsTruckFeign.getQualityResultById(resultId);
  1102. }
  1103. @ApiOperation(value="修改质检实绩 ")
  1104. @ApiImplicitParams({
  1105. @ApiImplicitParam(name = "resultId", value = "质检作业实绩ID", required = false, dataType = "Integer"),
  1106. })
  1107. @PostMapping("/updateQualityResult")
  1108. public RESTfulResult updateQualityResult(@RequestBody(required=false) Map<String,Object> mapValue){
  1109. return tmsTruckFeign.updateQualityResult(mapValue);
  1110. }
  1111. }