winter 1 anno fa
parent
commit
cac8c966f3
5 ha cambiato i file con 24 aggiunte e 3 eliminazioni
  1. +8
    -0
      suimangAdmin/src/main/resources/db/migration/V2023110300001_personmould.sql
  2. +4
    -0
      suimangService/src/main/java/com/iformall/domain/po/sm/PersonMould.java
  3. +3
    -0
      suimangService/src/main/java/com/iformall/domain/po/sm/VoiceLanguage.java
  4. +8
    -2
      suimangService/src/main/resources/mapper/PersonMouldMapper.xml
  5. +1
    -1
      suimangService/src/main/resources/mapper/VoiceLanguageMapper.xml

+ 8
- 0
suimangAdmin/src/main/resources/db/migration/V2023110300001_personmould.sql Vedi File

@@ -0,0 +1,8 @@
ALTER TABLE `person_mould`
ADD COLUMN customized int(1) NOT NULL DEFAULT 0 COMMENT '是否私人定制EnumYesOrNo' AFTER `is_del`;

##更新这几个表
apimenu,apiguide,apidetail,thirdpartyapi

ALTER TABLE `voice_language`
ADD COLUMN customized int(1) NOT NULL DEFAULT 0 COMMENT '是否私人定制EnumYesOrNo' AFTER `is_del`;

+ 4
- 0
suimangService/src/main/java/com/iformall/domain/po/sm/PersonMould.java Vedi File

@@ -124,6 +124,10 @@ public class PersonMould extends TenantEntity {
private Date createDate; private Date createDate;
@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate") @io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate")
private Date updateDate; private Date updateDate;
@io.swagger.annotations.ApiModelProperty(value="isDel",name="isDel")
private Integer isDel;
@io.swagger.annotations.ApiModelProperty(value="是否私人定制EnumYesOrNo",name="customized")
private Integer customized;




public String getSalePriceStr() { public String getSalePriceStr() {


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

@@ -59,5 +59,8 @@ public class VoiceLanguage extends TenantEntity {
* 是否删除1是0否 * 是否删除1是0否
*/ */
private Integer isDel; private Integer isDel;
@io.swagger.annotations.ApiModelProperty(value="是否私人定制EnumYesOrNo",name="customized")
private Integer customized;


} }

+ 8
- 2
suimangService/src/main/resources/mapper/PersonMouldMapper.xml Vedi File

@@ -28,13 +28,15 @@
<result column="puton_date" jdbcType="TIMESTAMP" property="putonDate"/> <result column="puton_date" jdbcType="TIMESTAMP" property="putonDate"/>
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/> <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
<result column="is_del" jdbcType="INTEGER" property="isDel"/>
<result column="customized" jdbcType="INTEGER" property="customized"/>
</resultMap> </resultMap>


<sql id="allColumns"> <sql id="allColumns">
`id`, `tenant_id`, `parent_tenant_id`, `video_type`, `cover_img`, `cover_picture`, `detail_picture`, `id`, `tenant_id`, `parent_tenant_id`, `video_type`, `cover_img`, `cover_picture`, `detail_picture`,
`title`, `sub_title`, `sex`, `age`, `colour`, `scene_sign`, `sale_price`, `price`, `title`, `sub_title`, `sex`, `age`, `colour`, `scene_sign`, `sale_price`, `price`,
`send_type`, `detail`, `remark`, `mould_sm_id`,`material`,`background_id`,`background_material`, `send_type`, `detail`, `remark`, `mould_sm_id`,`material`,`background_id`,`background_material`,
`status`, `puton_date`, `create_date`, `update_date`
`status`, `puton_date`, `create_date`, `update_date`,`is_del`,`customized`
</sql> </sql>


<sql id="dynamicWhereConditions"> <sql id="dynamicWhereConditions">
@@ -101,6 +103,10 @@
<if test=" null != endDate"> <if test=" null != endDate">
and create_date &lt; #{endDate} and create_date &lt; #{endDate}
</if> </if>
<if test=" null != customized">
and customized = #{customized}
</if>


<if test=" null != ids "> <if test=" null != ids ">
and id in and id in
@@ -128,7 +134,7 @@
`id`, `video_type`, `cover_img`, `cover_picture`, `id`, `video_type`, `cover_img`, `cover_picture`,
`title`, `sub_title`, `sex`, `age`, `colour`, `scene_sign`, `sale_price`, `price`, `title`, `sub_title`, `sex`, `age`, `colour`, `scene_sign`, `sale_price`, `price`,
`send_type`, `mould_sm_id`,`material`,`background_id`,`background_material`, `send_type`, `mould_sm_id`,`material`,`background_id`,`background_material`,
`status`, `create_date`, `update_date`
`status`, `create_date`, `update_date`,`customized`
from person_mould from person_mould
<include refid="dynamicWhereConditions"/> <include refid="dynamicWhereConditions"/>
</select> </select>


+ 1
- 1
suimangService/src/main/resources/mapper/VoiceLanguageMapper.xml Vedi File

@@ -3,7 +3,7 @@
<mapper namespace="com.iformall.mapper.VoiceLanguageMapper"> <mapper namespace="com.iformall.mapper.VoiceLanguageMapper">


<sql id="allColumns"> <sql id="allColumns">
`id`, `tenant_id`, `parent_tenant_id`, `language`, `country`, `local`, `name`, `chinese_name`, `img`, `create_date`, `update_date`, `is_del`
`id`, `tenant_id`, `parent_tenant_id`, `language`, `country`, `local`, `name`, `chinese_name`, `img`, `create_date`, `update_date`, `is_del`,`customized`
</sql> </sql>
<insert id="saveBatch" parameterType="java.util.HashSet"> <insert id="saveBatch" parameterType="java.util.HashSet">
INSERT INTO voice_language (`id`, `country`, INSERT INTO voice_language (`id`, `country`,


Caricamento…
Annulla
Salva