| | |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.dto.TServiceGuideFileDTO; |
| | | import com.ruoyi.system.model.TServiceGuideFile; |
| | | import com.ruoyi.system.query.TServiceGuideFileQuery; |
| | | import com.ruoyi.system.service.TServiceGuideFileService; |
| | |
| | | @Log(title = "办事指南文件管理信息-新增办事指南文件管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加办事指南文件管理") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody List<TServiceGuideFile> dto) { |
| | | return R.ok(serviceGuideFileService.saveBatch(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改办事指南文件管理 |
| | | */ |
| | | @Log(title = "办事指南文件管理信息-修改办事指南文件管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改办事指南文件管理") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TServiceGuideFile dto) { |
| | | return R.ok(serviceGuideFileService.updateById(dto)); |
| | | public R<Boolean> add(@Validated @RequestBody TServiceGuideFileDTO dto) { |
| | | return R.ok(serviceGuideFileService.saveBatch(dto.getList())); |
| | | } |
| | | |
| | | /** |