tuqin
14 小时以前 2c4bc1808f272b7d7282d1b8ba416d606ebc7df5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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.ProductionCostingProcessMapper">
 
    <select id="selectProcessList" resultType="com.ruoyi.production.pojo.ProductionCostingProcess">
        select p.id, p.process_id, p.dept_type, p.remark,
               p.create_user, p.create_time, p.update_user, p.update_time,
               too.name as processName
        from production_costing_process p
        left join technology_operation too on too.id = p.process_id
        <where>
            <if test="c != null">
                <if test="c.deptType != null">
                    and p.dept_type = #{c.deptType}
                </if>
                <if test="c.processId != null">
                    and p.process_id = #{c.processId}
                </if>
            </if>
        </where>
        order by p.dept_type asc, p.process_id asc
    </select>
 
</mapper>