Quellcode durchsuchen

Merge branch 'master' of http://1.14.104.71:10880/wushubo/easycallcenter365-gui-dev

yzx vor 3 Tagen
Ursprung
Commit
4bfb8d215d

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/aicall/controller/ApiController.java

@@ -1769,6 +1769,19 @@ public class ApiController extends BaseController {
         return AjaxResult.success(list);
     }
 
+    /**
+     * 根据UUID查询自动外呼对话详情
+     */
+    @PostMapping( "/getCcCallPhoneByUuid")
+    @ResponseBody
+    public AjaxResult getCcCallPhoneByUuid(@RequestBody CcCallPhone callPhone)
+    {
+        if(callPhone==null || StringUtils.isBlank(callPhone.getUuid())){
+            return AjaxResult.error(AjaxResult.Type.INVALID_PARAM, "callPhone或uuid不能为空!", "");
+        }
+        return AjaxResult.success(ccCallPhoneService.selectCcCallPhoneDialogueByUuid(callPhone.getUuid()));
+    }
+
     /**
      * 修改任务
      * @param ccCallTask

+ 2 - 0
ruoyi-admin/src/main/java/com/ruoyi/aicall/mapper/CcCallPhoneMapper.java

@@ -93,4 +93,6 @@ public interface CcCallPhoneMapper
     List<CcCallPhone> selectCcCallPhoneYlrzList(CcCallPhone ccCallPhone);
 
     List<CcCallPhone> selectCcCallPhoneListByIds(List<String> callPhoneIds);
+
+    String selectCcCallPhoneDialogueByUuid(@Param("uuid") String uuid);
 }

+ 2 - 0
ruoyi-admin/src/main/java/com/ruoyi/aicall/service/ICcCallPhoneService.java

@@ -91,4 +91,6 @@ public interface ICcCallPhoneService
     List<CcCallPhone> selectCcCallPhoneYlrzList(CcCallPhone ccCallPhone);
 
     List<CcCallPhone> selectCcCallPhoneListByIds(List<String> callPhoneIds);
+
+    String selectCcCallPhoneDialogueByUuid(String uuid);
 }

+ 5 - 0
ruoyi-admin/src/main/java/com/ruoyi/aicall/service/impl/CcCallPhoneServiceImpl.java

@@ -277,4 +277,9 @@ public class CcCallPhoneServiceImpl implements ICcCallPhoneService
     public List<CcCallPhone> selectCcCallPhoneListByIds(List<String> callPhoneIds) {
         return ccCallPhoneMapper.selectCcCallPhoneListByIds(callPhoneIds);
     }
+
+    @Override
+    public String selectCcCallPhoneDialogueByUuid(String uuid) {
+        return ccCallPhoneMapper.selectCcCallPhoneDialogueByUuid(uuid);
+    }
 }

+ 3 - 0
ruoyi-admin/src/main/resources/mapper/aicall/CcCallPhoneMapper.xml

@@ -345,4 +345,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             #{id}
         </foreach>
     </select>
+    <select id="selectCcCallPhoneDialogueByUuid" resultType="java.lang.String">
+        select dialogue from cc_call_phone where uuid = #{uuid} limit 1
+    </select>
 </mapper>