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