Browse Source

//voiceMould

private_deployment
xhxu 1 year ago
parent
commit
ec09b70ae1
3 changed files with 47 additions and 2 deletions
  1. +3
    -0
      suimangService/src/main/java/com/iformall/domain/po/sm/VoiceMould.java
  2. +37
    -0
      suimangService/src/main/java/com/iformall/enums/EnumVoiceType.java
  3. +7
    -2
      suimangService/src/main/resources/mapper/VoiceMouldMapper.xml

+ 3
- 0
suimangService/src/main/java/com/iformall/domain/po/sm/VoiceMould.java View File

@@ -129,6 +129,9 @@ public class VoiceMould extends TenantEntity {
@io.swagger.annotations.ApiModelProperty(value="模板第三方Id",name="mouldSmId")
private String mouldSmId;

@io.swagger.annotations.ApiModelProperty(value="EnumVoiceType",name="voiceType")
private Integer voiceType;

@io.swagger.annotations.ApiModelProperty(value="EnumPersonaType",name="personaType")
private Integer personaType;
@TableField(exist = false)


+ 37
- 0
suimangService/src/main/java/com/iformall/enums/EnumVoiceType.java View File

@@ -0,0 +1,37 @@
package com.iformall.enums;

/**
*
*/
public enum EnumVoiceType {

default_0(0, "默认"),
persona(1,"角色风格"),
speak(2, "说话风格"),
;

public static EnumVoiceType getEnum(Integer code) {
for (EnumVoiceType value : values()) {
if (value.getCode().equals(code)) {
return value;
}
}
return null;
}

private Integer code;
private String message;

EnumVoiceType(Integer code, String message) {
this.code = code;
this.message = message;
}

public Integer getCode() {
return code;
}

public String getMessage() {
return message;
}
}

+ 7
- 2
suimangService/src/main/resources/mapper/VoiceMouldMapper.xml View File

@@ -22,6 +22,7 @@
<result column="detail" jdbcType="VARCHAR" property="detail"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="mould_sm_id" jdbcType="VARCHAR" property="mouldSmId"/>
<result column="voice_type" jdbcType="INTEGER" property="voiceType"/>
<result column="persona_type" jdbcType="INTEGER" property="personaType"/>
<result column="speak_type" jdbcType="INTEGER" property="speakType"/>
<result column="example_video_id" jdbcType="VARCHAR" property="exampleVideoId"/>
@@ -34,7 +35,7 @@
<sql id="allColumns">
`id`, `tenant_id`, `parent_tenant_id`, `parent_id`, `count_sub`, `cover_img`, `cover_picture`, `detail_picture`,
`title`, `sub_title`, `sex`, `age_type`, `languages`, `scene_sign`, `sale_price`, `price`,
`send_type`, `detail`, `remark`, `mould_sm_id`,`persona_type`,`speak_type`, `example_video_id`, `status`, `puton_date`, `create_date`, `update_date`
`send_type`, `detail`, `remark`, `mould_sm_id`,`voice_type`,`persona_type`,`speak_type`, `example_video_id`, `status`, `puton_date`, `create_date`, `update_date`
</sql>

<sql id="dynamicWhereConditions">
@@ -99,6 +100,10 @@
and `status` = #{status}
</if>

<if test=" null != voiceType ">
and `voice_type` = #{voiceType}
</if>

<if test=" null != personaType ">
and `persona_type` = #{personaType}
</if>
@@ -139,7 +144,7 @@
select
`id`, `parent_tenant_id`, `parent_id`, `cover_img`, `cover_picture`,
`title`, `sub_title`, `sex`, `age_type`, `languages`, `scene_sign`, `sale_price`, `price`,
`send_type`, `mould_sm_id`,`persona_type`,`speak_type`, `status`,`example_video_id`, `create_date`, `update_date`
`send_type`, `mould_sm_id`,`voice_type`,`persona_type`,`speak_type`, `status`,`example_video_id`, `create_date`, `update_date`
from voice_mould
<include refid="dynamicWhereConditions"/>
</select>


Loading…
Cancel
Save