瀏覽代碼

fix

photo
winter 1 年之前
父節點
當前提交
1f669f45e5
共有 4 個檔案被更改,包括 8 行新增2 行删除
  1. +3
    -0
      suimangAdmin/src/main/resources/db/migration/V2023110300001_personmould.sql
  2. +2
    -0
      suimangService/src/main/java/com/iformall/domain/po/WxCVoiceTable.java
  3. +1
    -0
      suimangService/src/main/java/com/iformall/service/impl/WxCVoiceServiceImpl.java
  4. +2
    -2
      suimangService/src/main/resources/mapper/WxCVoiceMapper.xml

+ 3
- 0
suimangAdmin/src/main/resources/db/migration/V2023110300001_personmould.sql 查看文件

@@ -66,3 +66,6 @@ CREATE TABLE `user_voice_language` (


ALTER TABLE `service_video_record` ALTER TABLE `service_video_record`
ADD COLUMN user_mould_video_id bigint NOT NULL COMMENT '视频记录ID'; ADD COLUMN user_mould_video_id bigint NOT NULL COMMENT '视频记录ID';

ALTER TABLE `voice_language`
ADD COLUMN trial_text varchar(100) COMMENT '试听文本内容';

+ 2
- 0
suimangService/src/main/java/com/iformall/domain/po/WxCVoiceTable.java 查看文件

@@ -54,6 +54,8 @@ public class WxCVoiceTable {
private String styleDisplayName; private String styleDisplayName;
@io.swagger.annotations.ApiModelProperty(value = "声纹风格样例文件链接", name = "style_demo") @io.swagger.annotations.ApiModelProperty(value = "声纹风格样例文件链接", name = "style_demo")
private String styleDemo; private String styleDemo;
@io.swagger.annotations.ApiModelProperty(value = "试听内容", name = "trialText")
private String trialText;




} }


+ 1
- 0
suimangService/src/main/java/com/iformall/service/impl/WxCVoiceServiceImpl.java 查看文件

@@ -60,6 +60,7 @@ public class WxCVoiceServiceImpl implements WxCVoiceService {
audio = new HashMap<>(); audio = new HashMap<>();
audio.put("LocaleName", wxCVoiceTable.getLocalelName()); audio.put("LocaleName", wxCVoiceTable.getLocalelName());
audio.put("displayname", wxCVoiceTable.getLocalDisPlayName()); audio.put("displayname", wxCVoiceTable.getLocalDisPlayName());
audio.put("TrialText", wxCVoiceTable.getTrialText());
audioList.put(wxCVoiceTable.getLanguageId(),audio); audioList.put(wxCVoiceTable.getLanguageId(),audio);
} }
List<Map<String, Object>> voiceList = (List<Map<String, Object>>) audio.get("voiceList"); List<Map<String, Object>> voiceList = (List<Map<String, Object>>) audio.get("voiceList");


+ 2
- 2
suimangService/src/main/resources/mapper/WxCVoiceMapper.xml 查看文件

@@ -21,7 +21,7 @@
<result column="style_name" jdbcType="VARCHAR" property="styleName"/> <result column="style_name" jdbcType="VARCHAR" property="styleName"/>
<result column="style_display_name" jdbcType="VARCHAR" property="styleDisplayName"/> <result column="style_display_name" jdbcType="VARCHAR" property="styleDisplayName"/>
<result column="style_demo" jdbcType="VARCHAR" property="styleDemo"/> <result column="style_demo" jdbcType="VARCHAR" property="styleDemo"/>
<result column="trial_text" jdbcType="VARCHAR" property="trialText"/>
</resultMap> </resultMap>




@@ -35,7 +35,7 @@
<!-- </select> --> <!-- </select> -->
<select id="getById" resultMap="BaseResultMap"> <select id="getById" resultMap="BaseResultMap">
select wca.user_name,wca.resource_id,wca.expire_time,vi.id,vi.language_id,vi.sex,vi.display_name,vi.local_name,vi.mould_sm_id,vi.style_list, select wca.user_name,wca.resource_id,wca.expire_time,vi.id,vi.language_id,vi.sex,vi.display_name,vi.local_name,vi.mould_sm_id,vi.style_list,
vl.name,vl.chinese_name
vl.name,vl.chinese_name,vl.trial_text
FROM wx_c_author wca FROM wx_c_author wca
join voice_info vi on wca.resource_id = vi.id join voice_info vi on wca.resource_id = vi.id
join voice_language vl on vi.language_id =vl.id join voice_language vl on vi.language_id =vl.id


Loading…
取消
儲存