From 7e68f81b38116bba40e70620c563168fcde66a37 Mon Sep 17 00:00:00 2001
From: L <L@132>
Date: 星期五, 05 十二月 2025 09:18:38 +0800
Subject: [PATCH] *
---
src/main/resources/mapper/WrkMastStaMapper.xml | 71 ++++++++++++++++++-----------------
1 files changed, 36 insertions(+), 35 deletions(-)
diff --git a/src/main/resources/mapper/WrkMastStaMapper.xml b/src/main/resources/mapper/WrkMastStaMapper.xml
index 1672011..7ea7fd9 100644
--- a/src/main/resources/mapper/WrkMastStaMapper.xml
+++ b/src/main/resources/mapper/WrkMastStaMapper.xml
@@ -16,107 +16,108 @@
<result column="WRK_STS" property="wrkSts" />
<result column="LINE_NUMBER" property="lineNumber" />
<result column="WRK_TYPE" property="wrkType" />
+ <result column="WRK_CRN" property="wrkCrn" />
<result column="BIGN_TIME" property="bignTime" />
</resultMap>
<select id="selectAllWrkMastStaList" resultMap="BaseResultMap">
- select * from asr_wrk_mast_sta
+ select * from "SOURCE"."asr_wrk_mast_sta"
where 1=1
- and wrk_sts=0
+ and WRK_STS=0
<if test="type!=null">
- and type = #{type}
+ and TYPE = #{type}
</if>
- order by line_number,id
+ order by LINE_NUMBER,ID
</select>
<select id="selectByWrkNo" resultMap="BaseResultMap">
- select top 1 * from asr_wrk_mast_sta
+ select top 1 * from "SOURCE"."asr_wrk_mast_sta"
where 1=1
- and wrk_no = #{workNo}
+ and WRK_NO = #{workNo}
</select>
<select id="selectNoInterfere" resultMap="BaseResultMap">
- select top 1 * from asr_wrk_mast_sta
+ select top 1 * from "SOURCE"."asr_wrk_mast_sta"
where 1=1
- and (sta_start in
+ and (STA_START in
<foreach item="item" collection="staStarts" index="index" separator="," open="(" close=")">
#{item}
</foreach>
- or sta_start = 0
+ or STA_START = 0
)
- and (sta_end in
+ and (STA_END in
<foreach item="item" collection="staEnds" index="index" separator="," open="(" close=")">
#{item}
</foreach>
- or sta_end = 0
+ or STA_END = 0
)
- and wrk_sts=0
- order by line_number,id
+ and WRK_STS=0
+ order by LINE_NUMBER,ID
</select>
<select id="selectNoInterfereList" resultMap="BaseResultMap">
- select * from asr_wrk_mast_sta
+ select * from "SOURCE"."asr_wrk_mast_sta"
where 1=1
- and (sta_start in
+ and (STA_START in
<foreach item="item" collection="staStarts" index="index" separator="," open="(" close=")">
#{item}
</foreach>
- or sta_start = 0
+ or STA_START = 0
)
- and (sta_end in
+ and (STA_END in
<foreach item="item" collection="staEnds" index="index" separator="," open="(" close=")">
#{item}
</foreach>
- or sta_end = 0
+ or STA_END = 0
)
- and wrk_sts=0
- order by line_number,id
+ and WRK_STS=0
+ order by LINE_NUMBER,ID
</select>
<select id="selectAllWrkCount" resultType="Integer">
- select count(1) from asr_wrk_mast_sta
+ select count(1) from "SOURCE"."asr_wrk_mast_sta"
where 1=1
<if test="type!=null">
- and type = #{type}
+ and TYPE = #{type}
</if>
</select>
<select id="selectAllWrkCount108" resultType="Integer">
- select count(1) from asr_wrk_mast_sta
+ select count(1) from "SOURCE"."asr_wrk_mast_sta"
where 1=1
- and type = 1
- and (sta_end = 108 or sta_start = 108)
+ and TYPE = 1
+ and (STA_END = 108 or STA_START = 108)
</select>
<select id="selectAllWrkCount108Y" resultType="Integer">
- select count(1) from asr_wrk_mast_sta
+ select count(1) from "SOURCE"."asr_wrk_mast_sta"
where 1=1
-- and type = 1
- and ((sta_end <= 108 or sta_start <= 108)
- or (sta_end = 118 or sta_start = 118)
- or (sta_end = 122 or sta_start = 122))
+ and ((STA_END <= 108 or STA_START <= 108)
+ or (STA_END = 118 or STA_START = 118)
+ or (STA_END = 122 or STA_START = 122))
</select>
<select id="selectAllWrkStsCount" resultType="Integer">
- select count(1) from asr_wrk_mast_sta
+ select count(1) from "SOURCE"."asr_wrk_mast_sta"
where 1=1
<if test="type!=null">
- and type = #{type}
+ and TYPE = #{type}
</if>
<if test="wrkSts!=null">
- and wrk_sts = #{wrkSts}
+ and WRK_STS = #{wrkSts}
</if>
</select>
<select id="selectAllWrkStsCountWrkMastSta" resultMap="BaseResultMap">
- select top 1 * from asr_wrk_mast_sta
+ select top 1 * from "SOURCE"."asr_wrk_mast_sta"
where 1=1
<if test="type!=null">
- and type = #{type}
+ and TYPE = #{type}
</if>
<if test="wrkSts!=null">
- and wrk_sts = #{wrkSts}
+ and WRK_STS = #{wrkSts}
</if>
</select>
--
Gitblit v1.9.1