浏览代码

fix

photo
winter 1年前
父节点
当前提交
cac8c966f3
共有 5 个文件被更改,包括 24 次插入3 次删除
  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 查看文件

@@ -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 查看文件

@@ -124,6 +124,10 @@ public class PersonMould extends TenantEntity {
private Date createDate;
@io.swagger.annotations.ApiModelProperty(value="更新时间",name="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() {


+ 3
- 0
suimangService/src/main/java/com/iformall/domain/po/sm/VoiceLanguage.java 查看文件

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

}

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

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

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

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


+ 1
- 1
suimangService/src/main/resources/mapper/VoiceLanguageMapper.xml 查看文件

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

<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>
<insert id="saveBatch" parameterType="java.util.HashSet">
INSERT INTO voice_language (`id`, `country`,


正在加载...
取消
保存