<?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>
|