<?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.ProductProcessParamMapper">
|
|
<resultMap id="ProductProcessParamResult" type="com.ruoyi.production.pojo.ProductProcessParam">
|
<id property="id" column="id"/>
|
<result property="processId" column="process_id"/>
|
<result property="paramId" column="param_id"/>
|
<result property="standardValue" column="standard_value"/>
|
<result property="minValue" column="min_value"/>
|
<result property="maxValue" column="max_value"/>
|
<result property="isRequired" column="is_required"/>
|
<result property="sort" column="sort"/>
|
<result property="tenantId" column="tenant_id"/>
|
<result property="createTime" column="create_time"/>
|
<result property="updateTime" column="update_time"/>
|
</resultMap>
|
|
<select id="selectDtoListByProcessId" resultType="com.ruoyi.production.dto.ProductProcessParamDto"
|
parameterType="java.lang.Long">
|
SELECT ppp.id,
|
ppp.process_id,
|
ppp.param_id,
|
ppp.standard_value,
|
ppp.min_value,
|
ppp.max_value,
|
ppp.is_required,
|
ppp.sort,
|
ppp.create_time,
|
ppp.update_time,
|
bp.param_name,
|
bp.param_type,
|
bp.param_format,
|
bp.value_mode,
|
bp.unit
|
FROM product_process_param ppp
|
LEFT JOIN base_param bp ON ppp.param_id = bp.id
|
WHERE ppp.process_id = #{processId}
|
ORDER BY ppp.sort ASC
|
</select>
|
|
|
</mapper>
|