|  |  | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  |  | 
 |  |  | import com.smartor.domain.IvrTaskcalldetailReq; | 
 |  |  | import com.smartor.domain.PhoneCallBackVO; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import org.springframework.security.access.prepost.PreAuthorize; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
 |  |  | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 语音任务呼叫明细Controller | 
 |  |  |  *  | 
 |  |  |  * | 
 |  |  |  * @author smartor | 
 |  |  |  * @date 2023-03-24 | 
 |  |  |  */ | 
 |  |  | @RestController | 
 |  |  | @RequestMapping("/smartor/ivrtaskcalldetail") | 
 |  |  | public class IvrTaskcalldetailController extends BaseController | 
 |  |  | { | 
 |  |  | public class IvrTaskcalldetailController extends BaseController { | 
 |  |  |     @Autowired | 
 |  |  |     private IIvrTaskcalldetailService ivrTaskcalldetailService; | 
 |  |  |  | 
 |  |  | 
 |  |  |      * 查询语音任务呼叫明细列表 | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcalldetail:list')") | 
 |  |  |     @GetMapping("/list") | 
 |  |  |     public TableDataInfo list(IvrTaskcalldetail ivrTaskcalldetail) | 
 |  |  |     { | 
 |  |  |     @PostMapping("/list") | 
 |  |  |     public TableDataInfo list(@RequestBody IvrTaskcalldetail ivrTaskcalldetail) { | 
 |  |  |         startPage(); | 
 |  |  |         List<IvrTaskcalldetail> list = ivrTaskcalldetailService.selectIvrTaskcalldetailList(ivrTaskcalldetail); | 
 |  |  |         return getDataTable(list); | 
 |  |  | 
 |  |  |     @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcalldetail:export')") | 
 |  |  |     @Log(title = "语音任务呼叫明细", businessType = BusinessType.EXPORT) | 
 |  |  |     @PostMapping("/export") | 
 |  |  |     public void export(HttpServletResponse response, IvrTaskcalldetail ivrTaskcalldetail) | 
 |  |  |     { | 
 |  |  |     public void export(HttpServletResponse response, IvrTaskcalldetail ivrTaskcalldetail) { | 
 |  |  |         List<IvrTaskcalldetail> list = ivrTaskcalldetailService.selectIvrTaskcalldetailList(ivrTaskcalldetail); | 
 |  |  |         ExcelUtil<IvrTaskcalldetail> util = new ExcelUtil<IvrTaskcalldetail>(IvrTaskcalldetail.class); | 
 |  |  |         util.exportExcel(response, list, "语音任务呼叫明细数据"); | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcalldetail:query')") | 
 |  |  |     @GetMapping(value = "/{calldetailid}") | 
 |  |  |     public AjaxResult getInfo(@PathVariable("calldetailid") String calldetailid) | 
 |  |  |     { | 
 |  |  |     public AjaxResult getInfo(@PathVariable("calldetailid") String calldetailid) { | 
 |  |  |         return success(ivrTaskcalldetailService.selectIvrTaskcalldetailByCalldetailid(calldetailid)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcalldetail:add')") | 
 |  |  |     @Log(title = "语音任务呼叫明细", businessType = BusinessType.INSERT) | 
 |  |  |     @PostMapping | 
 |  |  |     public AjaxResult add(@RequestBody IvrTaskcalldetail ivrTaskcalldetail) | 
 |  |  |     { | 
 |  |  |     @PostMapping("/add") | 
 |  |  |     public AjaxResult add(@RequestBody IvrTaskcalldetail ivrTaskcalldetail) { | 
 |  |  |         return toAjax(ivrTaskcalldetailService.insertIvrTaskcalldetail(ivrTaskcalldetail)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcalldetail:edit')") | 
 |  |  |     @Log(title = "语音任务呼叫明细", businessType = BusinessType.UPDATE) | 
 |  |  |     @PutMapping | 
 |  |  |     public AjaxResult edit(@RequestBody IvrTaskcalldetail ivrTaskcalldetail) | 
 |  |  |     { | 
 |  |  |     @PostMapping("/edit") | 
 |  |  |     public AjaxResult edit(@RequestBody IvrTaskcalldetail ivrTaskcalldetail) { | 
 |  |  |         return toAjax(ivrTaskcalldetailService.updateIvrTaskcalldetail(ivrTaskcalldetail)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('smartor:ivrtaskcalldetail:remove')") | 
 |  |  |     @Log(title = "语音任务呼叫明细", businessType = BusinessType.DELETE) | 
 |  |  |    @DeleteMapping("/{calldetailids}") | 
 |  |  |     public AjaxResult remove(@PathVariable String[] calldetailids) | 
 |  |  |     { | 
 |  |  |     @GetMapping("/remove/{calldetailids}") | 
 |  |  |     public AjaxResult remove(@PathVariable String[] calldetailids) { | 
 |  |  |         return toAjax(ivrTaskcalldetailService.deleteIvrTaskcalldetailByCalldetailids(calldetailids)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 患者问题结果记录 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("患者问题结果记录") | 
 |  |  |     @PostMapping("/saveQuestionAnswer") | 
 |  |  |     public AjaxResult saveQuestionAnswer(@RequestBody IvrTaskcalldetailReq ivrTaskcalldetailReq) { | 
 |  |  |         return toAjax(ivrTaskcalldetailService.saveQuestionAnswer(ivrTaskcalldetailReq)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |