|
@@ -301,8 +301,8 @@ public class BMSController extends BaseRESTfulController {
|
|
|
|
|
|
@PostMapping("addTrainStatement")
|
|
|
@ApiOperation(value = "生成火运费账单")
|
|
|
- RESTfulResult addTrainStatement(@RequestBody Map<String, Object> map) {
|
|
|
- return bmstrainFeign.addTrainStatement(map);
|
|
|
+ RESTfulResult addTrainStatement(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
+ return bmstrainFeign.addTrainStatement(mapList);
|
|
|
}
|
|
|
|
|
|
@ApiModelProperty(value = "展示销售火运结算列表")
|
|
@@ -354,8 +354,8 @@ public class BMSController extends BaseRESTfulController {
|
|
|
@ApiImplicitParam(name = "settlementId", value = "结算id", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
@PostMapping("/selectTrainSettlement/{settlementId}")
|
|
|
- public List<Map<String,Object>> selectTrainSettlement(@PathVariable("settlementId") BigDecimal settlementId) {
|
|
|
- return bmstrainFeign.selectTrainSettlement(settlementId);
|
|
|
+ public Map<String,Object> selectTrainSettlement(@PathVariable("settlementId") Integer settlementId) {
|
|
|
+ return bmstrainFeign.selectTrainSettlement(new BigDecimal(settlementId));
|
|
|
}
|
|
|
|
|
|
@PostMapping("getTruckDetailsOrderList")
|
|
@@ -363,11 +363,12 @@ public class BMSController extends BaseRESTfulController {
|
|
|
public RESTfulResult getTruckDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- Integer apiId) {
|
|
|
+ Integer apiId,
|
|
|
+ Integer orderType) {
|
|
|
if (mapValue == null) {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
- return bmstruckFeign.getTruckDetailsOrderList(mapValue, pageNum, pageSize, apiId);
|
|
|
+ return bmstruckFeign.getTruckDetailsOrderList(mapValue, pageNum, pageSize, apiId, orderType);
|
|
|
}
|
|
|
|
|
|
@PostMapping("getTruckResultList")
|
|
@@ -383,6 +384,88 @@ public class BMSController extends BaseRESTfulController {
|
|
|
return bmstruckFeign.getTruckResultList(mapValue, pageNum, pageSize, apiId, new BigDecimal(orderId));
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("getTruckStatementList")
|
|
|
+ @ApiOperation(value = "展示汽运账单信息")
|
|
|
+ public RESTfulResult getTruckStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId) {
|
|
|
+ if (mapValue == null) {
|
|
|
+ mapValue = new HashMap<>();
|
|
|
+ }
|
|
|
+ return bmstruckFeign.getTruckStatementList(mapValue, pageNum, pageSize, apiId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("getInvoiceList")
|
|
|
+ @ApiOperation(value = "展示发票")
|
|
|
+ public RESTfulResult getInvoiceList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId) {
|
|
|
+ if (mapValue == null) {
|
|
|
+ mapValue = new HashMap<>();
|
|
|
+ }
|
|
|
+ return bmstruckFeign.getInvoiceList(mapValue, pageNum, pageSize, apiId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("getSaleTruckStatementDetailsOrderList")
|
|
|
+ @ApiOperation(value = "展示账单下的详单")
|
|
|
+ public RESTfulResult getSaleTruckStatementDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ Integer statementId) {
|
|
|
+ if (mapValue == null) {
|
|
|
+ mapValue = new HashMap<>();
|
|
|
+ }
|
|
|
+ return bmstruckFeign.getSaleTruckStatementDetailsOrderList(mapValue, pageNum, pageSize, apiId, new BigDecimal(statementId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("getUnFinishedTruckDetailsOrderList")
|
|
|
+ @ApiOperation(value = "展示汽运未生成账单的详单信息")
|
|
|
+ public RESTfulResult getUnFinishedTruckDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ Integer orderType) {
|
|
|
+ if (mapValue == null) {
|
|
|
+ mapValue = new HashMap<>();
|
|
|
+ }
|
|
|
+ return bmstruckFeign.getUnFinishedTruckDetailsOrderList(mapValue, pageNum, pageSize, apiId, orderType);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("addBmstruckInvoice")
|
|
|
+ @ApiOperation(value = "新增发票")
|
|
|
+ RESTfulResult addBmstruckInvoice(@RequestBody Map<String,Object> mapVal) {
|
|
|
+ return bmstruckFeign.addBmstruckInvoice(mapVal);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("updateBmstruckCheck")
|
|
|
+ @ApiOperation(value = "修改审核状态")
|
|
|
+ RESTfulResult updateBmstruckCheck(@RequestParam Integer statementId,
|
|
|
+ @RequestParam Integer status,
|
|
|
+ @RequestParam Integer person) {
|
|
|
+ return bmstruckFeign.updateBmstruckCheck(new BigDecimal(statementId),status,person);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("getSmallTruckFormula")
|
|
|
+ @ApiOperation(value = "查询销售汽运离100KM差距10KM内计费公式")
|
|
|
+ RESTfulResult getSmallTruckFormula() {
|
|
|
+ return bmstruckFeign.getSmallTruckFormula();
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("getBigTruckFormula")
|
|
|
+ @ApiOperation(value = "查询销售汽运离100KM差距10KM外计费公式")
|
|
|
+ RESTfulResult getBigTruckFormula() {
|
|
|
+ return bmstruckFeign.getBigTruckFormula();
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("addTruckStatement")
|
|
|
+ @ApiOperation(value = "新增汽运详单")
|
|
|
+ RESTfulResult addTruckStatement(@RequestBody List<Map<String,Object>> mapList) {
|
|
|
+ return bmstruckFeign.addTruckStatement(mapList);
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("addTruckDetailsOrder/{orderId}")
|
|
|
@ApiOperation(value = "新增汽运详单")
|
|
|
RESTfulResult addTruckDetailsOrder(@PathVariable("orderId") BigDecimal orderId) {
|