heheng
2 天以前 75960d6e223f8cab9ceb489f6b89f5f08c6db62a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gkhy.exam.system.mapper.StandingBookMapper">
 
 
 
 
    <select id="getStandingBooks" parameterType="com.gkhy.exam.system.domain.StandingBook" resultType="com.gkhy.exam.system.domain.StandingBook">
            select a.*,b.dept_name as deptName from standing_book a
                left join sys_dept b on a.dept_id = b.dept_id
        where del_flag = 0
        <if test="companyId != null">
            and a.company_id = #{companyId}
        </if>
        order by a.create_time desc
    </select>
 
</mapper>