|
|
@@ -39,6 +39,7 @@ public class BmsshipDetailsOrderController extends BaseRESTfulController {
|
|
|
|
|
|
/**
|
|
|
* 展示详单信息
|
|
|
+ *
|
|
|
* @param mapValue
|
|
|
* @param pageNum
|
|
|
* @param pageSize
|
|
|
@@ -52,27 +53,27 @@ public class BmsshipDetailsOrderController extends BaseRESTfulController {
|
|
|
@ApiImplicitParam(name = "apiId", value = "93", required = false, dataType = "BigDecimal")
|
|
|
})
|
|
|
@PostMapping("/getDetailsOrderList")
|
|
|
- public RESTfulResult getDetailsOrderList(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
- Integer pageNum,
|
|
|
- Integer pageSize,
|
|
|
- Integer apiId)throws IOException {
|
|
|
+ public RESTfulResult getDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId) throws IOException {
|
|
|
//初始化过滤
|
|
|
- List<Map<String, Object>> detailListTotal=null;
|
|
|
+ List<Map<String, Object>> detailListTotal = null;
|
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
|
- if(mapValue==null){
|
|
|
+ if (mapValue == null) {
|
|
|
//将查询结果存入索引中
|
|
|
detailListTotal = bmsshipDetailsOrderSerivce.getDetailsOrderList(null);
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
//添加索引
|
|
|
- map.put("index","get_detail_order_list");
|
|
|
+ map.put("index", "get_detail_order_list");
|
|
|
//添加id
|
|
|
- map.put("indexId","detailsId");
|
|
|
+ map.put("indexId", "detailsId");
|
|
|
detailListTotal.add(map);
|
|
|
//新建索引
|
|
|
String s = JSON.toJSONString(detailListTotal);
|
|
|
esFeign.insertIndex(detailListTotal);
|
|
|
//删除
|
|
|
- detailListTotal.remove(detailListTotal.size()-1);
|
|
|
+ detailListTotal.remove(detailListTotal.size() - 1);
|
|
|
}
|
|
|
if (detailListTotal == null) {
|
|
|
detailListTotal = bmsshipDetailsOrderSerivce.getDetailsOrderList(mapValue);
|
|
|
@@ -86,22 +87,23 @@ public class BmsshipDetailsOrderController extends BaseRESTfulController {
|
|
|
|
|
|
@PostMapping("/getDetailsOrderList/{apiId}")
|
|
|
public RESTfulResult getDetailListByCon(@PathVariable("apiId") Integer apiId,
|
|
|
- @RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
+ @RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- String con){
|
|
|
- if(mapValue==null){
|
|
|
- mapValue=new HashMap<>();
|
|
|
+ String con) {
|
|
|
+ if (mapValue == null) {
|
|
|
+ mapValue = new HashMap<>();
|
|
|
}
|
|
|
//设置要查询的索引名称
|
|
|
- String index="get_detail_order_list";
|
|
|
+ String index = "get_detail_order_list";
|
|
|
//获取查询结果
|
|
|
- PageListAdd list = esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con);
|
|
|
+ PageListAdd list = esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con);
|
|
|
return success(list);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 展示未生成账单的详单信息
|
|
|
+ *
|
|
|
* @param mapValue
|
|
|
* @param pageNum
|
|
|
* @param pageSize
|
|
|
@@ -116,29 +118,29 @@ public class BmsshipDetailsOrderController extends BaseRESTfulController {
|
|
|
@ApiImplicitParam(name = "apiId", value = "93", required = false, dataType = "BigDecimal")
|
|
|
})
|
|
|
@PostMapping("/getUncomplateDetailsOrderList")
|
|
|
- public RESTfulResult getUncomplateDetailsOrderList(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
- Integer pageNum,
|
|
|
- Integer pageSize,
|
|
|
- Integer apiId)throws IOException {
|
|
|
+ public RESTfulResult getUncomplateDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId) throws IOException {
|
|
|
//初始化过滤
|
|
|
- List<Map<String, Object>> detailListTotal=null;
|
|
|
+ List<Map<String, Object>> detailListTotal = null;
|
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
|
- if(mapValue==null){
|
|
|
+ if (mapValue == null) {
|
|
|
//将查询结果存入索引中
|
|
|
detailListTotal = bmsshipDetailsOrderSerivce.getUncomplateDetailsOrderList(null);
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
//添加索引
|
|
|
- map.put("index","get_uncomplate_detail_order_list");
|
|
|
+ map.put("index", "get_uncomplate_detail_order_list");
|
|
|
//添加id
|
|
|
- map.put("indexId","detailsId");
|
|
|
+ map.put("indexId", "detailsId");
|
|
|
detailListTotal.add(map);
|
|
|
//新建索引
|
|
|
String s = JSON.toJSONString(detailListTotal);
|
|
|
esFeign.insertIndex(detailListTotal);
|
|
|
//删除
|
|
|
- detailListTotal.remove(detailListTotal.size()-1);
|
|
|
+ detailListTotal.remove(detailListTotal.size() - 1);
|
|
|
}
|
|
|
- if (detailListTotal==null) {
|
|
|
+ if (detailListTotal == null) {
|
|
|
detailListTotal = bmsshipDetailsOrderSerivce.getUncomplateDetailsOrderList(mapValue);
|
|
|
}
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
@@ -150,22 +152,23 @@ public class BmsshipDetailsOrderController extends BaseRESTfulController {
|
|
|
|
|
|
@PostMapping("/getUncomplateDetailsOrderList/{apiId}")
|
|
|
public RESTfulResult getUncomplateDetailsOrderList(@PathVariable("apiId") Integer apiId,
|
|
|
- @RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
- Integer pageNum,
|
|
|
- Integer pageSize,
|
|
|
- String con){
|
|
|
- if(mapValue==null){
|
|
|
- mapValue=new HashMap<>();
|
|
|
+ @RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ String con) {
|
|
|
+ if (mapValue == null) {
|
|
|
+ mapValue = new HashMap<>();
|
|
|
}
|
|
|
//设置要查询的索引名称
|
|
|
- String index="get_uncomplate_detail_order_list";
|
|
|
+ String index = "get_uncomplate_detail_order_list";
|
|
|
//获取查询结果
|
|
|
- PageListAdd list = esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con);
|
|
|
+ PageListAdd list = esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con);
|
|
|
return success(list);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新增详单
|
|
|
+ *
|
|
|
* @param resultId
|
|
|
* @return
|
|
|
*/
|