“djh”
9 hours ago 2d9bf42ce507096c3b73a782da3ad16f29d2ccdc
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.OutsourcedCommonMapper">
 
    <select id="selectOutsourcedCommonList" resultType="com.gkhy.exam.system.domain.OutsourcedCommon"
            parameterType="com.gkhy.exam.system.domain.OutsourcedCommon">
        select a.*, b.supplier_name as supplierName from outsourced_common a
        left join supplier_sure b on a.supplier_id = b.id
        where a.del_flag = 0
        <if test="companyId != null">
            and a.company_id = #{companyId}
        </if>
        <if test="year!=null and year !=''">
            and a.`year` = #{year}
        </if>
        order by a.create_time desc
    </select>
</mapper>