forked from Gitlink/microservices
feat(会员发布文章):初始化会员身份与菜单数据
This commit is contained in:
parent
0b5fe46e93
commit
f3b6e8069c
|
|
@ -13,6 +13,12 @@ import lombok.Data;
|
|||
@ApiModel("专区申请搜索对象")
|
||||
public class ZoneApplicationSearchVo extends BaseEntity {
|
||||
|
||||
@ApiModelProperty(value = "搜索输入,专区名称、联系人、联系电话")
|
||||
private String searchInput;
|
||||
@ApiModelProperty(value = "搜索输入:专区名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "搜索输入:联系人")
|
||||
private String contactPerson;
|
||||
|
||||
@ApiModelProperty(value = "搜索输入:联系电话")
|
||||
private String contactPhone;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ package com.ruoyi.zone.detail.mapper;
|
|||
|
||||
import java.util.List;
|
||||
import com.ruoyi.zone.detail.domain.ZoneApplication;
|
||||
import com.ruoyi.zone.detail.domain.vo.ZoneApplicationSearchVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 特色专区申请Mapper接口
|
||||
|
|
@ -65,8 +65,8 @@ public interface ZoneApplicationMapper
|
|||
/**
|
||||
* 根据输入匹配专区名、联系人、联系电话
|
||||
*
|
||||
* @param searchInput
|
||||
* @param zoneApplicationSearchVo
|
||||
* @return 特色专区申请集合
|
||||
*/
|
||||
List<ZoneApplication> selectZoneApplicationListBySearchInput(@Param("searchInput") String searchInput);
|
||||
List<ZoneApplication> selectZoneApplicationListBySearchInput(ZoneApplicationSearchVo zoneApplicationSearchVo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class ZoneApplicationServiceImpl implements IZoneApplicationService
|
|||
@Override
|
||||
public List<ZoneApplication> selectZoneApplicationListBySearchInput(ZoneApplicationSearchVo zoneApplicationSearchVo) {
|
||||
|
||||
return zoneApplicationMapper.selectZoneApplicationListBySearchInput(zoneApplicationSearchVo.getSearchInput());
|
||||
return zoneApplicationMapper.selectZoneApplicationListBySearchInput(zoneApplicationSearchVo);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -42,12 +42,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<include refid="selectZoneApplicationVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectZoneApplicationListBySearchInput"
|
||||
<select id="selectZoneApplicationListBySearchInput" parameterType="com.ruoyi.zone.detail.domain.vo.ZoneApplicationSearchVo"
|
||||
resultMap="ZoneApplicationResult">
|
||||
<include refid="selectZoneApplicationVo"/>
|
||||
<where>
|
||||
<if test="searchInput != null and searchInput != ''"> and CONCAT(`name`,`contact_person`,`contact_phone`) like concat('%', #{searchInput}, '%')</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="contactPerson != null and contactPerson != ''"> and contact_person like concat('%', #{contactPerson}, '%')</if>
|
||||
<if test="contactPhone != null and contactPhone != ''"> and contact_phone like concat('%', #{contactPhone}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
-- cms文章表中添加审核相关字段,并添加文章审核menu及赋予角色menu权限
|
||||
-- 初始化会员与文章相关菜单和按钮权限数据
|
||||
SET
|
||||
FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue