Browse Source

fix:app语音

ct 3 days ago
parent
commit
6545f60e81

+ 2 - 2
fs-service/src/main/java/com/fs/course/mapper/FsCourseFinishTempMapper.java

@@ -87,9 +87,9 @@ public interface FsCourseFinishTempMapper
             "<if test = ' maps.status !=null '> " +
             "and t.status = #{maps.status} " +
             "</if>" +
-            "            <if test=\"userIds != null and !userIds.isEmpty()\">\n" +
+            "            <if test=\" maps.userIds != null and !maps.userIds.isEmpty()\">\n" +
             "                AND create_by IN\n" +
-            "                <foreach collection='userIds' item='item' open='(' separator=',' close=')'>\n" +
+            "                <foreach collection=' maps.userIds' item='item' open='(' separator=',' close=')'>\n" +
             "                    #{item}\n" +
             "                </foreach>\n" +
             "            </if>" +

+ 7 - 8
fs-service/src/main/java/com/fs/sop/service/impl/SopUserLogsInfoServiceImpl.java

@@ -1565,7 +1565,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
 
                     break;
                 case "15":
-                    //app语音
+                    //app文本
                     try {
                         qwSop = qwSopMapper.selectQwSopById(param.getSopId());
                         createVoiceUrl(st, companyUserId, qwSop);
@@ -1577,14 +1577,13 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
                     }
                     break;
                 case "16":
-                    //app文本
-                    String txt = StringUtil.strIsNullOrEmpty(qwUser.getWelcomeText()) ? "" : qwUser.getWelcomeText();
-                    st.setValue(st.getValue()
-                            .replaceAll("#客服称呼#", txt)
-                            .replaceAll("#销售称呼#", txt)
-                            .replaceAll("#客户称呼#", StringUtil.strIsNullOrEmpty(contact.getStageStatus()) || "0".equals(contact.getStageStatus()) ? "同学" : contact.getStageStatus()));
+                    //app语音
                     try {
-                        replaceContent(st.getContentType(), st.getValue(), st::setValue, words); // 替换 value
+                        qwSop = qwSopMapper.selectQwSopById(param.getSopId());
+                        createVoiceUrl(st, companyUserId, qwSop);
+                        if (qwUser.getCompanyUserId() != null) {
+                            createVoiceUrlToIm(st, String.valueOf(qwUser.getCompanyUserId()), qwSop);
+                        }
                     } catch (Exception e) {
                         throw new RuntimeException(e);
                     }