洪城义警-正式版后台
zengh
2021-08-05 2c19b1c16d392905e33e995e7c13faa598d5a867
src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
@@ -3,7 +3,7 @@
<mapper namespace="org.springblade.modules.zc.mapper.ZcMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="zcResultMap" type="org.springblade.modules.zc.entity.Zc">
    <resultMap id="zcResultMap" type="org.springblade.modules.zc.vo.ZcVO">
        <id column="id" property="id"/>
        <result column="username" property="username"/>
        <result column="password" property="password"/>
@@ -18,7 +18,21 @@
    <select id="selectZcPage" resultMap="zcResultMap">
        select * from act_zc where is_deleted = 0
        select * from act_zc where
        1 = 1
        <if test="zc.username != null and zc.username != '' ">
            and username like CONCAT('%',#{zc.username},'%')
        </if>
        <if test="zc.sname != null and zc.sname != '' ">
            and sname like CONCAT('%',#{zc.sname},'%')
        </if>
        <if test="zc.sex != null and zc.sex != '' ">
            and sex like CONCAT('%',#{zc.sex},'%')
        </if>
        <if test="zc.type != null and zc.type != '' ">
            and type like CONCAT('%',#{zc.type},'%')
        </if>
        and type != 1
    </select>