瀏覽代碼

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

release_toaliyun_real
luozukai 7 年之前
父節點
當前提交
82f2567ef0
共有 3 個檔案被更改,包括 8 行新增4 行删除
  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 查看文件

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

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

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

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

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


+ 3
- 3
mallinkService/src/main/resources/mapper/WxBrandMapper.xml 查看文件

@@ -10,15 +10,15 @@
<result column="logo" jdbcType="VARCHAR" property="logo"/>
<result column="summary" jdbcType="VARCHAR" property="summary"/>
<result column="createdate" jdbcType="TIMESTAMP" property="createdate"/>
<result column="is_del" property="isDel"/>
</resultMap>
<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 id="dynamicWhereConditions">
where 1 = 1
where is_del = 0
<if test=" null != id "> and `id` = #{id} </if>
<if test=" null != name "> and `name` like concat('%',#{name},'%') </if>
<if test=" null != createtime "> and `createtime` = #{createtime} </if>


Loading…
取消
儲存