|
|
|
@ -36,13 +36,17 @@
|
|
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
|
|
<result property="checkType" column="check_type"/>
|
|
|
|
|
<result property="sampleQuality" column="sample_quality"/>
|
|
|
|
|
|
|
|
|
|
<result property="orderType" column="order_type"/>
|
|
|
|
|
<result property="orderTypeDesc" column="order_type_desc"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectQcCheckTaskIncomeVo">
|
|
|
|
|
select record_id, check_no, income_batch_no, order_no, material_code, material_name, quality, unit,
|
|
|
|
|
supplier_code, supplier_name, income_time, check_loc, check_status, check_man_code,
|
|
|
|
|
check_man_name, check_time, check_result, status, attr1, attr2, attr3, attr4, create_by,
|
|
|
|
|
create_time, update_by, update_time, factory_code, del_flag , check_type,sample_quality, noOk_quality
|
|
|
|
|
create_time, update_by, update_time, factory_code, del_flag , check_type,sample_quality, noOk_quality,
|
|
|
|
|
order_type,order_type_desc
|
|
|
|
|
from qc_check_task
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -52,7 +56,7 @@
|
|
|
|
|
qct.supplier_code, qct.supplier_name, qct.income_time, qct.check_loc, qct.check_status,
|
|
|
|
|
qct.check_man_code, qct.check_man_name,qct.check_time, qct.check_result, qct.status,
|
|
|
|
|
qct.create_by,qct.create_time, qct.update_by, qct.update_time,qct.check_type,qct.noOk_quality,
|
|
|
|
|
qct.sample_quality, qct.type_code
|
|
|
|
|
qct.sample_quality, qct.type_code, qct.order_type
|
|
|
|
|
from qc_check_task qct
|
|
|
|
|
<where>
|
|
|
|
|
<if test="checkNo != null and checkNo != ''">and qct.check_no = #{checkNo}</if>
|
|
|
|
@ -83,6 +87,7 @@
|
|
|
|
|
<if test="checkTimeEnd != null ">and #{checkTimeEnd} > CONVERT(varchar(30),qct.check_time, 120)</if>
|
|
|
|
|
<if test="checkType != null ">and qct.check_type = #{checkType}</if>
|
|
|
|
|
<if test="typeCode != null ">and qct.type_code = #{typeCode}</if>
|
|
|
|
|
<if test="orderType != null ">and qct.order_type = #{orderType}</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by qct.create_time DESC
|
|
|
|
|
</select>
|
|
|
|
@ -208,6 +213,7 @@
|
|
|
|
|
<if test="typeCode != null">type_code,</if>
|
|
|
|
|
<if test="sampleQuality != null">sample_quality,</if>
|
|
|
|
|
<if test="orderType != null">order_type,</if>
|
|
|
|
|
<if test="orderTypeDesc != null">order_type_desc,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="recordId != null">#{recordId},</if>
|
|
|
|
@ -243,6 +249,7 @@
|
|
|
|
|
<if test="typeCode != null">#{typeCode},</if>
|
|
|
|
|
<if test="sampleQuality != null">#{sampleQuality},</if>
|
|
|
|
|
<if test="orderType != null">#{orderType},</if>
|
|
|
|
|
<if test="orderTypeDesc != null">#{orderTypeDesc},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|