|
|
|
@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectQuaVo">
|
|
|
|
|
select id,rfid,factory_id,factory_code,order_id,machine_id,bad_meg,product_id,isqua,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,
|
|
|
|
|
workorder_id,workorder_code,workorder_name,product_code
|
|
|
|
|
from qc_pro_check
|
|
|
|
@ -45,13 +45,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<select id="selectQcProCheckList" parameterType="QcProCheck" resultMap="QcProCheckResult">
|
|
|
|
|
select qpc.id,qpc.rfid,qpc.factory_code,qpc.machine_id,qpc.bad_meg,
|
|
|
|
|
qpc.product_id,qpc.isqua,qpc.isqua,qpc.file_id,qpc.attr1,qpc.attr2,
|
|
|
|
|
qpc.product_id,qpc.isqua,qpc.file_id,qpc.attr1,qpc.attr2,
|
|
|
|
|
qpc.attr3,qpc.attr4,qpc.create_by,qpc.create_time,qpc.update_by,
|
|
|
|
|
qpc.update_time,qpc.order_code,qpc.machine_code,qpc.machine_name,
|
|
|
|
|
qpc.workorder_id,qpc.workorder_code,qpc.workorder_name,qpc.product_code,
|
|
|
|
|
qpc.product_name,qpc.product_spc
|
|
|
|
|
from qc_pro_check qpc
|
|
|
|
|
left join
|
|
|
|
|
<where>
|
|
|
|
|
<if test="rfid != null and rfid != ''"> and qpc.id = #{id}</if>
|
|
|
|
|
<if test="createBy != null and createBy != ''"> and qpc.create_by = #{createBy}</if>
|
|
|
|
@ -59,8 +58,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
order by qpc.create_time desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertQcProCheck" parameterType="QcProCheck" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
insert into qc_pro_check
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|