BMSController.java 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.feign.BmsshipFeign;
  3. import com.steerinfo.dil.feign.BmstrainFeign;
  4. import com.steerinfo.dil.feign.BmstruckFeign;
  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.ApiModelProperty;
  10. import io.swagger.annotations.ApiOperation;
  11. import io.swagger.models.auth.In;
  12. import org.springframework.beans.factory.annotation.Autowired;
  13. import org.springframework.http.MediaType;
  14. import org.springframework.web.bind.annotation.*;
  15. import org.springframework.web.multipart.MultipartFile;
  16. import java.math.BigDecimal;
  17. import java.util.HashMap;
  18. import java.util.List;
  19. import java.util.Map;
  20. /**
  21. * @author hujianguo
  22. * @create 2021-09-22 17:10
  23. */
  24. @RestController
  25. @RequestMapping("${api.version}/bms")
  26. public class BMSController extends BaseRESTfulController {
  27. @Autowired
  28. BmsshipFeign bmsshipFeign;
  29. @Autowired
  30. BmstrainFeign bmstrainFeign;
  31. @Autowired
  32. BmstruckFeign bmstruckFeign;
  33. /**
  34. * 水运结算
  35. *
  36. * @param mapValue
  37. * @param apiId
  38. * @param pageNum
  39. * @param pageSize
  40. * @return
  41. */
  42. @PostMapping("getDetailsOrderList")
  43. @ApiOperation(value = "展示详单列表")
  44. public RESTfulResult getDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  45. Integer pageNum,
  46. Integer pageSize,
  47. Integer apiId,
  48. String con) {
  49. if (mapValue == null) {
  50. mapValue = new HashMap<>();
  51. }
  52. return bmsshipFeign.getDetailsOrderList(mapValue, pageNum, pageSize, apiId, con);
  53. }
  54. @PostMapping("getBatch")
  55. @ApiOperation(value = "展示批次信息")
  56. public RESTfulResult getBatch(@RequestBody(required = false) Map<String, Object> mapValue,
  57. Integer pageNum,
  58. Integer pageSize,
  59. Integer apiId,
  60. String con) {
  61. if (mapValue == null) {
  62. mapValue = new HashMap<>();
  63. }
  64. return bmsshipFeign.getBatch(mapValue, pageNum, pageSize, apiId,con);
  65. }
  66. @PostMapping("getPortHandlingFeeList")
  67. @ApiOperation(value = "展示批次信息")
  68. public RESTfulResult getPortHandlingFeeList(@RequestBody(required = false) Map<String, Object> mapValue,
  69. Integer pageNum,
  70. Integer pageSize,
  71. Integer apiId,
  72. String con) {
  73. if (mapValue == null) {
  74. mapValue = new HashMap<>();
  75. }
  76. return bmsshipFeign.getPortHandlingFeeList(mapValue, pageNum, pageSize, apiId, con);
  77. }
  78. @PostMapping("addPortHandlingFee")
  79. @ApiOperation(value = "生成港口装卸费")
  80. RESTfulResult addPortHandlingFee(@RequestBody Map<String, Object> portHandlingFee) throws Exception {
  81. return bmsshipFeign.addPortHandlingFee(portHandlingFee);
  82. }
  83. @PostMapping("updatePortHandlingFee")
  84. @ApiOperation(value = "修改港口装卸费信息")
  85. RESTfulResult updatePortHandlingFee(@RequestBody Map<String, Object> portHandlingFee) {
  86. return bmsshipFeign.updatePortHandlingFee(portHandlingFee);
  87. }
  88. @PostMapping("getFeeToUpdate/{feeId}")
  89. @ApiOperation(value = "查询修改港口装卸费数据渲染表单")
  90. RESTfulResult getFeeToUpdate(@PathVariable("feeId") BigDecimal feeId) {
  91. return bmsshipFeign.getFeeToUpdate(feeId);
  92. }
  93. @PostMapping("deletePortHandlingFee/{feeId}")
  94. @ApiOperation(value = "逻辑删除港口装卸费")
  95. RESTfulResult deletePortHandlingFee(@PathVariable("feeId") String feeId) {
  96. return bmsshipFeign.deletePortHandlingFee(feeId);
  97. }
  98. @PostMapping("deletePortHandlingFeeSecond/{feeId}")
  99. @ApiOperation(value = "逻辑删除二程港口装卸费")
  100. Map<String,Object> deletePortHandlingFeeSecond(@PathVariable("feeId") BigDecimal feeId) {
  101. return bmsshipFeign.deletePortHandlingFeeSecond(feeId);
  102. }
  103. @PostMapping("addwaterStatement")
  104. @ApiOperation(value = "修改港口装卸费信息")
  105. Map<String,Object> addwaterStatement(@RequestBody Map<String, Object> map) {
  106. return bmsshipFeign.addwaterStatement(map);
  107. }
  108. @PostMapping("getUncomplateDetailsOrderList")
  109. @ApiOperation(value = "展示未生成账单的详单信息")
  110. public RESTfulResult getUncomplateDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  111. Integer pageNum,
  112. Integer pageSize,
  113. Integer apiId,
  114. String con) {
  115. if (mapValue == null) {
  116. mapValue = new HashMap<>();
  117. }
  118. return bmsshipFeign.getUncomplateDetailsOrderList(mapValue, pageNum, pageSize, apiId, con);
  119. }
  120. @PostMapping("addDetailsOrder/{resultId}")
  121. @ApiOperation(value = "生成水运计费详单")
  122. RESTfulResult addDetailsOrder(@PathVariable("resultId") BigDecimal resultId) throws Exception {
  123. return bmsshipFeign.addDetailsOrder(resultId);
  124. }
  125. @PostMapping("getStatementList")
  126. @ApiOperation(value = "展示水运费和水分质检费账单信息")
  127. public RESTfulResult getStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
  128. Integer pageNum,
  129. Integer pageSize,
  130. Integer apiId,
  131. String con) {
  132. if (mapValue == null) {
  133. mapValue = new HashMap<>();
  134. }
  135. return bmsshipFeign.getStatementList(mapValue, pageNum, pageSize, apiId, con);
  136. }
  137. @PostMapping("getLossStatementList")
  138. @ApiOperation(value = "展示途损费账单信息")
  139. public RESTfulResult getLossStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
  140. Integer pageNum,
  141. Integer pageSize,
  142. Integer apiId,
  143. String con) {
  144. if (mapValue == null) {
  145. mapValue = new HashMap<>();
  146. }
  147. return bmsshipFeign.getLossStatementList(mapValue, pageNum, pageSize, apiId, con);
  148. }
  149. @PostMapping("getWaterResult")
  150. @ApiOperation(value = "展示水分质检实绩")
  151. public RESTfulResult getWaterResult(@RequestBody(required = false) Map<String, Object> mapValue,
  152. Integer pageNum,
  153. Integer pageSize,
  154. Integer apiId) {
  155. if (mapValue == null) {
  156. mapValue = new HashMap<>();
  157. }
  158. return bmsshipFeign.getWaterResult(mapValue, pageNum, pageSize, apiId);
  159. }
  160. @PostMapping("addStatement")
  161. @ApiOperation(value = "生成水运费账单")
  162. RESTfulResult addStatement(@RequestBody List<Map<String, Object>> mapList) throws Exception {
  163. return bmsshipFeign.addStatement(mapList);
  164. }
  165. @PostMapping("addWaterStatement")
  166. @ApiOperation(value = "生成水分质检账单")
  167. RESTfulResult addWaterStatement(@RequestBody List<Map<String, Object>> mapList) throws Exception {
  168. return bmsshipFeign.addWaterStatement(mapList);
  169. }
  170. @PostMapping("addLossStatement")
  171. @ApiOperation(value = "生成途损账单")
  172. RESTfulResult addLossStatement(@RequestBody Map<String, Object> map) throws Exception {
  173. return bmsshipFeign.addLossStatement(map);
  174. }
  175. @PostMapping("getStatementDetailsOrderList")
  176. @ApiOperation(value = "展示账单下的详单")
  177. public RESTfulResult getStatementDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  178. Integer batchId,
  179. Integer pageNum,
  180. Integer pageSize,
  181. Integer apiId,
  182. Integer statementId,
  183. String con) {
  184. if (mapValue == null) {
  185. mapValue = new HashMap<>();
  186. }
  187. return bmsshipFeign.getStatementDetailsOrderList(new BigDecimal(batchId), mapValue, pageNum, pageSize, apiId, new BigDecimal(statementId), con);
  188. }
  189. @PostMapping("getShipResult")
  190. @ApiOperation(value = "展示详单下的船运实绩")
  191. public RESTfulResult getShipResult(@RequestBody(required = false) Map<String, Object> mapValue,
  192. BigDecimal batchId,
  193. Integer pageNum,
  194. Integer pageSize,
  195. Integer apiId) {
  196. if (mapValue == null) {
  197. mapValue = new HashMap<>();
  198. }
  199. return bmsshipFeign.getShipResult(batchId, mapValue, pageNum, pageSize, apiId);
  200. }
  201. @PostMapping("getShipFeesFormula")
  202. @ApiOperation(value = "查询水运费计算公式")
  203. public RESTfulResult getShipFeesFormula() {
  204. return bmsshipFeign.getShipFeesFormula();
  205. }
  206. @PostMapping("getLossFeesFormula")
  207. @ApiOperation(value = "查询途损费计算公式")
  208. public RESTfulResult getLossFeesFormula() {
  209. return bmsshipFeign.getLossFeesFormula();
  210. }
  211. @PostMapping("getWaterFeesFormula")
  212. @ApiOperation(value = "查询水分质检计算公式")
  213. public RESTfulResult getWaterFeesFormula() {
  214. return bmsshipFeign.getWaterFeesFormula();
  215. }
  216. @PostMapping("getTrainDetailsOrderList")
  217. @ApiOperation(value = "展示火运详单")
  218. public RESTfulResult getTrainDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  219. Integer pageNum,
  220. Integer pageSize,
  221. Integer apiId,
  222. String con) {
  223. if (mapValue == null) {
  224. mapValue = new HashMap<>();
  225. }
  226. return bmstrainFeign.getTrainDetailsOrderList(mapValue, pageNum, pageSize, apiId, con);
  227. }
  228. @PostMapping("getUncomplateTrainDetailsList")
  229. @ApiOperation(value = "展示未转账单的火运详单")
  230. public RESTfulResult getUncomplateTrainDetailsList(@RequestBody(required = false) Map<String, Object> mapValue,
  231. Integer pageNum,
  232. Integer pageSize,
  233. Integer apiId,
  234. String con) {
  235. if (mapValue == null) {
  236. mapValue = new HashMap<>();
  237. }
  238. return bmstrainFeign.getUncomplateTrainDetailsList(mapValue, pageNum, pageSize, apiId, con);
  239. }
  240. @PostMapping("getTrainResultList")
  241. @ApiOperation(value = "展示火运实绩")
  242. public RESTfulResult getTrainResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  243. Integer pageNum,
  244. Integer pageSize,
  245. Integer apiId) {
  246. if (mapValue == null) {
  247. mapValue = new HashMap<>();
  248. }
  249. return bmstrainFeign.getTrainResultList(mapValue, pageNum, pageSize, apiId);
  250. }
  251. @PostMapping("addTrainDetails")
  252. @ApiOperation(value = "生成火运详单")
  253. RESTfulResult addTrainDetails(@RequestBody Map<String, Object> map) {
  254. return bmstrainFeign.addTrainDetails(map);
  255. }
  256. @PostMapping("getTrainStatementList")
  257. @ApiOperation(value = "展示火运账单列表")
  258. public RESTfulResult getTrainStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
  259. Integer pageNum,
  260. Integer pageSize,
  261. Integer apiId,
  262. String con) {
  263. if (mapValue == null) {
  264. mapValue = new HashMap<>();
  265. }
  266. return bmstrainFeign.getTrainStatementList(mapValue, pageNum, pageSize, apiId, con);
  267. }
  268. @PostMapping("getStatementTrainResultList")
  269. @ApiOperation(value = "展示未转账单的火运详单")
  270. public RESTfulResult getStatementTrainResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  271. Integer pageNum,
  272. Integer pageSize,
  273. Integer apiId,
  274. Integer detailsId) {
  275. if (mapValue == null) {
  276. mapValue = new HashMap<>();
  277. }
  278. return bmstrainFeign.getStatementTrainResultList(mapValue, pageNum, pageSize, apiId, detailsId);
  279. }
  280. @PostMapping("getComplateTrainDetailsList")
  281. @ApiOperation(value = "展示账单下的详单")
  282. public RESTfulResult getComplateTrainDetailsList(Integer batchId,
  283. @RequestBody(required = false) Map<String, Object> mapValue,
  284. Integer pageNum,
  285. Integer pageSize,
  286. Integer apiId,
  287. Integer statementId,
  288. String con) {
  289. if (mapValue == null) {
  290. mapValue = new HashMap<>();
  291. }
  292. return bmstrainFeign.getComplateTrainDetailsList(new BigDecimal(batchId), mapValue, pageNum, pageSize, apiId, new BigDecimal(statementId), con);
  293. }
  294. @PostMapping("addTrainStatement")
  295. @ApiOperation(value = "生成火运费账单")
  296. RESTfulResult addTrainStatement(@RequestBody List<Map<String, Object>> mapList) {
  297. return bmstrainFeign.addTrainStatement(mapList);
  298. }
  299. @ApiModelProperty(value = "展示销售火运结算列表")
  300. @ApiImplicitParams({
  301. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  302. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  303. @ApiImplicitParam(name = "apiId", value = "180", required = false, dataType = "BigDecimal")
  304. })
  305. @PostMapping("/getSettlementList")
  306. public RESTfulResult getSettlementList(@RequestBody(required = false) Map<String, Object> mapValue,
  307. Integer pageNum,
  308. Integer pageSize,
  309. Integer apiId,
  310. String con) {
  311. if (mapValue == null) {
  312. mapValue = new HashMap<>();
  313. }
  314. return bmstrainFeign.getSettlementList(mapValue, pageNum, pageSize, apiId, con);
  315. }
  316. @ApiModelProperty(value = "新增销售火运结算")
  317. @ApiImplicitParams({
  318. @ApiImplicitParam(name = "bmstrainSettlement", value = "销售火运结算实体", required = false, dataType = "BmstrainSettlement"),
  319. })
  320. @PostMapping("/addTrainSettlement")
  321. public Map<String, Object> addTrainSettlement(@RequestBody Map<String, Object> bmstrainSettlement) {
  322. return bmstrainFeign.addTrainSettlement(bmstrainSettlement);
  323. }
  324. @ApiModelProperty(value = "修改销售火运结算")
  325. @ApiImplicitParams({
  326. @ApiImplicitParam(name = "bmstrainSettlement", value = "销售火运结算实体", required = false, dataType = "BmstrainSettlement"),
  327. })
  328. @PostMapping("/updateTrainSettlement")
  329. public Map<String, Object> updateTrainSettlement(@RequestBody Map<String, Object> bmstrainSettlement) {
  330. return bmstrainFeign.updateTrainSettlement(bmstrainSettlement);
  331. }
  332. @ApiModelProperty(value = "逻辑删除销售火运结算")
  333. @ApiImplicitParams({
  334. @ApiImplicitParam(name = "settlementId", value = "结算id", required = false, dataType = "BigDecimal"),
  335. })
  336. @PostMapping("/deleteTrainSettlement/{settlementId}")
  337. public Map<String, Object> deleteTrainSettlement(@PathVariable("settlementId") BigDecimal settlementId) {
  338. return bmstrainFeign.deleteTrainSettlement(settlementId);
  339. }
  340. @ApiModelProperty(value = "得到修改渲染")
  341. @ApiImplicitParams({
  342. @ApiImplicitParam(name = "settlementId", value = "结算id", required = false, dataType = "BigDecimal"),
  343. })
  344. @PostMapping("/selectTrainSettlement/{settlementId}")
  345. public Map<String, Object> selectTrainSettlement(@PathVariable("settlementId") Integer settlementId) {
  346. return bmstrainFeign.selectTrainSettlement(new BigDecimal(settlementId));
  347. }
  348. @PostMapping("getTruckDetailsOrderList")
  349. @ApiOperation(value = "展示汽运详单信息")
  350. public RESTfulResult getTruckDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  351. Integer pageNum,
  352. Integer pageSize,
  353. Integer apiId,
  354. Integer orderType,
  355. String carrierSsoId) {
  356. if (mapValue == null) {
  357. mapValue = new HashMap<>();
  358. }
  359. return bmstruckFeign.getTruckDetailsOrderList(mapValue, pageNum, pageSize, apiId, orderType,carrierSsoId);
  360. }
  361. @PostMapping("getTruckResultList")
  362. @ApiOperation(value = "展示汽运详单信息")
  363. public RESTfulResult getTruckResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  364. Integer pageNum,
  365. Integer pageSize,
  366. Integer apiId,
  367. Integer orderId) {
  368. if (mapValue == null) {
  369. mapValue = new HashMap<>();
  370. }
  371. return bmstruckFeign.getTruckResultList(mapValue, pageNum, pageSize, apiId, new BigDecimal(orderId));
  372. }
  373. @PostMapping("getTruckStatementList")
  374. @ApiOperation(value = "展示汽运账单信息")
  375. public RESTfulResult getTruckStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
  376. Integer pageNum,
  377. Integer pageSize,
  378. Integer apiId) {
  379. if (mapValue == null) {
  380. mapValue = new HashMap<>();
  381. }
  382. return bmstruckFeign.getTruckStatementList(mapValue, pageNum, pageSize, apiId);
  383. }
  384. @PostMapping("getInvoiceList")
  385. @ApiOperation(value = "展示发票")
  386. public RESTfulResult getInvoiceList(@RequestBody(required = false) Map<String, Object> mapValue,
  387. Integer pageNum,
  388. Integer pageSize,
  389. Integer apiId,
  390. String con) {
  391. if (mapValue == null) {
  392. mapValue = new HashMap<>();
  393. }
  394. return bmstruckFeign.getInvoiceList(mapValue, pageNum, pageSize, apiId, con);
  395. }
  396. @PostMapping("getSaleTruckStatementDetailsOrderList")
  397. @ApiOperation(value = "展示账单下的详单")
  398. public RESTfulResult getSaleTruckStatementDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  399. Integer pageNum,
  400. Integer pageSize,
  401. Integer apiId,
  402. Integer statementId) {
  403. if (mapValue == null) {
  404. mapValue = new HashMap<>();
  405. }
  406. return bmstruckFeign.getSaleTruckStatementDetailsOrderList(mapValue, pageNum, pageSize, apiId, new BigDecimal(statementId));
  407. }
  408. @PostMapping("getUnFinishedTruckDetailsOrderList")
  409. @ApiOperation(value = "展示汽运未生成账单的详单信息")
  410. public RESTfulResult getUnFinishedTruckDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  411. Integer pageNum,
  412. Integer pageSize,
  413. Integer apiId,
  414. Integer orderType,
  415. String carrierSsoId) {
  416. if (mapValue == null) {
  417. mapValue = new HashMap<>();
  418. }
  419. return bmstruckFeign.getUnFinishedTruckDetailsOrderList(mapValue, pageNum, pageSize, apiId, orderType,carrierSsoId);
  420. }
  421. @PostMapping("addBmstruckInvoice")
  422. @ApiOperation(value = "新增发票")
  423. RESTfulResult addBmstruckInvoice(@RequestBody Map<String, Object> mapVal) {
  424. return bmstruckFeign.addBmstruckInvoice(mapVal);
  425. }
  426. @PostMapping("updateBmstruckCheck")
  427. @ApiOperation(value = "修改审核状态")
  428. RESTfulResult updateBmstruckCheck(@RequestParam Integer statementId,
  429. @RequestParam Integer status,
  430. @RequestParam Integer person) {
  431. return bmstruckFeign.updateBmstruckCheck(new BigDecimal(statementId), status, person);
  432. }
  433. @PostMapping("getSmallTruckFormula")
  434. @ApiOperation(value = "查询销售汽运离100KM差距10KM内计费公式")
  435. RESTfulResult getSmallTruckFormula() {
  436. return bmstruckFeign.getSmallTruckFormula();
  437. }
  438. @PostMapping("getBigTruckFormula")
  439. @ApiOperation(value = "查询销售汽运离100KM差距10KM外计费公式")
  440. RESTfulResult getBigTruckFormula() {
  441. return bmstruckFeign.getBigTruckFormula();
  442. }
  443. @PostMapping("addTruckStatement")
  444. @ApiOperation(value = "新增汽运详单")
  445. RESTfulResult addTruckStatement(@RequestBody List<Map<String, Object>> mapList) {
  446. return bmstruckFeign.addTruckStatement(mapList);
  447. }
  448. @PostMapping("addTruckDetailsOrder/{orderId}")
  449. @ApiOperation(value = "新增汽运详单")
  450. RESTfulResult addTruckDetailsOrder(@PathVariable("orderId") BigDecimal orderId) {
  451. return bmstruckFeign.addTruckDetailsOrder(orderId);
  452. }
  453. /**
  454. * 展示汽运未生成账单的详单信息
  455. *
  456. * @param mapVal
  457. * @param pageNum
  458. * @param pageSize
  459. * @param apiId
  460. * @return
  461. */
  462. @ApiModelProperty(value = "展示内转汽运未生成账单的作业详单信息")
  463. @ApiImplicitParams({
  464. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  465. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  466. @ApiImplicitParam(name = "apiId", value = "还没定", required = false, dataType = "BigDecimal"),
  467. @ApiImplicitParam(name = "orderType", value = "1:计时,2:计数,3:计重,4:包月", required = false, dataType = "Integer")
  468. })
  469. @PostMapping("/getUnFinishedConvertedTruckDetailsOrderList")
  470. public RESTfulResult getUnFinishedConvertedTruckDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapVal,
  471. Integer pageNum,
  472. Integer pageSize,
  473. Integer apiId,
  474. Integer orderType) {
  475. if (mapVal == null) {
  476. mapVal = new HashMap<>();
  477. }
  478. return bmstruckFeign.getUnFinishedConvertedTruckDetailsOrderList(mapVal, pageNum, pageSize, apiId, new BigDecimal(orderType));
  479. }
  480. @PostMapping("/addConvertedDetailsOrder/{orderId}")
  481. RESTfulResult addConvertedDetailsOrder(@PathVariable("orderId") BigDecimal orderId) {
  482. return bmstruckFeign.addConvertedDetailsOrder(orderId);
  483. }
  484. /**
  485. * 生成内转汽运账单
  486. *
  487. * @param mapList
  488. * @return
  489. */
  490. @ApiModelProperty(value = "生成内转汽运账单")
  491. @PostMapping("/addConvertedTruckStatement")
  492. public RESTfulResult addConvertedTruckStatement(@RequestBody List<Map<String, Object>> mapList) {
  493. return bmstruckFeign.addConvertedTruckStatement(mapList);
  494. }
  495. /**
  496. * 删除汽运账单
  497. */
  498. @PostMapping("/deleteConvertedTruckStatement/{statementId}")
  499. public RESTfulResult deleteConvertedTruckStatement(@PathVariable("statementId") BigDecimal statementId) {
  500. return bmstruckFeign.delete(statementId);
  501. }
  502. /**
  503. * 审批计费账单
  504. */
  505. @PostMapping("/updateConvertedTruckStatement/{statementId}")
  506. public RESTfulResult updateConvertedTruckStatement(@PathVariable("statementId") BigDecimal statementId) {
  507. return bmstruckFeign.update(statementId);
  508. }
  509. /**
  510. * 审批计费账单
  511. */
  512. @PostMapping("/getBmsshipFee/{id}")
  513. public Map<String,Object> updateConvertedTruckStatement(@PathVariable("id") Integer id) {
  514. return bmsshipFeign.getBmsshipFee(id);
  515. }
  516. @PostMapping("/updateDetailsOrder")
  517. @ApiOperation(value = "修改详单")
  518. public RESTfulResult updateDetailsOrder(@RequestBody Map<String, Object> mapValue) {
  519. return bmstruckFeign.updateDetailsOrder(mapValue);
  520. }
  521. @PostMapping("/addLossFeeOfCoke")
  522. @ApiOperation(value = "增加焦炭途损费")
  523. public RESTfulResult addLossFeeOfCoke(@RequestBody Map<String, Object> map) {
  524. return bmstruckFeign.addLossFeeOfCoke(map);
  525. }
  526. @PostMapping("/addPortHandlingFeeSecond")
  527. @ApiOperation(value = "新增二程船装卸费用")
  528. public Map<String,Object> addPortHandlingFeeSecond(@RequestBody(required = false) Map<String, Object> map) {
  529. return bmsshipFeign.addPortHandlingFeeSecond(map);
  530. }
  531. @PostMapping("/uploadBmsshipOrder")
  532. @ApiOperation(value = "上传水运单图片")
  533. public Map<String,Object> uploadBmsshipOrder(@RequestParam("file") MultipartFile multipartFile) throws Exception {
  534. return bmsshipFeign.uploadBmsshipOrder(multipartFile);
  535. }
  536. //获取水运单图片
  537. @ApiOperation(value = "获取水运单图片")
  538. @ApiImplicitParams({
  539. })
  540. @PostMapping(value = "/downloadBmsshipOrder")
  541. public Map<String, Object> downloadBmsshipOrder(@RequestParam Integer resultId) {
  542. return bmsshipFeign.downloadBmsshipOrder(resultId);
  543. }
  544. /**
  545. * 展示详单信息
  546. *
  547. * @param mapVal
  548. * @param pageNum
  549. * @param pageSize
  550. * @param apiId
  551. * @return
  552. */
  553. @ApiModelProperty(value = "展示内转汽运未生成账单的作业详单信息")
  554. @ApiImplicitParams({
  555. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  556. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  557. @ApiImplicitParam(name = "apiId", value = "还没定", required = false, dataType = "BigDecimal"),
  558. @ApiImplicitParam(name = "orderType", value = "1:计时,2:计数,3:计重,4:包月", required = false, dataType = "Integer")
  559. })
  560. @PostMapping("/getInwardWeightDetailsOrder")
  561. public Map<String, Object> getInwardWeightDetailsOrder(@RequestBody(required = false) Map<String, Object> mapVal,
  562. Integer pageNum,
  563. Integer pageSize,
  564. Integer apiId,
  565. String carrierSsoId,
  566. Integer detailStatus,
  567. Integer orderType,
  568. String userId,
  569. String startTime,
  570. String endTime,
  571. String capacityNo,
  572. String shipperNames,
  573. String transRangeValues,
  574. String materialTypeNames) {
  575. if (mapVal == null) {
  576. mapVal = new HashMap<>();
  577. }
  578. return bmstruckFeign.getInwardWeightDetailsOrder(mapVal, pageNum, pageSize, apiId, carrierSsoId,detailStatus,orderType,userId, startTime,
  579. endTime,capacityNo,shipperNames,transRangeValues,materialTypeNames);
  580. }
  581. @PostMapping("/getNoInwardDetails")
  582. public Map<String,Object> getNoInwardDetails(@RequestBody(required = false) Map<String, Object> mapVal,
  583. Integer pageNum,
  584. Integer pageSize,
  585. Integer apiId,
  586. String carrierSsoId,
  587. String userId,
  588. String startTime,
  589. String endTime){
  590. if (mapVal == null) {
  591. mapVal = new HashMap<>();
  592. }
  593. return bmstruckFeign.getNoInwardDetails(mapVal, pageNum, pageSize, apiId, carrierSsoId,userId, startTime,
  594. endTime);
  595. }
  596. @PostMapping("/getInwardWeightTimeDetailsOrder")
  597. public Map<String, Object> getInwardWeightTimeDetailsOrder(@RequestBody(required = false) Map<String, Object> mapVal,
  598. Integer pageNum,
  599. Integer pageSize,
  600. Integer apiId,
  601. String carrierSsoId,
  602. Integer detailStatus,
  603. Integer orderType,
  604. String userId,
  605. String startTime,
  606. String endTime) {
  607. if (mapVal == null) {
  608. mapVal = new HashMap<>();
  609. }
  610. return bmstruckFeign.getInwardWeightTimeDetailsOrder(mapVal, pageNum, pageSize, apiId, carrierSsoId,detailStatus,orderType,userId, startTime,
  611. endTime);
  612. }
  613. @PostMapping("/selectPortFeeSecondList")
  614. public Map<String,Object> selectPortFeeSecondList(@RequestBody(required = false) Map<String, Object> mapVal,
  615. Integer pageNum,
  616. Integer pageSize,
  617. Integer apiId,
  618. String startTime,
  619. String endTime,
  620. Integer feeType){
  621. if (mapVal == null) {
  622. mapVal = new HashMap<>();
  623. }
  624. return bmsshipFeign.selectPortFeeSecondList(mapVal, pageNum, pageSize, apiId, startTime, feeType,endTime);
  625. }
  626. /**
  627. * 根据批次查火运湿吨详情
  628. * @param batchId
  629. * @return
  630. */
  631. @PostMapping("/getTrainDetailsByBatch/{batchId}")
  632. public Map<String,Object> getTrainDetailsByBatch(@PathVariable("batchId")BigDecimal batchId){
  633. return bmsshipFeign.getTrainDetailsByBatch(batchId);
  634. }
  635. /**
  636. * 根据批次查汽运湿吨详情
  637. * @param batchId
  638. * @return
  639. */
  640. @PostMapping("/getTruckDetailsByBatch/{batchId}")
  641. public Map<String,Object> getTruckDetailsByBatch(@PathVariable("batchId")BigDecimal batchId){
  642. return bmsshipFeign.getTruckDetailsByBatch(batchId);
  643. }
  644. /**
  645. * 根据批次查询装船作业
  646. * @param
  647. * @return
  648. */
  649. @PostMapping("/findLoadByBatch/{batchId}")
  650. public Map<String,Object> findLoadByBatch(@PathVariable("batchId") BigDecimal batchId){
  651. return bmsshipFeign.findLoadByBatch(batchId);
  652. }
  653. }