From 0a2ce614306f517929ee939c04b09df0ca4ea2c0 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期一, 09 三月 2026 13:09:30 +0800
Subject: [PATCH] 1
---
zy-acs-cv/src/main/resources/mapper/JobMapper.xml | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/zy-acs-cv/src/main/resources/mapper/JobMapper.xml b/zy-acs-cv/src/main/resources/mapper/JobMapper.xml
index 38f06e4..b91bc3b 100644
--- a/zy-acs-cv/src/main/resources/mapper/JobMapper.xml
+++ b/zy-acs-cv/src/main/resources/mapper/JobMapper.xml
@@ -9,8 +9,10 @@
<result column="batch_no" property="batchNo"/>
<result column="loc" property="loc"/>
<result column="sta_no" property="staNo"/>
+ <result column="barcode" property="barcode"/>
<result column="job_no" property="jobNo"/>
<result column="job_sts" property="jobSts"/>
+ <result column="start_time" property="startTime"/>
<result column="wms_time" property="wmsTime"/>
<result column="rcs_time" property="rcsTime"/>
<result column="status" property="status"/>
@@ -23,10 +25,12 @@
<result column="memo" property="memo"/>
</resultMap>
+
<select id="getJobByTaskNo" resultMap="BaseResultMap">
select *
from cv_job
where task_no = #{seqNum}
+ order by id desc limit 1
</select>
@@ -34,6 +38,7 @@
select *
from cv_job
where job_no = #{workNo}
+ order by id desc limit 1
</select>
<select id="getJobByJobNoAndJobSts" resultMap="BaseResultMap">
@@ -41,6 +46,22 @@
from cv_job
where job_no = #{workNo}
and job_sts = #{jobSts}
+ order by id desc limit 1
+ </select>
+
+ <select id="getJobByBarcodeAndJobSts" resultMap="BaseResultMap">
+ select *
+ from cv_job
+ where barcode = #{barcode}
+ and job_sts = #{jobSts}
+ order by id desc limit 1
+ </select>
+
+ <select id="getJobByBarcode" resultMap="BaseResultMap">
+ select *
+ from cv_job
+ where barcode = #{barcode}
+ order by id desc limit 1
</select>
@@ -50,4 +71,18 @@
where job_sts = #{jobSts}
</select>
+ <select id="listJobByJobStsAndDay" resultMap="BaseResultMap">
+ select *
+ from cv_job
+ where job_sts = #{jobSts}
+ and DATEDIFF(NOW(), #{day}) > 1
+ </select>
+
+
+ <select id="listJobToLog" resultMap="BaseResultMap">
+ select *
+ from cv_job
+ where job_sts = #{jobSts}
+ and DATEDIFF(NOW(), #{day}) > 1
+ </select>
</mapper>
--
Gitblit v1.9.1