TMSController.java 60 KB

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