Procházet zdrojové kódy

[品牌][修改][品牌删除功能]

release_toaliyun_real
luozukai před 7 roky
rodič
revize
82f2567ef0
3 změnil soubory, kde provedl 8 přidání a 4 odebrání
  1. +2
    -0
      mallinkAdmin/src/main/resources/db/migration/V201906051308__L_ALTER_RENT.sql
  2. +3
    -1
      mallinkService/src/main/java/com/iformall/domain/po/WxBrand.java
  3. +3
    -3
      mallinkService/src/main/resources/mapper/WxBrandMapper.xml

+ 2
- 0
mallinkAdmin/src/main/resources/db/migration/V201906051308__L_ALTER_RENT.sql Zobrazit soubor

@@ -0,0 +1,2 @@
alter table wx_brand
add column `is_del` SMALLINT(1) DEFAULT 0 COMMENT '是否删除1是0否';

+ 3
- 1
mallinkService/src/main/java/com/iformall/domain/po/WxBrand.java Zobrazit soubor

@@ -3,7 +3,6 @@ package com.iformall.domain.po;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.ToString; import lombok.ToString;

import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient; import javax.persistence.Transient;
@@ -53,6 +52,9 @@ public class WxBrand extends BaseEntity{
@io.swagger.annotations.ApiModelProperty(value = "创始时间", name = "createdate") @io.swagger.annotations.ApiModelProperty(value = "创始时间", name = "createdate")
private Date createdate; private Date createdate;


@io.swagger.annotations.ApiModelProperty(value = "是否删除1是0否", name = "isDel")
private Integer isDel;

public static enum Field public static enum Field
{ {
Id_ASC("`id` ASC"),Id_DESC("`id` DESC") Id_ASC("`id` ASC"),Id_DESC("`id` DESC")


+ 3
- 3
mallinkService/src/main/resources/mapper/WxBrandMapper.xml Zobrazit soubor

@@ -10,15 +10,15 @@
<result column="logo" jdbcType="VARCHAR" property="logo"/> <result column="logo" jdbcType="VARCHAR" property="logo"/>
<result column="summary" jdbcType="VARCHAR" property="summary"/> <result column="summary" jdbcType="VARCHAR" property="summary"/>
<result column="createdate" jdbcType="TIMESTAMP" property="createdate"/> <result column="createdate" jdbcType="TIMESTAMP" property="createdate"/>
<result column="is_del" property="isDel"/>
</resultMap> </resultMap>
<sql id="allColumns"> <sql id="allColumns">
`id`,`name`,`createtime`,`updatetime`,`tenant_id`,`logo`,`summary`,`createdate`
`id`,`name`,`createtime`,`updatetime`,`tenant_id`,`logo`,`summary`,`createdate`,is_del
</sql> </sql>


<sql id="dynamicWhereConditions"> <sql id="dynamicWhereConditions">
where 1 = 1
where is_del = 0
<if test=" null != id "> and `id` = #{id} </if> <if test=" null != id "> and `id` = #{id} </if>
<if test=" null != name "> and `name` like concat('%',#{name},'%') </if> <if test=" null != name "> and `name` like concat('%',#{name},'%') </if>
<if test=" null != createtime "> and `createtime` = #{createtime} </if> <if test=" null != createtime "> and `createtime` = #{createtime} </if>


Načítá se…
Zrušit
Uložit