kongzy
2024-06-24 4910e41f81a85c03a9dfc83f8ec9c1e71c123d49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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.ExCompanyPeriodMapper">
 
    <select id="selectCompanyPeriodList" resultType="com.gkhy.exam.system.domain.ExCompanyPeriod">
        select * from ex_company_period
        <where>
                <if test="companyId!=null">
                    and company_id=#{companyId}
                </if>
        </where>
        order by create_time desc
    </select>
</mapper>