|
|
@ -35,7 +35,38 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<collection property="fileList" column="id" select="queryImg"></collection>
|
|
|
|
<collection property="fileList" column="id" select="queryImg"></collection>
|
|
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap type="QcCheckTaskIncome" id="QcCheckTaskIncomeResult">
|
|
|
|
|
|
|
|
<result property="recordId" column="record_id" />
|
|
|
|
|
|
|
|
<result property="checkNo" column="check_no" />
|
|
|
|
|
|
|
|
<result property="incomeBatchNo" column="income_batch_no" />
|
|
|
|
|
|
|
|
<result property="orderNo" column="order_no" />
|
|
|
|
|
|
|
|
<result property="materialCode" column="material_code" />
|
|
|
|
|
|
|
|
<result property="materialName" column="material_name" />
|
|
|
|
|
|
|
|
<result property="quality" column="quality" />
|
|
|
|
|
|
|
|
<result property="noOkQuality" column="noOk_quality" />
|
|
|
|
|
|
|
|
<result property="unit" column="unit" />
|
|
|
|
|
|
|
|
<result property="supplierCode" column="supplier_code" />
|
|
|
|
|
|
|
|
<result property="supplierName" column="supplier_name" />
|
|
|
|
|
|
|
|
<result property="incomeTime" column="income_time" />
|
|
|
|
|
|
|
|
<result property="checkLoc" column="check_loc" />
|
|
|
|
|
|
|
|
<result property="checkStatus" column="check_status" />
|
|
|
|
|
|
|
|
<result property="checkManCode" column="check_man_code" />
|
|
|
|
|
|
|
|
<result property="checkManName" column="check_man_name" />
|
|
|
|
|
|
|
|
<result property="checkTime" column="check_time" />
|
|
|
|
|
|
|
|
<result property="checkResult" column="check_result" />
|
|
|
|
|
|
|
|
<result property="status" column="status" />
|
|
|
|
|
|
|
|
<result property="attr1" column="attr1" />
|
|
|
|
|
|
|
|
<result property="attr2" column="attr2" />
|
|
|
|
|
|
|
|
<result property="attr3" column="attr3" />
|
|
|
|
|
|
|
|
<result property="attr4" column="attr4" />
|
|
|
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
|
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
|
|
|
|
|
<result property="checkType" column="check_type" />
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
<sql id="selectQuaVo">
|
|
|
|
<sql id="selectQuaVo">
|
|
|
|
select id,rfid,factory_id,factory_code,order_id,machine_id,bad_meg,product_id,isqua,file_id,attr1,attr2,
|
|
|
|
select id,rfid,factory_id,factory_code,order_id,machine_id,bad_meg,product_id,isqua,file_id,attr1,attr2,
|
|
|
|
attr3,attr4,create_by,create_time,update_by,update_time,order_code,machine_code,
|
|
|
|
attr3,attr4,create_by,create_time,update_by,update_time,order_code,machine_code,
|
|
|
@ -212,4 +243,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
from sys_dict_data
|
|
|
|
from sys_dict_data
|
|
|
|
where dict_type = #{equipmentTypeCode}
|
|
|
|
where dict_type = #{equipmentTypeCode}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getCheckTaskList" resultMap="QcCheckTaskIncomeResult">
|
|
|
|
|
|
|
|
select qct.record_id, qct.check_no, qct.income_batch_no, qct.order_no,
|
|
|
|
|
|
|
|
qct.material_code, qct.material_name, qct.quality, qct.unit,
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
from qc_check_task qct
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
and qct.del_flag = '0'
|
|
|
|
|
|
|
|
<if test="checkType != null and checkType != ''"> and qct.check_type = #{checkType}</if>
|
|
|
|
|
|
|
|
<if test="checkManCode != null and checkManCode != ''"> and qct.check_man_code = #{checkManCode}</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
order by qct.create_time desc
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|