| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.modules.dnc.entity.DeviceCharacters; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | |
| | | |
| | | /** |
| | | * 设备特殊字符分页查询 |
| | | * @param page |
| | | * @param size |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param deviceCharactersRequest |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备特殊字符-分页列表查询") |
| | | @ApiOperation(value = "设备特殊字符-分页列表查询", notes = "设备特殊字符-分页列表查询") |
| | | @GetMapping("/find/page/{page}/{size}") |
| | | public QueryPageResponseResult<DeviceCharacters> findPageList(@PathVariable("page") int page, @PathVariable("size") int size, DeviceCharactersRequest deviceCharactersRequest) { |
| | | return iDeviceCharactersService.findByPageList(page, size, deviceCharactersRequest); |
| | | @GetMapping("/find/page") |
| | | public Result<?> findPageList(@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
| | | DeviceCharactersRequest deviceCharactersRequest) { |
| | | return iDeviceCharactersService.findByPageList(pageNo, pageSize, deviceCharactersRequest); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @AutoLog(value = "设备特殊字符-编辑设备特殊字符") |
| | | @ApiOperation(value = "设备特殊字符-编辑设备特殊字符", notes = "设备特殊字符-编辑设备特殊字符") |
| | | @PutMapping("/edit/{id}") |
| | | public ResponseResult editDefinition(@PathVariable("id") String id,@RequestBody DeviceCharacters deviceCharacters) { |
| | | @PutMapping("/edit") |
| | | public ResponseResult editDefinition(@RequestBody DeviceCharacters deviceCharacters) { |
| | | boolean b = iDeviceCharactersService.updateById(deviceCharacters); |
| | | if(b) { |
| | | return new ResponseResult(CommonCode.SUCCESS); |