管道基础大数据平台系统开发-【后端】-Server
Surpriseplus
2022-10-12 52dff0802db6bc1cf90717603f32ccf867fbcb23
src/main/resources/mapper/sys/TokenMapper.xml
@@ -13,8 +13,13 @@
    <select id="selectCount" resultType="java.lang.Integer" parameterType="java.lang.String">
        select count(*) from lf.sys_token
        <where>
            <if test="token != null">
                token = #{token}
            1=1
            <if test="name != null">
                and token = #{name}
            </if>
            <if test="type != null">
                and type = #{type}
            </if>
        </where>
    </select>
@@ -23,8 +28,13 @@
    <select id="selectByPage" resultMap="resultMap" resultType="com.lf.server.entity.sys.TokenEntity">
        select * from lf.sys_token
        <where>
            <if test="token != null">
                token = #{token}
            1=1
            <if test="name != null">
                and token = #{name}
            </if>
            <if test="type != null">
                and type = #{type}
            </if>
        </where>
        order by id