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
9966df28
Commit
9966df28
authored
Jun 25, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ed90faa5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
21 deletions
+28
-21
src/main/java/com/ruoyi/project/zt/service/impl/DjdcServiceImpl.java
+10
-4
src/main/resources/application.yml
+1
-1
src/main/resources/mybatis/zt/DjdcInfoMapper.xml
+15
-14
src/main/resources/mybatis/zt/JstaMapper.xml
+1
-1
src/main/resources/mybatis/zt/JswaMapper.xml
+1
-1
No files found.
src/main/java/com/ruoyi/project/zt/service/impl/DjdcServiceImpl.java
View file @
9966df28
...
...
@@ -219,10 +219,16 @@ public class DjdcServiceImpl implements DjdcService {
zjzq
=
zjzq
+
it
.
getSjts
();
}
}
item
.
setZjzq
(
zjzq
);
item
.
setZwzq
(
zwzq
);
item
.
setZjzq
(
Double
.
parseDouble
(
df
.
format
(
zjzq
)));
item
.
setZwzq
(
Double
.
parseDouble
(
df
.
format
(
zwzq
)));
if
(
item
.
getZjzq
()>
0
){
System
.
out
.
println
(
item
.
getZjzq
());
System
.
out
.
println
(
zwzq
);
Double
zjsl
=
item
.
getJc
()/
item
.
getZjzq
();
System
.
out
.
println
(
zjsl
);
item
.
setZjsl
(
Double
.
parseDouble
(
df
.
format
(
zjsl
)));
}
//查询钻井日志
Jswa
jswa
=
new
Jswa
();
jswa
.
setJh
(
item
.
getJh
());
...
...
@@ -242,8 +248,8 @@ public class DjdcServiceImpl implements DjdcService {
wjycsl
=
wjycsl
+(
wa
.
getSg
()+
wa
.
getXl
()+
wa
.
getZrtg
()+
wa
.
getZztg
()+
wa
.
getFzqk
());
}
}
item
.
setZjycsl
(
zjycsl
);
item
.
setWjycsl
(
wjycsl
);
item
.
setZjycsl
(
Double
.
parseDouble
(
df
.
format
(
zjycsl
))
);
item
.
setWjycsl
(
Double
.
parseDouble
(
df
.
format
(
wjycsl
))
);
}
...
...
src/main/resources/application.yml
View file @
9966df28
...
...
@@ -16,7 +16,7 @@ ruoyi:
# 开发环境配置
server
:
# 服务器的HTTP端口,默认为8080
port
:
80
91
port
:
80
89
servlet
:
# 应用的访问路径
context-path
:
/
...
...
src/main/resources/mybatis/zt/DjdcInfoMapper.xml
View file @
9966df28
...
...
@@ -156,8 +156,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ZCMSQK,
Qzyy,
zb
from
HHZJJS.
JSBA a
left join
HHZJJS.
jsaa b on a.jh = b.jh
from JSBA a
left join jsaa b on a.jh = b.jh
left join (
SELECT
jh,kc,(CASE WHEN kc = 1 THEN 0 ELSE LAG_JS END) ksjs,js, CONCAT( CASE WHEN kc = 1 THEN '0-' ELSE LAG_JS || '-'END,JS) AS jd
...
...
@@ -166,7 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
jh, ROW_NUMBER() OVER (PARTITION BY jh ORDER BY js) AS kc,
JS,
LAG(JS, 1, 0) OVER (PARTITION BY jh ORDER BY js) AS LAG_JS
FROM
HHZJJS.
JSDB
FROM JSDB
) t) c on a.jh=c.jh
left join (
select jh,xh,
...
...
@@ -192,7 +192,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
Qzyy,
zzjs,
ROUND(jc / case when (JCSJHJ / 24) =0 then 1 else (JCSJHJ / 24) end , 2) zb
from
HHZJJS.
JSHA
from JSHA
order by xh
) d on a.JH=d.jh and d.zzjs>ksjs and d.zzjs
<
=js
...
...
@@ -217,8 +217,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select a.jh,c.kc,ksjs,c.js
from
HHZJJS.
JSBA a
left join
HHZJJS.
jsaa b on a.jh = b.jh
from JSBA a
left join jsaa b on a.jh = b.jh
left join (
SELECT
jh,kc,(CASE WHEN kc = 1 THEN 0 ELSE LAG_JS END) ksjs,js
...
...
@@ -227,7 +227,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
jh, ROW_NUMBER() OVER (PARTITION BY jh ORDER BY js) AS kc,
JS,
LAG(JS, 1, 0) OVER (PARTITION BY jh ORDER BY js) AS LAG_JS
FROM
HHZJJS.
JSDB
FROM JSDB
) t) c on a.jh=c.jh
where 1=1
...
...
@@ -250,7 +250,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"getJcAndCw"
resultType=
"com.ruoyi.project.zt.domian.DjZqsjfx"
>
select jh,sum(jc) jc ,LISTAGG ( SZDC, '- ' ) WITHIN GROUP ( ORDER BY xh ) AS cw
from
HHZJJS.
JSHA a
from JSHA a
where 1=1
<if
test=
"jh!=null and jh!=''"
>
and a. jh =#{jh}
...
...
@@ -271,8 +271,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ksjs,
c.JS,
d.ZJZH,d.ZJJD
from
HHZJJS.
JSBA a
left join
HHZJJS.
jsaa b on a.jh = b.jh
from JSBA a
left join jsaa b on a.jh = b.jh
left join (SELECT jh,
kc,
(CASE WHEN kc = 1 THEN 0 ELSE LAG_JS END) ksjs,
...
...
@@ -282,8 +282,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ROW_NUMBER() OVER (PARTITION BY jh ORDER BY js) AS kc,
JS,
LAG(JS, 1, 0) OVER (PARTITION BY jh ORDER BY js) AS LAG_JS
FROM
HHZJJS.
JSDB) t) c on a.jh = c.jh
left join
HHZJJS.
JSFA d on a.JH=d.JH and c.kc=d.XH
FROM JSDB) t) c on a.jh = c.jh
left join JSFA d on a.JH=d.JH and c.kc=d.XH
where 1 = 1
<if
test=
"jdhzb!=null"
>
and ABS(#{jdhzb} - a.jdhzb)
<
#{jl}
...
...
@@ -306,7 +306,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select jh,
nvl(sum(jc),0) jc,
nvl(ROUND(sum(JCSJHJ)/24,2),0) jcsjhj
from
HHZJJS.
JSHA
from JSHA
where jh = #{jh}
and zzjs > #{ksjs}
and zzjs
<
= #{js}
...
...
@@ -315,7 +315,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select
id=
"getDjinfoByjh"
resultType=
"com.ruoyi.project.zt.domian.Djjc"
>
select JDHZB,JDZZB from
HHZJJS.
JSBA a where a.JH =#{jh}
select JDHZB,JDZZB from JSBA a where a.JH =#{jh}
</select>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/zt/JstaMapper.xml
View file @
9966df28
...
...
@@ -8,7 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"getList"
resultType=
"com.ruoyi.project.zt.domian.Jsta"
>
select *
from
HHZJJS.
JSTA a
from JSTA a
where 1=1
<if
test=
"jh!=null and jh!=''"
>
and jh =#{jh}
...
...
src/main/resources/mybatis/zt/JswaMapper.xml
View file @
9966df28
...
...
@@ -5,7 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper
namespace=
"com.ruoyi.project.zt.mapper.JswaMapper"
>
<select
id=
"getList"
resultType=
"com.ruoyi.project.zt.domian.Jswa"
>
select jh, rq, nvl(js,0) js, nvl(rjc,0) rjc,nvl(sg,0) sg, nvl(xl,0)xl,nvl(zrtg,0) zrtg, nvl(zztg,0)zztg,nvl(fzqk,0) fzqk from
HHZJJS.
JSWA where 1=1
select jh, rq, nvl(js,0) js, nvl(rjc,0) rjc,nvl(sg,0) sg, nvl(xl,0)xl,nvl(zrtg,0) zrtg, nvl(zztg,0)zztg,nvl(fzqk,0) fzqk from JSWA where 1=1
<if
test=
"jh!=null and jh!=''"
>
and jh =#{jh}
...
...
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