|
|
@@ -128,21 +128,21 @@ public class AgenterTypeController extends BladeController {
|
|
|
return R.status(agenterTypeService.deleteLogic(Func.toLongList(ids)));
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- *
|
|
|
- */
|
|
|
- @GetMapping("/getAgenterTypeByAreaCode")
|
|
|
- @ApiOperationSupport(order = 7)
|
|
|
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
|
|
|
- public R<AgenterType> getAgenterTypeByAreaCode(String areaCode){
|
|
|
- Region region = regionService.getByCode(areaCode);
|
|
|
- Assert.notNull(region,"城市不存在");
|
|
|
- Assert.isTrue(region.getRegionLevel() == 2,"城市不存在");
|
|
|
- AgenterType agenterType = agenterTypeService.getBaseMapper().selectOne(new QueryWrapper<>(new AgenterType()).lambda().eq(AgenterType::getCityRank, region.getCityRank()));
|
|
|
- Assert.notNull(agenterType,"该城市类型不存在");
|
|
|
- Assert.notNull(agenterType.getCost(),"该城市类型的代理应付还未设置");
|
|
|
- return R.data(agenterType);
|
|
|
- }
|
|
|
+// /**
|
|
|
+// *
|
|
|
+// */
|
|
|
+// @GetMapping("/getAgenterTypeByAreaCode")
|
|
|
+// @ApiOperationSupport(order = 7)
|
|
|
+// @ApiOperation(value = "逻辑删除", notes = "传入ids")
|
|
|
+// public R<AgenterType> getAgenterTypeByAreaCode(String areaCode){
|
|
|
+// Region region = regionService.getByCode(areaCode);
|
|
|
+// Assert.notNull(region,"城市不存在");
|
|
|
+// Assert.isTrue(region.getRegionLevel() == 2,"城市不存在");
|
|
|
+// AgenterType agenterType = agenterTypeService.getBaseMapper().selectOne(new QueryWrapper<>(new AgenterType()).lambda());
|
|
|
+// Assert.notNull(agenterType,"该城市类型不存在");
|
|
|
+// Assert.notNull(agenterType.getCost(),"该城市类型的代理应付还未设置");
|
|
|
+// return R.data(agenterType);
|
|
|
+// }
|
|
|
|
|
|
|
|
|
}
|