运营区特殊计费配置:多选周几
This commit is contained in:
parent
a8abe717b1
commit
548078d26a
@ -208,4 +208,30 @@ public class EbikeRegionController {
|
|||||||
EbikeSpecialBillingConfigurationDto configurationDto = specialBillingConfigurationService.getMapper().selectOneWithRelationsByQueryAs(queryWrapper, EbikeSpecialBillingConfigurationDto.class);
|
EbikeSpecialBillingConfigurationDto configurationDto = specialBillingConfigurationService.getMapper().selectOneWithRelationsByQueryAs(queryWrapper, EbikeSpecialBillingConfigurationDto.class);
|
||||||
return JsonResult.success(configurationDto);
|
return JsonResult.success(configurationDto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存运营配置。
|
||||||
|
*
|
||||||
|
* @param configurationVo 配置信息
|
||||||
|
* @return 分页对象
|
||||||
|
*/
|
||||||
|
@PostMapping("operationConfiguration")
|
||||||
|
public JsonResult<?> operationConfiguration(@Validated @RequestBody EbikeSpecialBillingConfigurationVo configurationVo) {
|
||||||
|
specialBillingConfigurationService.specialConfiguration(configurationVo);
|
||||||
|
return JsonResult.success();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取运营配置。
|
||||||
|
*
|
||||||
|
* @param regionId 区域ID
|
||||||
|
* @return 分页对象
|
||||||
|
*/
|
||||||
|
@GetMapping("getOperationConfiguration")
|
||||||
|
public JsonResult<?> getOperationConfiguration(@RequestParam Long regionId) {
|
||||||
|
QueryWrapper queryWrapper = QueryWrapper.create()
|
||||||
|
.where(EBIKE_SPECIAL_BILLING_CONFIGURATION.REGION_ID.eq(regionId));
|
||||||
|
EbikeSpecialBillingConfigurationDto configurationDto = specialBillingConfigurationService.getMapper().selectOneWithRelationsByQueryAs(queryWrapper, EbikeSpecialBillingConfigurationDto.class);
|
||||||
|
return JsonResult.success(configurationDto);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user