| | |
| | | public Result<Page<LogDto>> update(@RequestBody @Valid ProjectVarietyUpdateModel updateModel) { |
| | | ProjectVariety projectBreed = projectVarietyService.getById(updateModel.getId()); |
| | | if (projectBreed == null) { |
| | | throw new YamiShopBindException("参数错误!"); |
| | | throw new YamiShopBindException("Invalid parameters!"); |
| | | } |
| | | BeanUtils.copyProperties(updateModel, projectBreed); |
| | | projectVarietyService.updateById(projectBreed); |
| | |
| | | public Result<ProjectBreedDto> getDesc(@RequestBody @Valid IdModel idModel) { |
| | | ProjectVariety projectBreed = projectVarietyService.getById(idModel.getId()); |
| | | if (projectBreed == null) { |
| | | throw new YamiShopBindException("参数错误!"); |
| | | throw new YamiShopBindException("Invalid parameters!"); |
| | | } |
| | | List<Realtime> list = dataService.realtime(projectBreed.getTransactionPairsSymbol()); |
| | | ProjectBreedDto dto = new ProjectBreedDto(); |