|
@@ -109,6 +109,14 @@ public class DispatchController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @PostMapping("/detailDispatch")
|
|
|
+ @ApiOperation(value = "自动派工街道配置-详情")
|
|
|
+ public ResponseHelper<WebsitDispatch> detailDispatch(@ApiParam(value = "id", required = false) @RequestParam String id) {
|
|
|
+ WebsitDispatch websitDispatch = changeOrderLogic.detailDispatch(id);
|
|
|
+ return ResponseHelper.success(websitDispatch);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@PostMapping("/delDispatch")
|
|
|
@ApiOperation(value = "自动派工街道配置-删除")
|
|
|
public ResponseHelper delDispatch(@ApiParam(value = "id", required = false) @RequestParam List<String> id) {
|
|
@@ -134,125 +142,97 @@ public class DispatchController {
|
|
|
@PostMapping("/pList")
|
|
|
@ApiOperation(value = "省")
|
|
|
public ResponseHelper<List<DispatchCherVO>> pList(
|
|
|
- @ApiParam(value = "省id", required = false) @RequestParam String pId,
|
|
|
- @ApiParam(value = "市id", required = false) @RequestParam String cityCode,
|
|
|
- @ApiParam(value = "区id", required = false) @RequestParam String areaCode,
|
|
|
- @ApiParam(value = "街道id", required = false) @RequestParam String streetCode,
|
|
|
- @ApiParam(value = "工单渠道id", required = false) @RequestParam String dictCode,
|
|
|
- @ApiParam(value = "工单类型id", required = false) @RequestParam String orderSmallId,
|
|
|
- @ApiParam(value = "产品大类id", required = false) @RequestParam String categoryId,
|
|
|
- @ApiParam(value = "工单来源id", required = false) @RequestParam String orderSourceId
|
|
|
+ @RequestBody WebsitDispatchRe websitDispatchRe
|
|
|
|
|
|
) {
|
|
|
- List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.pList(pId, cityCode, areaCode, streetCode, dictCode, orderSmallId, categoryId, orderSourceId);
|
|
|
+ List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.pList(websitDispatchRe.getProvinceCode(), websitDispatchRe.getCityCode(),
|
|
|
+ websitDispatchRe.getAreaCode(), websitDispatchRe.getProvinceCode(), websitDispatchRe.getDictCode(), websitDispatchRe.getOrderSmallId(),
|
|
|
+ websitDispatchRe.getCategoryId(), websitDispatchRe.getOrderSmallId());
|
|
|
return ResponseHelper.success(dispatchCherVOS);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/cList")
|
|
|
@ApiOperation(value = "市")
|
|
|
public ResponseHelper<List<DispatchCherVO>> cList(
|
|
|
- @ApiParam(value = "省id", required = false) @RequestParam String pId,
|
|
|
- @ApiParam(value = "市id", required = false) @RequestParam String cityCode,
|
|
|
- @ApiParam(value = "区id", required = false) @RequestParam String areaCode,
|
|
|
- @ApiParam(value = "街道id", required = false) @RequestParam String streetCode,
|
|
|
- @ApiParam(value = "工单渠道id", required = false) @RequestParam String dictCode,
|
|
|
- @ApiParam(value = "工单类型id", required = false) @RequestParam String orderSmallId,
|
|
|
- @ApiParam(value = "产品大类id", required = false) @RequestParam String categoryId,
|
|
|
- @ApiParam(value = "工单来源id", required = false) @RequestParam String orderSourceId
|
|
|
+ @RequestBody WebsitDispatchRe websitDispatchRe
|
|
|
+
|
|
|
) {
|
|
|
- List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.cList(pId, cityCode, areaCode, streetCode, dictCode, orderSmallId, categoryId, orderSourceId);
|
|
|
+ List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.cList(websitDispatchRe.getProvinceCode(), websitDispatchRe.getCityCode(),
|
|
|
+ websitDispatchRe.getAreaCode(), websitDispatchRe.getProvinceCode(), websitDispatchRe.getDictCode(), websitDispatchRe.getOrderSmallId(),
|
|
|
+ websitDispatchRe.getCategoryId(), websitDispatchRe.getOrderSmallId());
|
|
|
return ResponseHelper.success(dispatchCherVOS);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/aList")
|
|
|
@ApiOperation(value = "区")
|
|
|
- public ResponseHelper<List<DispatchCherVO>> aList(@ApiParam(value = "省id", required = false) @RequestParam String pId,
|
|
|
- @ApiParam(value = "市id", required = false) @RequestParam String cityCode,
|
|
|
- @ApiParam(value = "区id", required = false) @RequestParam String areaCode,
|
|
|
- @ApiParam(value = "街道id", required = false) @RequestParam String streetCode,
|
|
|
- @ApiParam(value = "工单渠道id", required = false) @RequestParam String dictCode,
|
|
|
- @ApiParam(value = "工单类型id", required = false) @RequestParam String orderSmallId,
|
|
|
- @ApiParam(value = "产品大类id", required = false) @RequestParam String categoryId,
|
|
|
- @ApiParam(value = "工单来源id", required = false) @RequestParam String orderSourceId) {
|
|
|
- List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.aList(pId, cityCode, areaCode, streetCode, dictCode, orderSmallId, categoryId, orderSourceId);
|
|
|
+ public ResponseHelper<List<DispatchCherVO>> aList(
|
|
|
+ @RequestBody WebsitDispatchRe websitDispatchRe
|
|
|
+
|
|
|
+ ) {
|
|
|
+ List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.aList(websitDispatchRe.getProvinceCode(), websitDispatchRe.getCityCode(),
|
|
|
+ websitDispatchRe.getAreaCode(), websitDispatchRe.getProvinceCode(), websitDispatchRe.getDictCode(), websitDispatchRe.getOrderSmallId(),
|
|
|
+ websitDispatchRe.getCategoryId(), websitDispatchRe.getOrderSmallId());
|
|
|
return ResponseHelper.success(dispatchCherVOS);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/sList")
|
|
|
@ApiOperation(value = "街道")
|
|
|
public ResponseHelper<List<DispatchCherVO>> sList(
|
|
|
- @ApiParam(value = "省id", required = false) @RequestParam String pId,
|
|
|
- @ApiParam(value = "市id", required = false) @RequestParam String cityCode,
|
|
|
- @ApiParam(value = "区id", required = false) @RequestParam String areaCode,
|
|
|
- @ApiParam(value = "街道id", required = false) @RequestParam String streetCode,
|
|
|
- @ApiParam(value = "工单渠道id", required = false) @RequestParam String dictCode,
|
|
|
- @ApiParam(value = "工单类型id", required = false) @RequestParam String orderSmallId,
|
|
|
- @ApiParam(value = "产品大类id", required = false) @RequestParam String categoryId,
|
|
|
- @ApiParam(value = "工单来源id", required = false) @RequestParam String orderSourceId
|
|
|
+ @RequestBody WebsitDispatchRe websitDispatchRe
|
|
|
) {
|
|
|
- List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.sList(pId, cityCode, areaCode, streetCode, dictCode, orderSmallId, categoryId, orderSourceId);
|
|
|
+ List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.sList(websitDispatchRe.getProvinceCode(), websitDispatchRe.getCityCode(),
|
|
|
+ websitDispatchRe.getAreaCode(), websitDispatchRe.getProvinceCode(), websitDispatchRe.getDictCode(), websitDispatchRe.getOrderSmallId(),
|
|
|
+ websitDispatchRe.getCategoryId(), websitDispatchRe.getOrderSmallId());
|
|
|
return ResponseHelper.success(dispatchCherVOS);
|
|
|
}
|
|
|
|
|
|
|
|
|
@PostMapping("/channel")
|
|
|
@ApiOperation(value = "工单渠道")
|
|
|
- public ResponseHelper<List<DispatchCherVO>> channel( @ApiParam(value = "省id", required = false) @RequestParam String pId,
|
|
|
- @ApiParam(value = "市id", required = false) @RequestParam String cityCode,
|
|
|
- @ApiParam(value = "区id", required = false) @RequestParam String areaCode,
|
|
|
- @ApiParam(value = "街道id", required = false) @RequestParam String streetCode,
|
|
|
- @ApiParam(value = "工单渠道id", required = false) @RequestParam String dictCode,
|
|
|
- @ApiParam(value = "工单类型id", required = false) @RequestParam String orderSmallId,
|
|
|
- @ApiParam(value = "产品大类id", required = false) @RequestParam String categoryId,
|
|
|
- @ApiParam(value = "工单来源id", required = false) @RequestParam String orderSourceId) {
|
|
|
- List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.channel(pId, cityCode, areaCode, streetCode, dictCode, orderSmallId, categoryId, orderSourceId);
|
|
|
+ public ResponseHelper<List<DispatchCherVO>> channel(
|
|
|
+ @RequestBody WebsitDispatchRe websitDispatchRe
|
|
|
+ ) {
|
|
|
+ List<DispatchCherVO> dispatchCherVOS = changeOrderLogic.channel(websitDispatchRe.getProvinceCode(), websitDispatchRe.getCityCode(),
|
|
|
+ websitDispatchRe.getAreaCode(), websitDispatchRe.getProvinceCode(), websitDispatchRe.getDictCode(), websitDispatchRe.getOrderSmallId(),
|
|
|
+ websitDispatchRe.getCategoryId(), websitDispatchRe.getOrderSmallId());
|
|
|
|
|
|
return ResponseHelper.success(dispatchCherVOS);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/smallList")
|
|
|
@ApiOperation(value = "工单类型")
|
|
|
- public ResponseHelper<List<DispatchCherVO>> smallList(@ApiParam(value = "省id", required = false) @RequestParam String pId,
|
|
|
- @ApiParam(value = "市id", required = false) @RequestParam String cityCode,
|
|
|
- @ApiParam(value = "区id", required = false) @RequestParam String areaCode,
|
|
|
- @ApiParam(value = "街道id", required = false) @RequestParam String streetCode,
|
|
|
- @ApiParam(value = "工单渠道id", required = false) @RequestParam String dictCode,
|
|
|
- @ApiParam(value = "工单类型id", required = false) @RequestParam String orderSmallId,
|
|
|
- @ApiParam(value = "产品大类id", required = false) @RequestParam String categoryId,
|
|
|
- @ApiParam(value = "工单来源id", required = false) @RequestParam String orderSourceId) {
|
|
|
+ public ResponseHelper<List<DispatchCherVO>> smallList(
|
|
|
+ @RequestBody WebsitDispatchRe websitDispatchRe
|
|
|
+ ) {
|
|
|
List<DispatchCherVO> dispatchCherVOS = changeOrderLogic
|
|
|
- .smallList(pId, cityCode, areaCode, streetCode, dictCode, orderSmallId, categoryId, orderSourceId);
|
|
|
+ .smallList(websitDispatchRe.getProvinceCode(), websitDispatchRe.getCityCode(),
|
|
|
+ websitDispatchRe.getAreaCode(), websitDispatchRe.getProvinceCode(), websitDispatchRe.getDictCode(), websitDispatchRe.getOrderSmallId(),
|
|
|
+ websitDispatchRe.getCategoryId(), websitDispatchRe.getOrderSmallId());
|
|
|
|
|
|
return ResponseHelper.success(dispatchCherVOS);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/categoryList")
|
|
|
@ApiOperation(value = "产品大类")
|
|
|
- public ResponseHelper<List<DispatchCherVO>> categoryList(@ApiParam(value = "省id", required = false) @RequestParam String pId,
|
|
|
- @ApiParam(value = "市id", required = false) @RequestParam String cityCode,
|
|
|
- @ApiParam(value = "区id", required = false) @RequestParam String areaCode,
|
|
|
- @ApiParam(value = "街道id", required = false) @RequestParam String streetCode,
|
|
|
- @ApiParam(value = "工单渠道id", required = false) @RequestParam String dictCode,
|
|
|
- @ApiParam(value = "工单类型id", required = false) @RequestParam String orderSmallId,
|
|
|
- @ApiParam(value = "产品大类id", required = false) @RequestParam String categoryId,
|
|
|
- @ApiParam(value = "工单来源id", required = false) @RequestParam String orderSourceId) {
|
|
|
+ public ResponseHelper<List<DispatchCherVO>> categoryList(
|
|
|
+ @RequestBody WebsitDispatchRe websitDispatchRe
|
|
|
+ ) {
|
|
|
List<DispatchCherVO> dispatchCherVOS = changeOrderLogic
|
|
|
- .categoryList(pId, cityCode, areaCode, streetCode, dictCode, orderSmallId, categoryId, orderSourceId);
|
|
|
+ .categoryList(websitDispatchRe.getProvinceCode(), websitDispatchRe.getCityCode(),
|
|
|
+ websitDispatchRe.getAreaCode(), websitDispatchRe.getProvinceCode(), websitDispatchRe.getDictCode(), websitDispatchRe.getOrderSmallId(),
|
|
|
+ websitDispatchRe.getCategoryId(), websitDispatchRe.getOrderSmallId());
|
|
|
return ResponseHelper.success(dispatchCherVOS);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/sourceList")
|
|
|
@ApiOperation(value = "工单来源")
|
|
|
- public ResponseHelper sourceList(@ApiParam(value = "省id", required = false) @RequestParam String pId,
|
|
|
- @ApiParam(value = "市id", required = false) @RequestParam String cityCode,
|
|
|
- @ApiParam(value = "区id", required = false) @RequestParam String areaCode,
|
|
|
- @ApiParam(value = "街道id", required = false) @RequestParam String streetCode,
|
|
|
- @ApiParam(value = "工单渠道id", required = false) @RequestParam String dictCode,
|
|
|
- @ApiParam(value = "工单类型id", required = false) @RequestParam String orderSmallId,
|
|
|
- @ApiParam(value = "产品大类id", required = false) @RequestParam String categoryId,
|
|
|
- @ApiParam(value = "工单来源id", required = false) @RequestParam String orderSourceId) {
|
|
|
+ public ResponseHelper sourceList(
|
|
|
+ @RequestBody WebsitDispatchRe websitDispatchRe
|
|
|
+ ) {
|
|
|
List<DispatchCherVO> dispatchCherVOS = changeOrderLogic
|
|
|
- .sourceList(pId, cityCode, areaCode, streetCode, dictCode, orderSmallId, categoryId, orderSourceId);
|
|
|
+ .sourceList(websitDispatchRe.getProvinceCode(), websitDispatchRe.getCityCode(),
|
|
|
+ websitDispatchRe.getAreaCode(), websitDispatchRe.getProvinceCode(), websitDispatchRe.getDictCode(), websitDispatchRe.getOrderSmallId(),
|
|
|
+ websitDispatchRe.getCategoryId(), websitDispatchRe.getOrderSmallId());
|
|
|
return ResponseHelper.success(dispatchCherVOS);
|
|
|
}
|
|
|
|