|
@@ -102,37 +102,13 @@ public class AmsDispatchSaleOrderController extends BaseRESTfulController {
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
Integer dispatchType,
|
|
|
- String carrierSsoId,
|
|
|
- String con){
|
|
|
- if (con != null) {
|
|
|
- if(!"undefined".equals(con)){
|
|
|
- String index="get_pc_dispatch";//设置要查询的索引名称
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));//获取查询结果
|
|
|
- }
|
|
|
- }
|
|
|
+ String carrierSsoId){
|
|
|
mapValue.put("dispatchType",dispatchType);
|
|
|
if (carrierSsoId != null && (carrierSsoId.equals("null") || carrierSsoId.equals("undefined"))) {
|
|
|
carrierSsoId = null;
|
|
|
}
|
|
|
mapValue.put("carrierSsoId",carrierSsoId);
|
|
|
- List<Map<String, Object>> dispatchSaleOrderList = null;
|
|
|
- if (mapValue.size() == 2) {
|
|
|
- //将查询结果存入索引中
|
|
|
- dispatchSaleOrderList = amsDispatchSaleOrderService.getPCDispatchSaleOrderList(mapValue);
|
|
|
- Map<String, Object> map1 = new HashMap<>();
|
|
|
- //添加索引
|
|
|
- map1.put("index","get_pc_dispatch");
|
|
|
- //添加id
|
|
|
- map1.put("indexId","dispatchId");
|
|
|
- dispatchSaleOrderList.add(map1);
|
|
|
- //新建索引
|
|
|
- esFeign.insertIndex(dispatchSaleOrderList);
|
|
|
- //删除
|
|
|
- dispatchSaleOrderList.remove(dispatchSaleOrderList.size()-1);
|
|
|
- }
|
|
|
- if (dispatchSaleOrderList == null) {
|
|
|
- dispatchSaleOrderList = amsDispatchSaleOrderService.getPCDispatchSaleOrderList(mapValue);
|
|
|
- }
|
|
|
+ List<Map<String, Object>> dispatchSaleOrderList = amsDispatchSaleOrderService.getPCDispatchSaleOrderList(mapValue);
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
|
List<Map<String, Object>> columnList = amsDispatchSaleOrderService.getPCDispatchSaleOrderList(mapValue);
|
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, dispatchSaleOrderList,columnList);
|
|
@@ -170,4 +146,15 @@ public class AmsDispatchSaleOrderController extends BaseRESTfulController {
|
|
|
return success(result);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量拒绝定向派单
|
|
|
+ * @param mapList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value="批量拒绝定向派单")
|
|
|
+ @PostMapping(value = "/refuseDispatchSaleOrderList")
|
|
|
+ public RESTfulResult refuseDispatchSaleOrderList(@RequestBody List<Map<String, Object>> mapList) {
|
|
|
+ int result = amsDispatchSaleOrderService.refuseDispatchSaleOrderList(mapList);
|
|
|
+ return success(result);
|
|
|
+ }
|
|
|
}
|