|
|
@ -28,6 +28,7 @@
|
|
|
|
<result property="ruleName" column="rule_name"/>
|
|
|
|
<result property="ruleName" column="rule_name"/>
|
|
|
|
<result property="sort" column="sort"/>
|
|
|
|
<result property="sort" column="sort"/>
|
|
|
|
<result property="projectNo" column="project_no"/>
|
|
|
|
<result property="projectNo" column="project_no"/>
|
|
|
|
|
|
|
|
<result property="weight" column="weight"/>
|
|
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
@ -40,28 +41,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectQcCheckTypeProjectList" parameterType="QcCheckTypeProject" resultMap="QcCheckTypeProjectResult">
|
|
|
|
<select id="selectQcCheckTypeProjectList" parameterType="QcCheckTypeProject" resultMap="QcCheckTypeProjectResult">
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
ctp.id,
|
|
|
|
ctp.id,ctp.project_no,ctp.project_id,
|
|
|
|
ctp.project_no,
|
|
|
|
cp.rule_name,cp.property_code,cp.unit_code unit,ctp.type_id,
|
|
|
|
ctp.project_id,
|
|
|
|
ctp.standard_value,ctp.upper_diff,ctp.down_diff,ctp.sample,ctp.status,
|
|
|
|
cp.rule_name,
|
|
|
|
ctp.create_by, ctp.create_time,ctp.update_by,ctp.update_time,
|
|
|
|
cp.property_code,
|
|
|
|
ctp.factory_code, ctp.del_flag,ctp.group_id,ctp.material_code,ctp.sample_num,ctp.sort
|
|
|
|
cp.unit_code unit,
|
|
|
|
|
|
|
|
ctp.type_id,
|
|
|
|
|
|
|
|
ctp.standard_value,
|
|
|
|
|
|
|
|
ctp.upper_diff,
|
|
|
|
|
|
|
|
ctp.down_diff,
|
|
|
|
|
|
|
|
ctp.sample,
|
|
|
|
|
|
|
|
ctp.status,
|
|
|
|
|
|
|
|
ctp.create_by,
|
|
|
|
|
|
|
|
ctp.create_time,
|
|
|
|
|
|
|
|
ctp.update_by,
|
|
|
|
|
|
|
|
ctp.update_time,
|
|
|
|
|
|
|
|
ctp.factory_code,
|
|
|
|
|
|
|
|
ctp.del_flag,
|
|
|
|
|
|
|
|
ctp.group_id,
|
|
|
|
|
|
|
|
ctp.material_code,
|
|
|
|
|
|
|
|
ctp.sample_num,
|
|
|
|
|
|
|
|
ctp.sort
|
|
|
|
|
|
|
|
FROM qc_check_type_project ctp
|
|
|
|
FROM qc_check_type_project ctp
|
|
|
|
LEFT JOIN qc_check_project cp ON ctp.project_id = cp.id
|
|
|
|
LEFT JOIN qc_check_project cp ON ctp.project_id = cp.id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
@ -85,26 +69,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectQcCheckTypeProjectById" parameterType="String" resultMap="QcCheckTypeProjectResult">
|
|
|
|
<select id="selectQcCheckTypeProjectById" parameterType="String" resultMap="QcCheckTypeProjectResult">
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
ctp.id,
|
|
|
|
ctp.id,ctp.project_id,
|
|
|
|
ctp.project_id,
|
|
|
|
cp.rule_name,cp.property_code,
|
|
|
|
cp.rule_name,
|
|
|
|
ctp.type_id,ctp.standard_value,
|
|
|
|
cp.property_code,
|
|
|
|
ctp.upper_diff,ctp.down_diff,
|
|
|
|
ctp.type_id,
|
|
|
|
ctp.sample,ctp.status,
|
|
|
|
ctp.standard_value,
|
|
|
|
ctp.create_by,ctp.create_time,
|
|
|
|
ctp.upper_diff,
|
|
|
|
ctp.update_by,ctp.update_time,
|
|
|
|
ctp.down_diff,
|
|
|
|
ctp.factory_code,ctp.del_flag,
|
|
|
|
ctp.sample,
|
|
|
|
ctp.group_id,ctp.material_code,
|
|
|
|
ctp.status,
|
|
|
|
ctp.sample_num,ctp.sort,ctp.weight
|
|
|
|
ctp.create_by,
|
|
|
|
|
|
|
|
ctp.create_time,
|
|
|
|
|
|
|
|
ctp.update_by,
|
|
|
|
|
|
|
|
ctp.update_time,
|
|
|
|
|
|
|
|
ctp.factory_code,
|
|
|
|
|
|
|
|
ctp.del_flag,
|
|
|
|
|
|
|
|
ctp.group_id,
|
|
|
|
|
|
|
|
ctp.material_code,
|
|
|
|
|
|
|
|
ctp.sample_num,
|
|
|
|
|
|
|
|
ctp.sort
|
|
|
|
|
|
|
|
FROM qc_check_type_project ctp
|
|
|
|
FROM qc_check_type_project ctp
|
|
|
|
LEFT JOIN qc_check_project cp ON ctp.project_id = cp.id AND cp.del_flag = '0'
|
|
|
|
LEFT JOIN qc_check_project cp ON ctp.project_id = cp.id AND cp.del_flag = '0'
|
|
|
|
WHERE ctp.del_flag ='0' AND ctp.id = #{id}
|
|
|
|
WHERE ctp.del_flag ='0' AND ctp.id = #{id}
|
|
|
@ -279,6 +253,7 @@
|
|
|
|
<if test="unit != null">unit = #{unit},</if>
|
|
|
|
<if test="unit != null">unit = #{unit},</if>
|
|
|
|
<if test="propertyCode != null">property_code = #{propertyCode},</if>
|
|
|
|
<if test="propertyCode != null">property_code = #{propertyCode},</if>
|
|
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
|
|
|
|
|
|
<if test="weight != null">weight = #{weight},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|