44323
2024-04-23 16b704d18a875d1fb63827aaa507790ba2bef5be
guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptMapper.xml
@@ -29,9 +29,26 @@
    <select id="list" resultType="map">
        select * from sys_dept
        <if test="condition != null and condition != ''">
            where simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%')
            where fullname like CONCAT('%',#{condition},'%')
        </if>
        order by num ASC
    </select>
    <select id="getList" resultType="com.stylefeng.guns.modular.system.model.Dept">
        select t1.* from sys_dept t1
        where 1=1
        <if test="null != req.deptName and '' != req.deptName">
            and t1.fullname like CONCAT('%', #{req.deptName}, '%')
        </if>
        order by t1.insertTime desc
    </select>
    <select id="getList1" resultType="com.stylefeng.guns.modular.system.model.Dept">
        select t1.* from sys_dept t1
        where 1=1
        <if test="null != req.deptName and '' != req.deptName">
            and t1.fullname like CONCAT('%', #{req.deptName}, '%')
        </if>
        order by t1.insertTime desc
    </select>
</mapper>