文件名从 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaOutIcd10Controller.java 修改 |
| | |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.IvrLibaTargetIcd10; |
| | | import com.smartor.service.IIvrLibaOutIcd10Service; |
| | | import com.smartor.domain.Icd10Association; |
| | | import com.smartor.service.IIcd10AssociationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Api(description = "鎸囨爣鐤剧梾") |
| | | @RestController |
| | | @RequestMapping("/smartor/outicd10") |
| | | public class IvrLibaOutIcd10Controller extends BaseController { |
| | | public class Icd10AssociationController extends BaseController { |
| | | @Autowired |
| | | private IIvrLibaOutIcd10Service ivrLibaOutIcd10Service; |
| | | private IIcd10AssociationService iIcd10AssociationService; |
| | | |
| | | /** |
| | | * 鏌ヨ鎸囨爣鐤剧梾鍒楄〃 |
| | |
| | | @ApiOperation("鏌ヨ鎸囨爣鐤剧梾鍒楄〃") |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetIcd10 ivrLibaTargetIcd10) { |
| | | PageUtils.startPageByPost(ivrLibaTargetIcd10.getPageNum(), ivrLibaTargetIcd10.getPageSize()); |
| | | List<IvrLibaTargetIcd10> list = ivrLibaOutIcd10Service.selectIvrLibaTargetIcd10List(ivrLibaTargetIcd10); |
| | | public TableDataInfo list(@RequestBody Icd10Association icd10Association) { |
| | | PageUtils.startPageByPost(icd10Association.getPageNum(), icd10Association.getPageSize()); |
| | | List<Icd10Association> list = iIcd10AssociationService.selectIcd10AssociationList(icd10Association); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:export')") |
| | | @Log(title = "鎸囨爣鐤剧梾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTargetIcd10 ivrLibaTargetIcd10) { |
| | | List<IvrLibaTargetIcd10> list = ivrLibaOutIcd10Service.selectIvrLibaTargetIcd10List(ivrLibaTargetIcd10); |
| | | ExcelUtil<IvrLibaTargetIcd10> util = new ExcelUtil<IvrLibaTargetIcd10>(IvrLibaTargetIcd10.class); |
| | | public void export(HttpServletResponse response, Icd10Association Icd10Association) { |
| | | List<Icd10Association> list = iIcd10AssociationService.selectIcd10AssociationList(Icd10Association); |
| | | ExcelUtil<Icd10Association> util = new ExcelUtil<Icd10Association>(Icd10Association.class); |
| | | util.exportExcel(response, list, "鎸囨爣鐤剧梾鏁版嵁"); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaOutIcd10Service.selectIvrLibaTargetIcd10ById(id)); |
| | | return success(iIcd10AssociationService.selectIcd10AssociationById(id)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:add')") |
| | | @Log(title = "鎸囨爣鐤剧梾", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetIcd10 ivrLibaTargetIcd10) { |
| | | return toAjax(ivrLibaOutIcd10Service.insertIvrLibaTargetIcd10(ivrLibaTargetIcd10)); |
| | | public AjaxResult add(@RequestBody Icd10Association Icd10Association) { |
| | | return toAjax(iIcd10AssociationService.insertIcd10Association(Icd10Association)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:edit')") |
| | | @Log(title = "鎸囨爣鐤剧梾", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetIcd10 ivrLibaTargetIcd10) { |
| | | return toAjax(ivrLibaOutIcd10Service.updateIvrLibaTargetIcd10(ivrLibaTargetIcd10)); |
| | | public AjaxResult edit(@RequestBody Icd10Association Icd10Association) { |
| | | return toAjax(iIcd10AssociationService.updateIcd10Association(Icd10Association)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Log(title = "鎸囨爣鐤剧梾", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(ivrLibaOutIcd10Service.deleteIvrLibaTargetIcd10ByIds(ids)); |
| | | return toAjax(iIcd10AssociationService.deleteIcd10AssociationByIds(ids)); |
| | | } |
| | | } |