| | |
| | | import cn.gistack.sm.intelligentCall.entity.CallNotFillRecord; |
| | | import cn.gistack.sm.intelligentCall.service.ICallNotFillRecordService; |
| | | import cn.gistack.sm.intelligentCall.vo.CallNotFillRecordVO; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | /** |
| | | * 外呼未接信息填报记录 |
| | | * |
| | | * @author zhongrj |
| | | * @date 2023-06-13 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 自定义分页列表查询 |
| | | * |
| | | * @param query |
| | | * @param callNotFillRecord |
| | | * @return |
| | |
| | | @PostMapping(value = "/add") |
| | | public R add(@RequestBody CallNotFillRecord callNotFillRecord) { |
| | | callNotFillRecord.setCreateTime(new Date()); |
| | | // 判断是否已填报,如果已填报,则不新增 |
| | | CallNotFillRecord notFillRecord = callNotFillRecordService.getOne(new QueryWrapper<CallNotFillRecord>().eq("call_id", callNotFillRecord.getCallId())); |
| | | if (notFillRecord != null){ |
| | | return R.data("已填报,请勿再填报"); |
| | | } |
| | | return R.data(callNotFillRecordService.save(callNotFillRecord)); |
| | | } |
| | | |