|
|
@ -111,6 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
left join qc_check_project qcp on qcp.id = qctp.project_id
|
|
|
|
left join qc_check_project qcp on qcp.id = qctp.project_id
|
|
|
|
where qctp.del_flag = '0' and qctp.status = '0'
|
|
|
|
where qctp.del_flag = '0' and qctp.status = '0'
|
|
|
|
and qctp.material_code = #{materialCode}
|
|
|
|
and qctp.material_code = #{materialCode}
|
|
|
|
|
|
|
|
and qctp.type_id = #{typeId}
|
|
|
|
order by qctp.sort
|
|
|
|
order by qctp.sort
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="getTPByTypeGroup" resultType="com.op.quality.domain.QcCheckTaskDetail">
|
|
|
|
<select id="getTPByTypeGroup" resultType="com.op.quality.domain.QcCheckTaskDetail">
|
|
|
@ -131,6 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
left join qc_check_project qcp on qcp.id = qctp.project_id
|
|
|
|
left join qc_check_project qcp on qcp.id = qctp.project_id
|
|
|
|
where qctp.del_flag = '0' and qctp.status = '0'
|
|
|
|
where qctp.del_flag = '0' and qctp.status = '0'
|
|
|
|
and qctp.group_id = #{groupId}
|
|
|
|
and qctp.group_id = #{groupId}
|
|
|
|
|
|
|
|
and qctp.type_id = #{typeId}
|
|
|
|
order by qctp.sort
|
|
|
|
order by qctp.sort
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
@ -154,7 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
|
<if test="groupId != null">group_id,</if>
|
|
|
|
<if test="groupId != null">group_id,</if>
|
|
|
|
<if test="materialCode != null">material_code,</if>
|
|
|
|
<if test="materialCode != null">material_code,</if>
|
|
|
|
<if test="sampleNum != null">sample_num</if>
|
|
|
|
<if test="sampleNum != null">sample_num,</if>
|
|
|
|
<if test="projectNo != null">project_no</if>
|
|
|
|
<if test="projectNo != null">project_no</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@ -175,6 +177,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
|
<if test="groupId != null">#{groupId},</if>
|
|
|
|
<if test="groupId != null">#{groupId},</if>
|
|
|
|
<if test="materialCode != null">#{materialCode},</if>
|
|
|
|
<if test="materialCode != null">#{materialCode},</if>
|
|
|
|
|
|
|
|
<if test="sampleNum != null">#{sampleNum},</if>
|
|
|
|
<if test="projectNo != null">#{projectNo}</if>
|
|
|
|
<if test="projectNo != null">#{projectNo}</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
@ -198,7 +201,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
<if test="groupId != null">group_id = #{groupId},</if>
|
|
|
|
<if test="groupId != null">group_id = #{groupId},</if>
|
|
|
|
<if test="materialCode != null">material_code = #{materialCode},</if>
|
|
|
|
<if test="materialCode != null">material_code = #{materialCode},</if>
|
|
|
|
<if test="sampleNum != null">sample_num = #{sampleNum}</if>
|
|
|
|
<if test="sampleNum != null">sample_num = #{sampleNum},</if>
|
|
|
|
<if test="projectNo != null">project_no = #{projectNo}</if>
|
|
|
|
<if test="projectNo != null">project_no = #{projectNo}</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|