BMSController.java 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  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.web.bind.annotation.*;
  14. import java.math.BigDecimal;
  15. import java.util.HashMap;
  16. import java.util.List;
  17. import java.util.Map;
  18. /**
  19. * @author hujianguo
  20. * @create 2021-09-22 17:10
  21. */
  22. @RestController
  23. @RequestMapping("${api.version}/bms")
  24. public class BMSController extends BaseRESTfulController {
  25. @Autowired
  26. BmsshipFeign bmsshipFeign;
  27. @Autowired
  28. BmstrainFeign bmstrainFeign;
  29. @Autowired
  30. BmstruckFeign bmstruckFeign;
  31. /**
  32. * 水运结算
  33. *
  34. * @param mapValue
  35. * @param apiId
  36. * @param pageNum
  37. * @param pageSize
  38. * @return
  39. */
  40. @PostMapping("getDetailsOrderList")
  41. @ApiOperation(value = "展示详单列表")
  42. public RESTfulResult getDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  43. Integer pageNum,
  44. Integer pageSize,
  45. Integer apiId,
  46. String con) {
  47. if (mapValue == null) {
  48. mapValue = new HashMap<>();
  49. }
  50. return bmsshipFeign.getDetailsOrderList(mapValue, pageNum, pageSize, apiId, con);
  51. }
  52. @PostMapping("getBatch")
  53. @ApiOperation(value = "展示批次信息")
  54. public RESTfulResult getBatch(@RequestBody(required = false) Map<String, Object> mapValue,
  55. Integer pageNum,
  56. Integer pageSize,
  57. Integer apiId,
  58. String con) {
  59. if (mapValue == null) {
  60. mapValue = new HashMap<>();
  61. }
  62. return bmsshipFeign.getBatch(mapValue, pageNum, pageSize, apiId,con);
  63. }
  64. @PostMapping("getPortHandlingFeeList")
  65. @ApiOperation(value = "展示批次信息")
  66. public RESTfulResult getPortHandlingFeeList(@RequestBody(required = false) Map<String, Object> mapValue,
  67. Integer pageNum,
  68. Integer pageSize,
  69. Integer apiId,
  70. String con) {
  71. if (mapValue == null) {
  72. mapValue = new HashMap<>();
  73. }
  74. return bmsshipFeign.getPortHandlingFeeList(mapValue, pageNum, pageSize, apiId, con);
  75. }
  76. @PostMapping("addPortHandlingFee")
  77. @ApiOperation(value = "生成港口装卸费")
  78. RESTfulResult addPortHandlingFee(@RequestBody Map<String, Object> portHandlingFee) throws Exception {
  79. return bmsshipFeign.addPortHandlingFee(portHandlingFee);
  80. }
  81. @PostMapping("updatePortHandlingFee")
  82. @ApiOperation(value = "修改港口装卸费信息")
  83. RESTfulResult updatePortHandlingFee(@RequestBody Map<String, Object> portHandlingFee) {
  84. return bmsshipFeign.updatePortHandlingFee(portHandlingFee);
  85. }
  86. @PostMapping("getFeeToUpdate/{feeId}")
  87. @ApiOperation(value = "查询修改港口装卸费数据渲染表单")
  88. RESTfulResult getFeeToUpdate(@PathVariable("feeId") BigDecimal feeId) {
  89. return bmsshipFeign.getFeeToUpdate(feeId);
  90. }
  91. @PostMapping("deletePortHandlingFee/{feeId}")
  92. @ApiOperation(value = "逻辑删除港口装卸费")
  93. RESTfulResult deletePortHandlingFee(@PathVariable("feeId") String feeId) {
  94. return bmsshipFeign.deletePortHandlingFee(feeId);
  95. }
  96. @PostMapping("getUncomplateDetailsOrderList")
  97. @ApiOperation(value = "展示未生成账单的详单信息")
  98. public RESTfulResult getUncomplateDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  99. Integer pageNum,
  100. Integer pageSize,
  101. Integer apiId,
  102. String con) {
  103. if (mapValue == null) {
  104. mapValue = new HashMap<>();
  105. }
  106. return bmsshipFeign.getUncomplateDetailsOrderList(mapValue, pageNum, pageSize, apiId, con);
  107. }
  108. @PostMapping("addDetailsOrder/{resultId}")
  109. @ApiOperation(value = "生成水运计费详单")
  110. RESTfulResult addDetailsOrder(@PathVariable("resultId") BigDecimal resultId) throws Exception {
  111. return bmsshipFeign.addDetailsOrder(resultId);
  112. }
  113. @PostMapping("getStatementList")
  114. @ApiOperation(value = "展示水运费和水分质检费账单信息")
  115. public RESTfulResult getStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
  116. Integer pageNum,
  117. Integer pageSize,
  118. Integer apiId,
  119. String con) {
  120. if (mapValue == null) {
  121. mapValue = new HashMap<>();
  122. }
  123. return bmsshipFeign.getStatementList(mapValue, pageNum, pageSize, apiId, con);
  124. }
  125. @PostMapping("getLossStatementList")
  126. @ApiOperation(value = "展示途损费账单信息")
  127. public RESTfulResult getLossStatementList(@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.getLossStatementList(mapValue, pageNum, pageSize, apiId, con);
  136. }
  137. @PostMapping("getWaterResult")
  138. @ApiOperation(value = "展示水分质检实绩")
  139. public RESTfulResult getWaterResult(@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 bmsshipFeign.getWaterResult(mapValue, pageNum, pageSize, apiId);
  147. }
  148. @PostMapping("addStatement")
  149. @ApiOperation(value = "生成水运费账单")
  150. RESTfulResult addStatement(@RequestBody List<Map<String, Object>> mapList) throws Exception {
  151. return bmsshipFeign.addStatement(mapList);
  152. }
  153. @PostMapping("addWaterStatement")
  154. @ApiOperation(value = "生成水分质检账单")
  155. RESTfulResult addWaterStatement(@RequestBody List<Map<String, Object>> mapList) throws Exception {
  156. return bmsshipFeign.addWaterStatement(mapList);
  157. }
  158. @PostMapping("addLossStatement")
  159. @ApiOperation(value = "生成途损账单")
  160. RESTfulResult addLossStatement(@RequestBody Map<String, Object> map) throws Exception {
  161. return bmsshipFeign.addLossStatement(map);
  162. }
  163. @PostMapping("getStatementDetailsOrderList")
  164. @ApiOperation(value = "展示账单下的详单")
  165. public RESTfulResult getStatementDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  166. Integer batchId,
  167. Integer pageNum,
  168. Integer pageSize,
  169. Integer apiId,
  170. Integer statementId,
  171. String con) {
  172. if (mapValue == null) {
  173. mapValue = new HashMap<>();
  174. }
  175. return bmsshipFeign.getStatementDetailsOrderList(new BigDecimal(batchId), mapValue, pageNum, pageSize, apiId, new BigDecimal(statementId), con);
  176. }
  177. @PostMapping("getShipResult")
  178. @ApiOperation(value = "展示详单下的船运实绩")
  179. public RESTfulResult getShipResult(@RequestBody(required = false) Map<String, Object> mapValue,
  180. BigDecimal batchId,
  181. Integer pageNum,
  182. Integer pageSize,
  183. Integer apiId) {
  184. if (mapValue == null) {
  185. mapValue = new HashMap<>();
  186. }
  187. return bmsshipFeign.getShipResult(batchId, mapValue, pageNum, pageSize, apiId);
  188. }
  189. @PostMapping("getShipFeesFormula")
  190. @ApiOperation(value = "查询水运费计算公式")
  191. public RESTfulResult getShipFeesFormula() {
  192. return bmsshipFeign.getShipFeesFormula();
  193. }
  194. @PostMapping("getLossFeesFormula")
  195. @ApiOperation(value = "查询途损费计算公式")
  196. public RESTfulResult getLossFeesFormula() {
  197. return bmsshipFeign.getLossFeesFormula();
  198. }
  199. @PostMapping("getWaterFeesFormula")
  200. @ApiOperation(value = "查询水分质检计算公式")
  201. public RESTfulResult getWaterFeesFormula() {
  202. return bmsshipFeign.getWaterFeesFormula();
  203. }
  204. @PostMapping("getTrainDetailsOrderList")
  205. @ApiOperation(value = "展示火运详单")
  206. public RESTfulResult getTrainDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  207. Integer pageNum,
  208. Integer pageSize,
  209. Integer apiId,
  210. String con) {
  211. if (mapValue == null) {
  212. mapValue = new HashMap<>();
  213. }
  214. return bmstrainFeign.getTrainDetailsOrderList(mapValue, pageNum, pageSize, apiId, con);
  215. }
  216. @PostMapping("getUncomplateTrainDetailsList")
  217. @ApiOperation(value = "展示未转账单的火运详单")
  218. public RESTfulResult getUncomplateTrainDetailsList(@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.getUncomplateTrainDetailsList(mapValue, pageNum, pageSize, apiId, con);
  227. }
  228. @PostMapping("getTrainResultList")
  229. @ApiOperation(value = "展示火运实绩")
  230. public RESTfulResult getTrainResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  231. Integer pageNum,
  232. Integer pageSize,
  233. Integer apiId) {
  234. if (mapValue == null) {
  235. mapValue = new HashMap<>();
  236. }
  237. return bmstrainFeign.getTrainResultList(mapValue, pageNum, pageSize, apiId);
  238. }
  239. @PostMapping("addTrainDetails")
  240. @ApiOperation(value = "生成火运详单")
  241. RESTfulResult addTrainDetails(@RequestBody Map<String, Object> map) {
  242. return bmstrainFeign.addTrainDetails(map);
  243. }
  244. @PostMapping("getTrainStatementList")
  245. @ApiOperation(value = "展示火运账单列表")
  246. public RESTfulResult getTrainStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
  247. Integer pageNum,
  248. Integer pageSize,
  249. Integer apiId,
  250. String con) {
  251. if (mapValue == null) {
  252. mapValue = new HashMap<>();
  253. }
  254. return bmstrainFeign.getTrainStatementList(mapValue, pageNum, pageSize, apiId, con);
  255. }
  256. @PostMapping("getStatementTrainResultList")
  257. @ApiOperation(value = "展示未转账单的火运详单")
  258. public RESTfulResult getStatementTrainResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  259. Integer pageNum,
  260. Integer pageSize,
  261. Integer apiId,
  262. Integer detailsId) {
  263. if (mapValue == null) {
  264. mapValue = new HashMap<>();
  265. }
  266. return bmstrainFeign.getStatementTrainResultList(mapValue, pageNum, pageSize, apiId, detailsId);
  267. }
  268. @PostMapping("getComplateTrainDetailsList")
  269. @ApiOperation(value = "展示账单下的详单")
  270. public RESTfulResult getComplateTrainDetailsList(Integer batchId,
  271. @RequestBody(required = false) Map<String, Object> mapValue,
  272. Integer pageNum,
  273. Integer pageSize,
  274. Integer apiId,
  275. Integer statementId,
  276. String con) {
  277. if (mapValue == null) {
  278. mapValue = new HashMap<>();
  279. }
  280. return bmstrainFeign.getComplateTrainDetailsList(new BigDecimal(batchId), mapValue, pageNum, pageSize, apiId, new BigDecimal(statementId), con);
  281. }
  282. @PostMapping("addTrainStatement")
  283. @ApiOperation(value = "生成火运费账单")
  284. RESTfulResult addTrainStatement(@RequestBody List<Map<String, Object>> mapList) {
  285. return bmstrainFeign.addTrainStatement(mapList);
  286. }
  287. @ApiModelProperty(value = "展示销售火运结算列表")
  288. @ApiImplicitParams({
  289. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  290. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  291. @ApiImplicitParam(name = "apiId", value = "180", required = false, dataType = "BigDecimal")
  292. })
  293. @PostMapping("/getSettlementList")
  294. public RESTfulResult getSettlementList(@RequestBody(required = false) Map<String, Object> mapValue,
  295. Integer pageNum,
  296. Integer pageSize,
  297. Integer apiId,
  298. String con) {
  299. if (mapValue == null) {
  300. mapValue = new HashMap<>();
  301. }
  302. return bmstrainFeign.getSettlementList(mapValue, pageNum, pageSize, apiId, con);
  303. }
  304. @ApiModelProperty(value = "新增销售火运结算")
  305. @ApiImplicitParams({
  306. @ApiImplicitParam(name = "bmstrainSettlement", value = "销售火运结算实体", required = false, dataType = "BmstrainSettlement"),
  307. })
  308. @PostMapping("/addTrainSettlement")
  309. public Map<String, Object> addTrainSettlement(@RequestBody Map<String, Object> bmstrainSettlement) {
  310. return bmstrainFeign.addTrainSettlement(bmstrainSettlement);
  311. }
  312. @ApiModelProperty(value = "修改销售火运结算")
  313. @ApiImplicitParams({
  314. @ApiImplicitParam(name = "bmstrainSettlement", value = "销售火运结算实体", required = false, dataType = "BmstrainSettlement"),
  315. })
  316. @PostMapping("/updateTrainSettlement")
  317. public Map<String, Object> updateTrainSettlement(@RequestBody Map<String, Object> bmstrainSettlement) {
  318. return bmstrainFeign.updateTrainSettlement(bmstrainSettlement);
  319. }
  320. @ApiModelProperty(value = "逻辑删除销售火运结算")
  321. @ApiImplicitParams({
  322. @ApiImplicitParam(name = "settlementId", value = "结算id", required = false, dataType = "BigDecimal"),
  323. })
  324. @PostMapping("/deleteTrainSettlement/{settlementId}")
  325. public Map<String, Object> deleteTrainSettlement(@PathVariable("settlementId") BigDecimal settlementId) {
  326. return bmstrainFeign.deleteTrainSettlement(settlementId);
  327. }
  328. @ApiModelProperty(value = "得到修改渲染")
  329. @ApiImplicitParams({
  330. @ApiImplicitParam(name = "settlementId", value = "结算id", required = false, dataType = "BigDecimal"),
  331. })
  332. @PostMapping("/selectTrainSettlement/{settlementId}")
  333. public Map<String, Object> selectTrainSettlement(@PathVariable("settlementId") Integer settlementId) {
  334. return bmstrainFeign.selectTrainSettlement(new BigDecimal(settlementId));
  335. }
  336. @PostMapping("getTruckDetailsOrderList")
  337. @ApiOperation(value = "展示汽运详单信息")
  338. public RESTfulResult getTruckDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  339. Integer pageNum,
  340. Integer pageSize,
  341. Integer apiId,
  342. Integer orderType,
  343. String carrierSsoId) {
  344. if (mapValue == null) {
  345. mapValue = new HashMap<>();
  346. }
  347. return bmstruckFeign.getTruckDetailsOrderList(mapValue, pageNum, pageSize, apiId, orderType,carrierSsoId);
  348. }
  349. @PostMapping("getTruckResultList")
  350. @ApiOperation(value = "展示汽运详单信息")
  351. public RESTfulResult getTruckResultList(@RequestBody(required = false) Map<String, Object> mapValue,
  352. Integer pageNum,
  353. Integer pageSize,
  354. Integer apiId,
  355. Integer orderId) {
  356. if (mapValue == null) {
  357. mapValue = new HashMap<>();
  358. }
  359. return bmstruckFeign.getTruckResultList(mapValue, pageNum, pageSize, apiId, new BigDecimal(orderId));
  360. }
  361. @PostMapping("getTruckStatementList")
  362. @ApiOperation(value = "展示汽运账单信息")
  363. public RESTfulResult getTruckStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
  364. Integer pageNum,
  365. Integer pageSize,
  366. Integer apiId) {
  367. if (mapValue == null) {
  368. mapValue = new HashMap<>();
  369. }
  370. return bmstruckFeign.getTruckStatementList(mapValue, pageNum, pageSize, apiId);
  371. }
  372. @PostMapping("getInvoiceList")
  373. @ApiOperation(value = "展示发票")
  374. public RESTfulResult getInvoiceList(@RequestBody(required = false) Map<String, Object> mapValue,
  375. Integer pageNum,
  376. Integer pageSize,
  377. Integer apiId,
  378. String con) {
  379. if (mapValue == null) {
  380. mapValue = new HashMap<>();
  381. }
  382. return bmstruckFeign.getInvoiceList(mapValue, pageNum, pageSize, apiId, con);
  383. }
  384. @PostMapping("getSaleTruckStatementDetailsOrderList")
  385. @ApiOperation(value = "展示账单下的详单")
  386. public RESTfulResult getSaleTruckStatementDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  387. Integer pageNum,
  388. Integer pageSize,
  389. Integer apiId,
  390. Integer statementId) {
  391. if (mapValue == null) {
  392. mapValue = new HashMap<>();
  393. }
  394. return bmstruckFeign.getSaleTruckStatementDetailsOrderList(mapValue, pageNum, pageSize, apiId, new BigDecimal(statementId));
  395. }
  396. @PostMapping("getUnFinishedTruckDetailsOrderList")
  397. @ApiOperation(value = "展示汽运未生成账单的详单信息")
  398. public RESTfulResult getUnFinishedTruckDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  399. Integer pageNum,
  400. Integer pageSize,
  401. Integer apiId,
  402. Integer orderType,
  403. String carrierSsoId) {
  404. if (mapValue == null) {
  405. mapValue = new HashMap<>();
  406. }
  407. return bmstruckFeign.getUnFinishedTruckDetailsOrderList(mapValue, pageNum, pageSize, apiId, orderType,carrierSsoId);
  408. }
  409. @PostMapping("addBmstruckInvoice")
  410. @ApiOperation(value = "新增发票")
  411. RESTfulResult addBmstruckInvoice(@RequestBody Map<String, Object> mapVal) {
  412. return bmstruckFeign.addBmstruckInvoice(mapVal);
  413. }
  414. @PostMapping("updateBmstruckCheck")
  415. @ApiOperation(value = "修改审核状态")
  416. RESTfulResult updateBmstruckCheck(@RequestParam Integer statementId,
  417. @RequestParam Integer status,
  418. @RequestParam Integer person) {
  419. return bmstruckFeign.updateBmstruckCheck(new BigDecimal(statementId), status, person);
  420. }
  421. @PostMapping("getSmallTruckFormula")
  422. @ApiOperation(value = "查询销售汽运离100KM差距10KM内计费公式")
  423. RESTfulResult getSmallTruckFormula() {
  424. return bmstruckFeign.getSmallTruckFormula();
  425. }
  426. @PostMapping("getBigTruckFormula")
  427. @ApiOperation(value = "查询销售汽运离100KM差距10KM外计费公式")
  428. RESTfulResult getBigTruckFormula() {
  429. return bmstruckFeign.getBigTruckFormula();
  430. }
  431. @PostMapping("addTruckStatement")
  432. @ApiOperation(value = "新增汽运详单")
  433. RESTfulResult addTruckStatement(@RequestBody List<Map<String, Object>> mapList) {
  434. return bmstruckFeign.addTruckStatement(mapList);
  435. }
  436. @PostMapping("addTruckDetailsOrder/{orderId}")
  437. @ApiOperation(value = "新增汽运详单")
  438. RESTfulResult addTruckDetailsOrder(@PathVariable("orderId") BigDecimal orderId) {
  439. return bmstruckFeign.addTruckDetailsOrder(orderId);
  440. }
  441. /**
  442. * 展示汽运未生成账单的详单信息
  443. *
  444. * @param mapVal
  445. * @param pageNum
  446. * @param pageSize
  447. * @param apiId
  448. * @return
  449. */
  450. @ApiModelProperty(value = "展示内转汽运未生成账单的作业详单信息")
  451. @ApiImplicitParams({
  452. @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
  453. @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
  454. @ApiImplicitParam(name = "apiId", value = "还没定", required = false, dataType = "BigDecimal"),
  455. @ApiImplicitParam(name = "orderType", value = "1:计时,2:计数,3:计重,4:包月", required = false, dataType = "Integer")
  456. })
  457. @PostMapping("/getUnFinishedConvertedTruckDetailsOrderList")
  458. public RESTfulResult getUnFinishedConvertedTruckDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapVal,
  459. Integer pageNum,
  460. Integer pageSize,
  461. Integer apiId,
  462. Integer orderType) {
  463. if (mapVal == null) {
  464. mapVal = new HashMap<>();
  465. }
  466. return bmstruckFeign.getUnFinishedConvertedTruckDetailsOrderList(mapVal, pageNum, pageSize, apiId, new BigDecimal(orderType));
  467. }
  468. @PostMapping("/addConvertedDetailsOrder/{orderId}")
  469. RESTfulResult addConvertedDetailsOrder(@PathVariable("orderId") BigDecimal orderId) {
  470. return bmstruckFeign.addConvertedDetailsOrder(orderId);
  471. }
  472. /**
  473. * 生成内转汽运账单
  474. *
  475. * @param mapList
  476. * @return
  477. */
  478. @ApiModelProperty(value = "生成内转汽运账单")
  479. @PostMapping("/addConvertedTruckStatement")
  480. public RESTfulResult addConvertedTruckStatement(@RequestBody List<Map<String, Object>> mapList) {
  481. return bmstruckFeign.addConvertedTruckStatement(mapList);
  482. }
  483. /**
  484. * 删除汽运账单
  485. */
  486. @PostMapping("/deleteConvertedTruckStatement/{statementId}")
  487. public RESTfulResult deleteConvertedTruckStatement(@PathVariable("statementId") BigDecimal statementId) {
  488. return bmstruckFeign.delete(statementId);
  489. }
  490. /**
  491. * 审批计费账单
  492. */
  493. @PostMapping("/updateConvertedTruckStatement/{statementId}")
  494. public RESTfulResult updateConvertedTruckStatement(@PathVariable("statementId") BigDecimal statementId) {
  495. return bmstruckFeign.update(statementId);
  496. }
  497. @PostMapping("/updateDetailsOrder")
  498. @ApiOperation(value = "修改详单")
  499. public RESTfulResult updateDetailsOrder(@RequestBody Map<String, Object> mapValue) {
  500. return bmstruckFeign.updateDetailsOrder(mapValue);
  501. }
  502. @PostMapping("/addLossFeeOfCoke")
  503. @ApiOperation(value = "增加焦炭途损费")
  504. public RESTfulResult addLossFeeOfCoke(@RequestBody Map<String, Object> map) {
  505. return bmstruckFeign.addLossFeeOfCoke(map);
  506. }
  507. }