智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/licet/mapper/LicetMapper.xml
@@ -12,7 +12,35 @@
    <select id="selectLicetPage" resultMap="licetResultMap">
        select * from sys_licet where is_deleted = 0
        select * from sys_licet where 1=1
        <if test="licet.ptype!=null and licet.ptype!=''">
            and ptype = #{licet.ptype}
        </if>
        order by id asc
    </select>
    <select id="selectLicets" resultType="java.util.HashMap">
        select
        <trim suffixOverrides="," >
            <if test="id != null and id !=''" >
                id,
            </if>
            <if test="ptype != null and ptype !=''" >
                ptype,
            </if>
            <if test="originalname != null and originalname !=''" >
                originalname,
            </if>
            <if test="template != null and template !=''" >
                ifnull(template,"") template,
            </if>
        </trim>
        from sys_licet
        where 1=1
        <if test="licet.ptype!=null and licet.ptype!=''">
            and ptype = #{licet.ptype}
        </if>
        order by id asc
    </select>
</mapper>