|
@@ -12,9 +12,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="contentInformation" column="content_information" />
|
|
|
<result property="stationName" column="station_name" />
|
|
|
<result property="personnelName" column="personnel_name" />
|
|
|
+ <result property="executionMessage" column="execution_message"/>
|
|
|
+ <result property="executionMark" column="execution_mark"/>
|
|
|
</resultMap>
|
|
|
<select id="selectRingScanInformationListScfy" parameterType="com.zkqy.amichi.domain.RingScanInformation" resultMap="RingScanInformationResult">
|
|
|
- select id, device_number, station_name, personnel_name,scanning_time, content_information from fjqydb.ring_scan_information
|
|
|
+ select id, device_number, station_name, personnel_name,scanning_time, content_information,execution_message,execution_mark from fjqydb.ring_scan_information
|
|
|
<where>
|
|
|
<if test="deviceNumber != null and deviceNumber != ''"> and device_number = #{deviceNumber}</if>
|
|
|
and DATE(scanning_time) = CURDATE() order by scanning_time desc limit #{offset},#{pageSize}
|
|
@@ -62,6 +64,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="personnelName" column="personnel_name" />
|
|
|
<result property="processName" column="process_name" />
|
|
|
<result property="stationName" column="station_name" />
|
|
|
+ <result property="executionMessage" column="execution_message"/>
|
|
|
+ <result property="executionMark" column="execution_mark"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectRingScanInformationListVo" parameterType="com.zkqy.amichi.domain.RingScanInformation" resultMap="RingScanInformationResultNR">
|
|
@@ -95,7 +99,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
rsi.native_numbering,
|
|
|
rsi.personnel_name,
|
|
|
rsi.process_name,
|
|
|
- rsi.station_name
|
|
|
+ rsi.station_name,
|
|
|
+ rsi.execution_mark,
|
|
|
+ rsi.execution_message
|
|
|
FROM
|
|
|
fjqydb.production_card_flow AS pcf
|
|
|
LEFT JOIN fjqydb.plan_task_details AS ptd ON ptd.demand_document = pcf.demand_document_number
|
|
@@ -108,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="scanningTime != null "> and scanning_time = #{scanningTime}</if>
|
|
|
<if test="contentInformation != null and contentInformation != ''"> and content_information = #{contentInformation}</if>
|
|
|
<if test="nativeNumbering != null and nativeNumbering != ''"> and native_numbering = #{nativeNumbering}</if>
|
|
|
+ <if test="executionMark!=null and executionMark!=''">and execution_mark = #{executionMark}</if>
|
|
|
</where>
|
|
|
order by scanning_time desc
|
|
|
</select>
|
|
@@ -202,6 +209,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
FROM
|
|
|
fjqydb.ring_scan_information AS rsi
|
|
|
LEFT JOIN fjqydb.procedure_list AS pl ON pl.procedur_name = rsi.process_name
|
|
|
+ where
|
|
|
+ rsi.execution_mark='1'
|
|
|
GROUP BY
|
|
|
rsi.production_order_number,
|
|
|
rsi.process_name
|
|
@@ -239,6 +248,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="productionOrderNumber != null">production_order_number,</if>
|
|
|
<if test="stationId != null">station_id,</if>
|
|
|
<if test="stationName != null">station_name,</if>
|
|
|
+ <if test="executionMark != null">execution_mark,</if>
|
|
|
+ <if test="executionMessage != null">execution_message,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="deviceNumber != null">#{deviceNumber},</if>
|
|
@@ -253,6 +264,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="productionOrderNumber != null">#{productionOrderNumber},</if>
|
|
|
<if test="stationId != null">#{stationId},</if>
|
|
|
<if test="stationName != null">#{stationName},</if>
|
|
|
+ <if test="executionMark != null">#{executionMark},</if>
|
|
|
+ <if test="executionMessage != null">#{executionMessage},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|