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

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

Loading…
Cancel
Save