feat(后台管理): 关键字管理

添加关键字菜单基础代码
master
wayn 4 years ago
parent 79887b7600
commit 647454683a

@ -3,15 +3,15 @@ package com.wayn.common.core.domain.shop;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.wayn.common.base.entity.ShopBaseEntity;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDateTime;
/** /**
* <p> * <p>
* * `
* </p> * </p>
* *
* @author wayn * @author wayn
@ -20,7 +20,7 @@ import java.time.LocalDateTime;
@Data @Data
@TableName("shop_keyword") @TableName("shop_keyword")
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
public class Keyword implements Serializable { public class Keyword extends ShopBaseEntity implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -57,16 +57,6 @@ public class Keyword implements Serializable {
*/ */
private Integer sortOrder; private Integer sortOrder;
/**
*
*/
private LocalDateTime createTime;
/**
*
*/
private LocalDateTime updateTime;
/** /**
* 0 1 * 0 1
*/ */

@ -22,21 +22,22 @@
keyword, jump_type, url, is_hot, is_default, sort_order, create_time, update_time, del_flag keyword, jump_type, url, is_hot, is_default, sort_order, create_time, update_time, del_flag
from shop_keyword from shop_keyword
</sql> </sql>
<select id="selectKeywordListPage" resultType="com.wayn.common.core.domain.shop.Keyword"> <select id="selectKeywordListPage" resultType="com.wayn.common.core.domain.shop.Keyword">
<include refid="selectKeywordVo"/> <include refid="selectKeywordVo"/>
<where> <where>
del_flag = 0 del_flag = 0
<if test="keyword != null and keyword != ''"> <if test="keyword.keyword != null and keyword.keyword != ''">
AND keyword like concat('%', #{keyword}, '%') AND keyword like concat('%', #{keyword.keyword}, '%')
</if> </if>
<if test="is_hot != null"> <if test="keyword.isHot != null">
AND is_hot = #{isHot} AND is_hot = #{keyword.isHot}
</if> </if>
<if test="is_default != null"> <if test="keyword.isDefault != null">
AND is_default = #{isDefault} AND is_default = #{keyword.isDefault}
</if> </if>
</where> </where>
order by sort_order desc, create_time desc order by sort_order, create_time desc
</select> </select>

Loading…
Cancel
Save