Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjsgfa_mysql
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyun
zjsgfa_mysql
Commits
e4ee25ed
Commit
e4ee25ed
authored
Jan 21, 2026
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c3e3cc6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
src/main/resources/mybatis/zt/DjdcInfoMapper.xml
+15
-15
No files found.
src/main/resources/mybatis/zt/DjdcInfoMapper.xml
View file @
e4ee25ed
...
...
@@ -670,7 +670,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item}
</foreach>
</if>
order by WJRQ desc) where ROWNUM
<
= 100
order by WJRQ desc
NULLS LAST
) where ROWNUM
<
= 100
</select>
<!-- select ss.kc,ss.ztxh,ss.cc,-->
<!-- count( *) as ztsl,-->
...
...
@@ -998,32 +998,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-- 根据井斜变化率进行分类
CASE
WHEN LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) IS NULL THEN NULL
--
自然
增:大于0且小于0.1
--
小幅
增:大于0且小于0.1
WHEN (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30 > 0
AND (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30
<
0.1
THEN '
自然
增'
--
自然
降:小于0且大于-0.1
THEN '
小幅
增'
--
小幅
降:小于0且大于-0.1
WHEN (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30
<
0
AND (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30 > -0.1
THEN '
自然
降'
--
人工
增:大于1
THEN '
小幅
降'
--
大幅
增:大于1
WHEN (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30 > 1
THEN '
人工
增'
--
人工
降:小于-1
THEN '
大幅
增'
--
大幅
降:小于-1
WHEN (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30
<
-1
THEN '
人工
降'
THEN '
大幅
降'
-- 其他情况(如0.1~1之间或-1~-0.1之间)
ELSE null
END AS zrzjx,d.gynr glzxd
...
...
@@ -1047,8 +1047,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ORDER BY a.jh, a.xh
</select>
<select
id=
"getJskdList2"
resultType=
"com.zjsgfa.project.zt.domain.Jskd"
>
select gldc,sum( case zrzjx when '
自然降' then 1 ELSE 0 end ) as zrj,sum( case zrzjx when '自然
增' then 1 ELSE 0 end) as zrz,
sum( case zrzjx when '
人工增' then 1 ELSE 0 end) as rgz,sum( case zrzjx when '人工
降' then 1 ELSE 0 end) as rgj from (
select gldc,sum( case zrzjx when '
小幅降' then 1 ELSE 0 end ) as zrj,sum( case zrzjx when '小幅
增' then 1 ELSE 0 end) as zrz,
sum( case zrzjx when '
大幅增' then 1 ELSE 0 end) as rgz,sum( case zrzjx when '大幅
降' then 1 ELSE 0 end) as rgj from (
SELECT
a.*,
c.cw gldc,
...
...
@@ -1071,7 +1071,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30
<
0.1
THEN '
自然
增'
THEN '
小幅
增'
WHEN (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30
...
...
@@ -1079,17 +1079,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
0
AND (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30 > -0.1
THEN '
自然
降'
THEN '
小幅
降'
WHEN (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30 > 1
THEN '
人工
增'
THEN '
大幅
增'
WHEN (LEAD(jx) OVER (PARTITION BY a.jh ORDER BY a.xh) - jx)
/ LEAD(dc) OVER (PARTITION BY a.jh ORDER BY a.xh) * 30
<
-1
THEN '
人工
降'
THEN '
大幅
降'
ELSE null
END AS zrzjx,d.gynr glzxd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment