liu
5 天以前 5d25a8a01ae3070668bc60b2597591ef2ba13e5b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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.ruoyi.production.mapper.ProductionCostingFactorMapper">
 
    <select id="selectFactorList" resultType="com.ruoyi.production.pojo.ProductionCostingFactor">
        select f.id, f.process_id, f.staff_id, f.staff_name, f.violin_factor, f.viola_factor, f.bass_factor, f.remark,
               f.create_user, f.create_time, f.update_user, f.update_time,
               too.name as processName
        from production_costing_factor f
        left join technology_operation too on too.id = f.process_id
        <where>
            <if test="c != null">
                <if test="c.processId != null">
                    and f.process_id = #{c.processId}
                </if>
                <if test="c.staffId != null">
                    and f.staff_id = #{c.staffId}
                </if>
                <if test="c.staffName != null and c.staffName != ''">
                    and f.staff_name like concat('%', #{c.staffName}, '%')
                </if>
            </if>
        </where>
        order by f.process_id asc, f.staff_id asc
    </select>
 
</mapper>