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
b6d44c41
Commit
b6d44c41
authored
Nov 19, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6e040cc3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
310 additions
and
87 deletions
+310
-87
src/main/java/com/zjsgfa/framework/config/SecurityConfig.java
+70
-33
src/main/java/com/zjsgfa/project/zjsgfa/controller/SjDjjcController.java
+26
-18
src/main/java/com/zjsgfa/project/zjsgfa/domain/SgfambKcSggy.java
+41
-0
src/main/java/com/zjsgfa/project/zjsgfa/domain/SjFdsgcsZjyFdxnb.java
+1
-1
src/main/java/com/zjsgfa/project/zjsgfa/domain/SjSggyZjyFdxnb.java
+3
-0
src/main/java/com/zjsgfa/project/zjsgfa/domain/SjZjyFdxnb.java
+4
-0
src/main/java/com/zjsgfa/project/zjsgfa/mapper/SjZtcsxxMapper.java
+3
-0
src/main/java/com/zjsgfa/project/zjsgfa/service/ISjDjjcService.java
+3
-0
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjDjjcServiceImpl.java
+0
-0
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjFdsgcsServiceImpl.java
+36
-2
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjFdsgcsZjyFdxnbServiceImpl.java
+12
-7
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjSggyZjyFdxnbServiceImpl.java
+11
-7
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjZjyFdxnbServiceImpl.java
+12
-7
src/main/java/com/zjsgfa/project/zt/controller/DjdcController.java
+0
-0
src/main/java/com/zjsgfa/project/zt/domain/vo/ApiResponse.java
+2
-1
src/main/resources/mybatis/zjsgfa/SgfambKcSggyMapper.xml
+61
-1
src/main/resources/mybatis/zjsgfa/SjDcfxTsyxMapper.xml
+1
-0
src/main/resources/mybatis/zjsgfa/SjDjjcMapper.xml
+5
-1
src/main/resources/mybatis/zjsgfa/SjFdsgcsZjyFdxnbMapper.xml
+3
-2
src/main/resources/mybatis/zjsgfa/SjJsjgMapper.xml
+1
-1
src/main/resources/mybatis/zjsgfa/SjSggyZjyFdxnbMapper.xml
+4
-2
src/main/resources/mybatis/zjsgfa/SjZjyFdxnbMapper.xml
+4
-2
src/main/resources/mybatis/zjsgfa/SjZtcsxxMapper.xml
+4
-0
src/main/resources/mybatis/zjsgfa/SjZtxxMapper.xml
+2
-1
src/main/resources/mybatis/zt/DjdcInfoMapper.xml
+1
-1
No files found.
src/main/java/com/zjsgfa/framework/config/SecurityConfig.java
View file @
b6d44c41
...
@@ -144,45 +144,32 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
...
@@ -144,45 +144,32 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
// 添加CORS filter
// 添加CORS filter
.
addFilterBefore
(
corsFilter
,
JwtAuthenticationTokenFilter
.
class
)
.
addFilterBefore
(
corsFilter
,
JwtAuthenticationTokenFilter
.
class
)
.
addFilterBefore
(
corsFilter
,
LogoutFilter
.
class
);
.
addFilterBefore
(
corsFilter
,
LogoutFilter
.
class
);
}
}
//开启cas
if
(
casProperties
.
isCasEnable
())
{
if
(
casProperties
.
isCasEnable
())
{
httpSecurity
httpSecurity
// CSRF禁用,因为不使用session
// CSRF禁用,因为不使用session
.
csrf
().
disable
()
.
csrf
(
csrf
->
csrf
.
disable
())
// 禁用HTTP响应标头
.
headers
((
headersCustomizer
)
->
{
headersCustomizer
.
cacheControl
(
cache
->
cache
.
disable
()).
frameOptions
(
options
->
options
.
sameOrigin
());
})
// 认证失败处理类
.
exceptionHandling
(
exception
->
exception
.
authenticationEntryPoint
(
unauthorizedHandler
))
// 基于token,所以不需要session
// 基于token,所以不需要session
.
sessionManagement
().
sessionCreationPolicy
(
SessionCreationPolicy
.
STATELESS
).
and
()
.
sessionManagement
(
session
->
session
.
sessionCreationPolicy
(
SessionCreationPolicy
.
STATELESS
))
// 过滤请求
// 注解标记允许匿名访问的url
.
authorizeRequests
()
.
authorizeHttpRequests
((
requests
)
->
{
// 对于登录login 验证码captchaImage 允许匿名访问
permitAllUrl
.
getUrls
().
forEach
(
url
->
requests
.
antMatchers
(
url
).
permitAll
());
//.antMatchers("/login", "/captchaImage").anonymous()
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
.
antMatchers
(
requests
.
antMatchers
(
"/login"
,
"/register"
,
"/captchaImage"
).
permitAll
()
HttpMethod
.
GET
,
// 静态资源,可匿名访问
"/*.html"
,
.
antMatchers
(
HttpMethod
.
GET
,
"/"
,
"/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.js"
,
"/profile/**"
).
permitAll
()
"/**/*.html"
,
.
antMatchers
(
"/swagger-ui.html"
,
"/swagger-resources/**"
,
"/webjars/**"
,
"/*/api-docs"
,
"/druid/**"
,
"/**/**"
).
permitAll
()
"/**/*.css"
,
// 除上面外的所有请求全部需要鉴权认证
"/**/*.js"
.
anyRequest
().
authenticated
();
).
permitAll
()
});
.
antMatchers
(
"/profile/**"
).
anonymous
()
.
antMatchers
(
"/common/download**"
).
anonymous
()
.
antMatchers
(
"/common/download/resource**"
).
anonymous
()
.
antMatchers
(
"/swagger-ui.html"
).
anonymous
()
.
antMatchers
(
"/swagger-resources/**"
).
anonymous
()
.
antMatchers
(
"/webjars/**"
).
anonymous
()
.
antMatchers
(
"/*/api-docs"
).
anonymous
()
.
antMatchers
(
"/druid/**"
).
anonymous
()
.
antMatchers
(
"/websocket/**"
).
anonymous
()
.
antMatchers
(
"/magic/web/**"
).
anonymous
()
.
antMatchers
(
"/**/**"
).
anonymous
()
// 除上面外的所有请求全部需要鉴权认证
.
anyRequest
().
authenticated
()
.
and
()
.
headers
().
frameOptions
().
disable
();
//单点登录登出
//单点登录登出
httpSecurity
.
logout
().
permitAll
().
logoutSuccessHandler
(
logoutSuccessHandler
);
httpSecurity
.
logout
().
permitAll
().
logoutSuccessHandler
(
logoutSuccessHandler
);
// Custom JWT based security filter
// Custom JWT based security filter
...
@@ -199,6 +186,56 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
...
@@ -199,6 +186,56 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
// disable page caching
// disable page caching
httpSecurity
.
headers
().
cacheControl
();
httpSecurity
.
headers
().
cacheControl
();
}
}
//开启cas
// if (casProperties.isCasEnable()) {
// httpSecurity
// // CSRF禁用,因为不使用session
// .csrf().disable()
// // 基于token,所以不需要session
// .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
// // 过滤请求
// .authorizeRequests()
// // 对于登录login 验证码captchaImage 允许匿名访问
// //.antMatchers("/login", "/captchaImage").anonymous()
// .antMatchers(
// HttpMethod.GET,
// "/*.html",
// "/**/*.html",
// "/**/*.css",
// "/**/*.js"
// ).permitAll()
// .antMatchers("/profile/**").anonymous()
// .antMatchers("/common/download**").anonymous()
// .antMatchers("/common/download/resource**").anonymous()
// .antMatchers("/swagger-ui.html").anonymous()
// .antMatchers("/swagger-resources/**").anonymous()
// .antMatchers("/webjars/**").anonymous()
// .antMatchers("/*/api-docs").anonymous()
// .antMatchers("/druid/**").anonymous()
// .antMatchers("/websocket/**").anonymous()
// .antMatchers("/magic/web/**").anonymous()
// .antMatchers("/**/**").anonymous()
// // 除上面外的所有请求全部需要鉴权认证
// .anyRequest().authenticated()
// .and()
// .headers().frameOptions().disable();
// //单点登录登出
// httpSecurity.logout().permitAll().logoutSuccessHandler(logoutSuccessHandler);
// // Custom JWT based security filter
// httpSecurity.addFilter(casAuthenticationFilter())
// .addFilterBefore(authenticationTokenFilter, CasAuthenticationFilter.class)
// //.addFilterBefore(casLogoutFilter(), LogoutFilter.class)
// .addFilterBefore(singleSignOutFilter(), CasAuthenticationFilter.class).exceptionHandling()
// //认证失败
// .authenticationEntryPoint(casAuthenticationEntryPoint());
//
// // 添加CORS filter
// httpSecurity.addFilterBefore(corsFilter, JwtAuthenticationTokenFilter.class);
// httpSecurity.addFilterBefore(corsFilter, LogoutFilter.class);
// // disable page caching
// httpSecurity.headers().cacheControl();
// }
}
}
/**
/**
...
...
src/main/java/com/zjsgfa/project/zjsgfa/controller/SjDjjcController.java
View file @
b6d44c41
...
@@ -1830,8 +1830,10 @@ public class SjDjjcController extends BaseController
...
@@ -1830,8 +1830,10 @@ public class SjDjjcController extends BaseController
sjFdfxMapper
.
deleteSjFdfxByZbid
(
id
);
sjFdfxMapper
.
deleteSjFdfxByZbid
(
id
);
sjFdfxMapper
.
insertSjFdfxBatch
(
sjFdfxList
);
sjFdfxMapper
.
insertSjFdfxBatch
(
sjFdfxList
);
}
}
}
}
//高指标井
sjDjjcService
.
getGzbjList
(
jh
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
getMessage
();
e
.
getMessage
();
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -1841,6 +1843,9 @@ public class SjDjjcController extends BaseController
...
@@ -1841,6 +1843,9 @@ public class SjDjjcController extends BaseController
workbook
.
close
();
workbook
.
close
();
}
}
String
name
=
file
.
getOriginalFilename
();
String
name
=
file
.
getOriginalFilename
();
String
type
=
StringUtils
.
substringAfterLast
(
name
,
"."
);
String
type
=
StringUtils
.
substringAfterLast
(
name
,
"."
);
String
fileNameYs
=
name
.
substring
(
0
,
name
.
lastIndexOf
(
"."
));
String
fileNameYs
=
name
.
substring
(
0
,
name
.
lastIndexOf
(
"."
));
...
@@ -1917,15 +1922,6 @@ public class SjDjjcController extends BaseController
...
@@ -1917,15 +1922,6 @@ public class SjDjjcController extends BaseController
/**
* 计算邻井井组
* @param sjDjjc
* @return
*/
@GetMapping
(
"/jsljjz"
)
public
AjaxResult
jsljjz
(
SjDjjc
sjDjjc
)
throws
Exception
{
return
sjDjjcService
.
jsljjz
(
sjDjjc
);
}
private
static
List
<
SjFdsgcsDcyx
>
processAndDisplay
(
List
<
SjDcfxDzfc
>
stratumList
,
double
kscs
,
double
targetCs
,
String
jh
,
String
kc
)
{
private
static
List
<
SjFdsgcsDcyx
>
processAndDisplay
(
List
<
SjDcfxDzfc
>
stratumList
,
double
kscs
,
double
targetCs
,
String
jh
,
String
kc
)
{
...
@@ -2178,14 +2174,14 @@ public class SjDjjcController extends BaseController
...
@@ -2178,14 +2174,14 @@ public class SjDjjcController extends BaseController
return
sjDjjcService
.
saveLjzl
(
param
);
return
sjDjjcService
.
saveLjzl
(
param
);
}
}
/**
//
/**
* 计算风险
//
* 计算风险
*/
//
*/
@PostMapping
(
"/saveFx"
)
//
@PostMapping("/saveFx")
public
AjaxResult
saveFx
(
@RequestBody
CommonParam
param
)
throws
Exception
{
//
public AjaxResult saveFx(@RequestBody CommonParam param) throws Exception{
//
return
sjDjjcService
.
saveLjzl
(
param
);
//
return sjDjjcService.saveLjzl(param);
}
//
}
/**
/**
* 计算钻头
* 计算钻头
...
@@ -2205,6 +2201,18 @@ public class SjDjjcController extends BaseController
...
@@ -2205,6 +2201,18 @@ public class SjDjjcController extends BaseController
return
sjDjjcService
.
saveZjzh
(
param
);
return
sjDjjcService
.
saveZjzh
(
param
);
}
}
/**
* 计算邻井井组
* @param sjDjjc
* @return
*/
@GetMapping
(
"/jsljjz"
)
public
AjaxResult
jsljjz
(
SjDjjc
sjDjjc
)
throws
Exception
{
return
sjDjjcService
.
jsljjz
(
sjDjjc
);
}
@PostMapping
(
"/exportWord"
)
@PostMapping
(
"/exportWord"
)
public
void
exportWord
(
long
id
,
HttpServletResponse
response
)
throws
Exception
{
public
void
exportWord
(
long
id
,
HttpServletResponse
response
)
throws
Exception
{
SjDjjc
sjDjjc
=
sjDjjcService
.
selectSjDjjcById
(
id
);
SjDjjc
sjDjjc
=
sjDjjcService
.
selectSjDjjcById
(
id
);
...
...
src/main/java/com/zjsgfa/project/zjsgfa/domain/SgfambKcSggy.java
View file @
b6d44c41
...
@@ -103,6 +103,47 @@ public class SgfambKcSggy extends BaseEntity
...
@@ -103,6 +103,47 @@ public class SgfambKcSggy extends BaseEntity
//施工参数条件id
//施工参数条件id
private
Long
sgcstjid
;
private
Long
sgcstjid
;
//钻压上限
private
String
zjzysx
;
//转速上限
private
String
zjzssx
;
//排量上限
private
String
zjplsx
;
//泵压上限
private
String
zjbysx
;
/** 厂家 */
@Excel
(
name
=
"厂家"
)
private
String
cj
;
/** 尺寸 */
@Excel
(
name
=
"尺寸"
)
private
String
cc
;
/** 水眼 */
@Excel
(
name
=
"水眼"
)
private
String
sy
;
/** 压降 */
@Excel
(
name
=
"压降"
)
private
String
yj
;
/** 钻井液密度 */
@Excel
(
name
=
"钻井液密度"
)
private
String
zjymd
;
/** 刀翼 */
@Excel
(
name
=
"刀翼"
)
private
String
dy
;
/** 复合片 */
@Excel
(
name
=
"复合片"
)
private
String
ffp
;
/** 复合片齿形 */
@Excel
(
name
=
"复合片齿形"
)
private
String
ffpcx
;
}
}
src/main/java/com/zjsgfa/project/zjsgfa/domain/SjFdsgcsZjyFdxnb.java
View file @
b6d44c41
...
@@ -77,7 +77,7 @@ public class SjFdsgcsZjyFdxnb extends BaseEntity
...
@@ -77,7 +77,7 @@ public class SjFdsgcsZjyFdxnb extends BaseEntity
/** 塑性黏度 */
/** 塑性黏度 */
@Excel
(
name
=
"塑性黏度"
)
@Excel
(
name
=
"塑性黏度"
)
private
String
sxnd
;
private
String
sxnd
;
private
Double
firstNumber
;
private
List
<
SjFdsgcsZjyFdxnb
>
list
;
private
List
<
SjFdsgcsZjyFdxnb
>
list
;
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
...
...
src/main/java/com/zjsgfa/project/zjsgfa/domain/SjSggyZjyFdxnb.java
View file @
b6d44c41
...
@@ -2,6 +2,7 @@ package com.zjsgfa.project.zjsgfa.domain;
...
@@ -2,6 +2,7 @@ package com.zjsgfa.project.zjsgfa.domain;
import
java.util.Date
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zjsgfa.framework.aspectj.lang.annotation.Excel
;
import
com.zjsgfa.framework.aspectj.lang.annotation.Excel
;
...
@@ -13,6 +14,7 @@ import com.zjsgfa.framework.web.domain.BaseEntity;
...
@@ -13,6 +14,7 @@ import com.zjsgfa.framework.web.domain.BaseEntity;
* @author
* @author
* @date 2025-08-20
* @date 2025-08-20
*/
*/
@Data
public
class
SjSggyZjyFdxnb
extends
BaseEntity
public
class
SjSggyZjyFdxnb
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -85,6 +87,7 @@ public class SjSggyZjyFdxnb extends BaseEntity
...
@@ -85,6 +87,7 @@ public class SjSggyZjyFdxnb extends BaseEntity
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
createdTime
;
private
Date
createdTime
;
private
Double
firstNumber
;
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
{
{
this
.
id
=
id
;
this
.
id
=
id
;
...
...
src/main/java/com/zjsgfa/project/zjsgfa/domain/SjZjyFdxnb.java
View file @
b6d44c41
...
@@ -2,6 +2,7 @@ package com.zjsgfa.project.zjsgfa.domain;
...
@@ -2,6 +2,7 @@ package com.zjsgfa.project.zjsgfa.domain;
import
java.util.Date
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zjsgfa.framework.aspectj.lang.annotation.Excel
;
import
com.zjsgfa.framework.aspectj.lang.annotation.Excel
;
...
@@ -13,6 +14,7 @@ import com.zjsgfa.framework.web.domain.BaseEntity;
...
@@ -13,6 +14,7 @@ import com.zjsgfa.framework.web.domain.BaseEntity;
* @author
* @author
* @date 2025-07-17
* @date 2025-07-17
*/
*/
@Data
public
class
SjZjyFdxnb
extends
BaseEntity
public
class
SjZjyFdxnb
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -85,6 +87,8 @@ public class SjZjyFdxnb extends BaseEntity
...
@@ -85,6 +87,8 @@ public class SjZjyFdxnb extends BaseEntity
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
createdTime
;
private
Date
createdTime
;
private
Double
firstNumber
;
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
{
{
this
.
id
=
id
;
this
.
id
=
id
;
...
...
src/main/java/com/zjsgfa/project/zjsgfa/mapper/SjZtcsxxMapper.java
View file @
b6d44c41
...
@@ -58,4 +58,7 @@ public interface SjZtcsxxMapper
...
@@ -58,4 +58,7 @@ public interface SjZtcsxxMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteSjZtcsxxByIds
(
Long
[]
ids
);
public
int
deleteSjZtcsxxByIds
(
Long
[]
ids
);
int
deleteSjZtcsxxByJhAndKcAndlb
(
SjZtcsxx
sjZtcsxx
);
}
}
src/main/java/com/zjsgfa/project/zjsgfa/service/ISjDjjcService.java
View file @
b6d44c41
...
@@ -71,4 +71,7 @@ public interface ISjDjjcService
...
@@ -71,4 +71,7 @@ public interface ISjDjjcService
AjaxResult
saveZjzh
(
CommonParam
param
);
AjaxResult
saveZjzh
(
CommonParam
param
);
AjaxResult
jsljjz
(
SjDjjc
sjDjjc
)
throws
Exception
;
AjaxResult
jsljjz
(
SjDjjc
sjDjjc
)
throws
Exception
;
int
getGzbjList
(
String
jh
)
throws
Exception
;
}
}
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjDjjcServiceImpl.java
View file @
b6d44c41
This diff is collapsed.
Click to expand it.
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjFdsgcsServiceImpl.java
View file @
b6d44c41
...
@@ -329,7 +329,13 @@ public class SjFdsgcsServiceImpl implements ISjFdsgcsService
...
@@ -329,7 +329,13 @@ public class SjFdsgcsServiceImpl implements ISjFdsgcsService
sjFdsgcs
.
setZjgccs
(
zjgccs
);
sjFdsgcs
.
setZjgccs
(
zjgccs
);
sjFdsgcs
.
setZjycs
(
zjycs
);
sjFdsgcs
.
setZjycs
(
zjycs
);
sjFdsgcs
.
setZyfx
(
zyfx
);
sjFdsgcs
.
setZyfx
(
zyfx
);
String
join
=
String
.
join
(
";"
,
fzqk
);
String
join
=
""
;
if
(
fzqk
.
size
()>
0
){
join
=
String
.
join
(
";"
,
fzqk
);
}
else
{
join
=
"无"
;
}
if
(
ytzl
>
0
&&
ytzl
<
100
){
if
(
ytzl
>
0
&&
ytzl
<
100
){
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%;"
;
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%;"
;
sjFdsgcs
.
setTzqk
(
tzqk
);
sjFdsgcs
.
setTzqk
(
tzqk
);
...
@@ -344,9 +350,11 @@ public class SjFdsgcsServiceImpl implements ISjFdsgcsService
...
@@ -344,9 +350,11 @@ public class SjFdsgcsServiceImpl implements ISjFdsgcsService
if
(
ytzl
>
0
&&
ytzl
<
100
){
if
(
ytzl
>
0
&&
ytzl
<
100
){
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%"
;
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%"
;
sjFdsgcs
.
setTzqk
(
tzqk
);
sjFdsgcs
.
setTzqk
(
tzqk
);
sjFdsgcs
.
setLjfzqk
(
"无"
);
}
else
if
(
ytzl
>=
100
){
}
else
if
(
ytzl
>=
100
){
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%,可实现一趟钻完成"
;
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%,可实现一趟钻完成"
;
sjFdsgcs
.
setTzqk
(
tzqk
);
sjFdsgcs
.
setTzqk
(
tzqk
);
sjFdsgcs
.
setLjfzqk
(
"无"
);
}
}
...
@@ -409,7 +417,12 @@ public class SjFdsgcsServiceImpl implements ISjFdsgcsService
...
@@ -409,7 +417,12 @@ public class SjFdsgcsServiceImpl implements ISjFdsgcsService
sjFdsgcs1
.
setZjgccs
(
zjgccs
);
sjFdsgcs1
.
setZjgccs
(
zjgccs
);
sjFdsgcs1
.
setZjycs
(
zjycs
);
sjFdsgcs1
.
setZjycs
(
zjycs
);
sjFdsgcs1
.
setZyfx
(
zyfx
);
sjFdsgcs1
.
setZyfx
(
zyfx
);
String
join
=
String
.
join
(
";"
,
fzqk
);
String
join
=
""
;
if
(
fzqk
.
size
()>
0
){
join
=
String
.
join
(
";"
,
fzqk
);
}
else
{
join
=
"无"
;
}
if
(
ytzl
>=
0
&&
ytzl
<
100
){
if
(
ytzl
>=
0
&&
ytzl
<
100
){
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%;"
;
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%;"
;
sjFdsgcs1
.
setTzqk
(
tzqk
);
sjFdsgcs1
.
setTzqk
(
tzqk
);
...
@@ -423,18 +436,39 @@ public class SjFdsgcsServiceImpl implements ISjFdsgcsService
...
@@ -423,18 +436,39 @@ public class SjFdsgcsServiceImpl implements ISjFdsgcsService
if
(
ytzl
>=
0
&&
ytzl
<
100
){
if
(
ytzl
>=
0
&&
ytzl
<
100
){
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%"
;
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%"
;
sjFdsgcs1
.
setTzqk
(
tzqk
);
sjFdsgcs1
.
setTzqk
(
tzqk
);
sjFdsgcs1
.
setLjfzqk
(
"无"
);
}
else
if
(
ytzl
>=
100
){
}
else
if
(
ytzl
>=
100
){
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%,可实现一趟钻完成"
;
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%,可实现一趟钻完成"
;
sjFdsgcs1
.
setTzqk
(
tzqk
);
sjFdsgcs1
.
setTzqk
(
tzqk
);
sjFdsgcs1
.
setLjfzqk
(
"无"
);
}
}
}
}
}
else
{
}
else
{
if
(
ytzl
>=
0
&&
ytzl
<
100
){
if
(
ytzl
>=
0
&&
ytzl
<
100
){
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%"
;
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%"
;
sjFdsgcs1
.
setTzqk
(
tzqk
);
sjFdsgcs1
.
setTzqk
(
tzqk
);
sjFdsgcs1
.
setLjfzqk
(
"无"
);
}
else
if
(
ytzl
>=
100
){
}
else
if
(
ytzl
>=
100
){
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%,可实现一趟钻完成"
;
String
tzqk
=
"邻井一趟钻完成率为"
+
ytzl
+
"%,可实现一趟钻完成"
;
sjFdsgcs1
.
setTzqk
(
tzqk
);
sjFdsgcs1
.
setTzqk
(
tzqk
);
sjFdsgcs1
.
setLjfzqk
(
"无"
);
}
}
//井段情况
double
cs
=
CxszhUtil
.
getCs
(
sjJygjGdsjgdcsList
,
sjJsjg1
.
getJs
());
csaa
=
cs
;
SjFdsgcsDcyx
sjFdsgcsDcyx
=
new
SjFdsgcsDcyx
();
sjFdsgcsDcyx
.
setJh
(
sjFdsgcs1
.
getJh
());
sjFdsgcsDcyx
.
setKscs
(
previousDepth
);
sjFdsgcsDcyx
.
setJscs
(
cs
);
List
<
SjFdsgcsDcyx
>
sjFdsgcsDcyxList
=
sjFdsgcsDcyxMapper
.
getListByJh
(
sjFdsgcsDcyx
);
if
(
sjFdsgcsDcyxList
.
size
()>
0
){
if
(
sjFdsgcsDcyxList
.
size
()==
1
){
sjFdsgcs1
.
setJdqk
(
previousDepth
+
"-"
+
cs
+
","
+
sjFdsgcsDcyxList
.
get
(
0
).
getDcmc
());
}
else
{
sjFdsgcs1
.
setJdqk
(
previousDepth
+
"-"
+
cs
+
","
+
sjFdsgcsDcyxList
.
get
(
0
).
getDcmc
()+
"-"
+
sjFdsgcsDcyxList
.
get
(
sjFdsgcsDcyxList
.
size
()-
1
).
getDcmc
());
}
}
}
}
sjFdsgcsMapper
.
updateSjFdsgcs
(
sjFdsgcs1
);
sjFdsgcsMapper
.
updateSjFdsgcs
(
sjFdsgcs1
);
...
...
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjFdsgcsZjyFdxnbServiceImpl.java
View file @
b6d44c41
...
@@ -7,6 +7,7 @@ import java.util.stream.Collectors;
...
@@ -7,6 +7,7 @@ import java.util.stream.Collectors;
import
com.zjsgfa.common.utils.StringUtils
;
import
com.zjsgfa.common.utils.StringUtils
;
import
com.zjsgfa.common.utils.bean.BeanUtils
;
import
com.zjsgfa.common.utils.bean.BeanUtils
;
import
com.zjsgfa.project.zjsgfa.domain.SjSggyZjyFdxnb
;
import
com.zjsgfa.project.zjsgfa.domain.SjSggyZjyFdxnb
;
import
com.zjsgfa.project.zjsgfa.domain.SjZjyFdxnb
;
import
com.zjsgfa.project.zjsgfa.mapper.SjSggyZjyFdxnbMapper
;
import
com.zjsgfa.project.zjsgfa.mapper.SjSggyZjyFdxnbMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -78,14 +79,18 @@ public class SjFdsgcsZjyFdxnbServiceImpl implements ISjFdsgcsZjyFdxnbService
...
@@ -78,14 +79,18 @@ public class SjFdsgcsZjyFdxnbServiceImpl implements ISjFdsgcsZjyFdxnbService
);
);
// 提取井段(去重,按顺序排列)
// 提取井段(去重,按顺序排列)
List
<
String
>
wellSegments
=
list
.
stream
()
// List<String> wellSegments = list.stream()
// .map(SjFdsgcsZjyFdxnb::getJd)
// .distinct().sorted((s1, s2) -> {
// // 提取第一个数值
// int num1 = extractStartNumber(s1);
// int num2 = extractStartNumber(s2);
// return Integer.compare(num1, num2);
// })
// .collect(Collectors.toList());
List
<
String
>
wellSegments
=
list
.
stream
().
sorted
(
Comparator
.
comparing
(
SjFdsgcsZjyFdxnb:
:
getFirstNumber
))
.
map
(
SjFdsgcsZjyFdxnb:
:
getJd
)
.
map
(
SjFdsgcsZjyFdxnb:
:
getJd
)
.
distinct
().
sorted
((
s1
,
s2
)
->
{
.
distinct
()
// 提取第一个数值
int
num1
=
extractStartNumber
(
s1
);
int
num2
=
extractStartNumber
(
s2
);
return
Integer
.
compare
(
num1
,
num2
);
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
// 表格数据:每行对应一个固定项目,每列对应一个井段
// 表格数据:每行对应一个固定项目,每列对应一个井段
...
...
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjSggyZjyFdxnbServiceImpl.java
View file @
b6d44c41
...
@@ -72,14 +72,18 @@ public class SjSggyZjyFdxnbServiceImpl implements ISjSggyZjyFdxnbService
...
@@ -72,14 +72,18 @@ public class SjSggyZjyFdxnbServiceImpl implements ISjSggyZjyFdxnbService
);
);
// 提取井段(去重,按顺序排列)
// 提取井段(去重,按顺序排列)
List
<
String
>
wellSegments
=
list
.
stream
()
// List<String> wellSegments = list.stream()
// .map(SjSggyZjyFdxnb::getJd)
// .distinct().sorted((s1, s2) -> {
// // 提取第一个数值
// int num1 = extractStartNumber(s1);
// int num2 = extractStartNumber(s2);
// return Integer.compare(num1, num2);
// })
// .collect(Collectors.toList());
List
<
String
>
wellSegments
=
list
.
stream
().
sorted
(
Comparator
.
comparing
(
SjSggyZjyFdxnb:
:
getFirstNumber
))
.
map
(
SjSggyZjyFdxnb:
:
getJd
)
.
map
(
SjSggyZjyFdxnb:
:
getJd
)
.
distinct
().
sorted
((
s1
,
s2
)
->
{
.
distinct
()
// 提取第一个数值
int
num1
=
extractStartNumber
(
s1
);
int
num2
=
extractStartNumber
(
s2
);
return
Integer
.
compare
(
num1
,
num2
);
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
// 表格数据:每行对应一个固定项目,每列对应一个井段
// 表格数据:每行对应一个固定项目,每列对应一个井段
List
<
Map
<
String
,
String
>>
tableData
=
new
ArrayList
<>();
List
<
Map
<
String
,
String
>>
tableData
=
new
ArrayList
<>();
...
...
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjZjyFdxnbServiceImpl.java
View file @
b6d44c41
...
@@ -6,6 +6,7 @@ import java.util.stream.Collectors;
...
@@ -6,6 +6,7 @@ import java.util.stream.Collectors;
import
com.zjsgfa.common.utils.DateUtils
;
import
com.zjsgfa.common.utils.DateUtils
;
import
com.zjsgfa.project.zjsgfa.domain.SjFdsgcsZjyFdxnb
;
import
com.zjsgfa.project.zjsgfa.domain.SjFdsgcsZjyFdxnb
;
import
com.zjsgfa.project.zjsgfa.domain.SjSggyZjyFdxnb
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.zjsgfa.project.zjsgfa.mapper.SjZjyFdxnbMapper
;
import
com.zjsgfa.project.zjsgfa.mapper.SjZjyFdxnbMapper
;
...
@@ -72,14 +73,18 @@ public class SjZjyFdxnbServiceImpl implements ISjZjyFdxnbService
...
@@ -72,14 +73,18 @@ public class SjZjyFdxnbServiceImpl implements ISjZjyFdxnbService
);
);
// 提取井段(去重,按顺序排列)
// 提取井段(去重,按顺序排列)
List
<
String
>
wellSegments
=
list
.
stream
()
// List<String> wellSegments = list.stream()
// .map(SjZjyFdxnb::getJd)
// .distinct().sorted((s1, s2) -> {
// // 提取第一个数值
// int num1 = extractStartNumber(s1);
// int num2 = extractStartNumber(s2);
// return Integer.compare(num1, num2);
// })
// .collect(Collectors.toList());
List
<
String
>
wellSegments
=
list
.
stream
().
sorted
(
Comparator
.
comparing
(
SjZjyFdxnb:
:
getFirstNumber
))
.
map
(
SjZjyFdxnb:
:
getJd
)
.
map
(
SjZjyFdxnb:
:
getJd
)
.
distinct
().
sorted
((
s1
,
s2
)
->
{
.
distinct
()
// 提取第一个数值
int
num1
=
extractStartNumber
(
s1
);
int
num2
=
extractStartNumber
(
s2
);
return
Integer
.
compare
(
num1
,
num2
);
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
// 表格数据:每行对应一个固定项目,每列对应一个井段
// 表格数据:每行对应一个固定项目,每列对应一个井段
...
...
src/main/java/com/zjsgfa/project/zt/controller/DjdcController.java
View file @
b6d44c41
This diff is collapsed.
Click to expand it.
src/main/java/com/zjsgfa/project/zt/domain/vo/ApiResponse.java
View file @
b6d44c41
package
com
.
zjsgfa
.
project
.
zt
.
domain
.
vo
;
package
com
.
zjsgfa
.
project
.
zt
.
domain
.
vo
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
lombok.Data
;
import
lombok.Data
;
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Data
@Data
public
class
ApiResponse
{
public
class
ApiResponse
{
private
int
code
;
private
int
code
;
...
...
src/main/resources/mybatis/zjsgfa/SgfambKcSggyMapper.xml
View file @
b6d44c41
...
@@ -30,11 +30,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -30,11 +30,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"sgcstjid"
column=
"sgcstjid"
/>
<result
property=
"sgcstjid"
column=
"sgcstjid"
/>
<result
property=
"tjmc"
column=
"tjmc"
/>
<result
property=
"tjmc"
column=
"tjmc"
/>
<result
property=
"fxts"
column=
"fxts"
/>
<result
property=
"fxts"
column=
"fxts"
/>
<result
property=
"zjzysx"
column=
"zjzysx"
/>
<result
property=
"zjzssx"
column=
"zjzssx"
/>
<result
property=
"zjplsx"
column=
"zjplsx"
/>
<result
property=
"zjbysx"
column=
"zjbysx"
/>
<result
property=
"cj"
column=
"cj"
/>
<result
property=
"cc"
column=
"cc"
/>
<result
property=
"sy"
column=
"sy"
/>
<result
property=
"yj"
column=
"yj"
/>
<result
property=
"zjymd"
column=
"zjymd"
/>
<result
property=
"dy"
column=
"dy"
/>
<result
property=
"ffp"
column=
"ffp"
/>
<result
property=
"ffpcx"
column=
"ffpcx"
/>
</resultMap>
</resultMap>
<sql
id=
"selectSgfambKcSggyVo"
>
<sql
id=
"selectSgfambKcSggyVo"
>
select id, zbid, kc, ksjs, jsjs, ztxh, zjzy, zjzs, zjpl, zjby, zjzh, zjzhzysx, gjfx, gjyh, zjycs,
select id, zbid, kc, ksjs, jsjs, ztxh, zjzy, zjzs, zjpl, zjby, zjzh, zjzhzysx, gjfx, gjyh, zjycs,
zjgccs, created_by, created_time, update_by, update_time, zttjid,zjzhtjid,sgcstjid,tjmc,fxts from sgfamb_kc_sggy
zjgccs, created_by, created_time, update_by, update_time, zttjid,zjzhtjid,sgcstjid,tjmc,fxts
,zjzysx,zjzssx,zjplsx,zjbysx,cj,cc,sy,yj,zjymd,dy,ffp,ffpcx
from sgfamb_kc_sggy
</sql>
</sql>
<select
id=
"selectSgfambKcSggyList"
parameterType=
"SgfambKcSggy"
resultMap=
"SgfambKcSggyResult"
>
<select
id=
"selectSgfambKcSggyList"
parameterType=
"SgfambKcSggy"
resultMap=
"SgfambKcSggyResult"
>
...
@@ -61,6 +73,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -61,6 +73,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"zjzhtjid != null "
>
and zjzhtjid = #{zjzhtjid}
</if>
<if
test=
"zjzhtjid != null "
>
and zjzhtjid = #{zjzhtjid}
</if>
<if
test=
"sgcstjid != null "
>
and sgcstjid = #{sgcstjid}
</if>
<if
test=
"sgcstjid != null "
>
and sgcstjid = #{sgcstjid}
</if>
<if
test=
"tjmc != null "
>
and tjmc = #{tjmc}
</if>
<if
test=
"tjmc != null "
>
and tjmc = #{tjmc}
</if>
<if
test=
"zjzysx != null and zjzysx != ''"
>
and zjzysx = #{zjzysx}
</if>
<if
test=
"zjzssx != null and zjzssx != ''"
>
and zjzssx = #{zjzssx}
</if>
<if
test=
"zjplsx != null and zjplsx != ''"
>
and zjplsx = #{zjplsx}
</if>
<if
test=
"zjbysx != null and zjbysx != ''"
>
and zjbysx = #{zjbysx}
</if>
<if
test=
"cj != null and cj != ''"
>
and cj = #{cj}
</if>
<if
test=
"cc != null and cc != ''"
>
and cc = #{cc}
</if>
<if
test=
"sy != null and sy != ''"
>
and sy = #{sy}
</if>
<if
test=
"yj != null and yj != ''"
>
and yj = #{yj}
</if>
<if
test=
"zjymd != null and zjymd != ''"
>
and zjymd = #{zjymd}
</if>
<if
test=
"dy != null and dy != ''"
>
and dy = #{dy}
</if>
<if
test=
"ffp != null and ffp != ''"
>
and ffp = #{ffp}
</if>
<if
test=
"ffpcx != null and ffpcx != ''"
>
and ffpcx = #{ffpcx}
</if>
</where>
</where>
</select>
</select>
...
@@ -110,6 +134,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -110,6 +134,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"sgcstjid != null"
>
sgcstjid,
</if>
<if
test=
"sgcstjid != null"
>
sgcstjid,
</if>
<if
test=
"tjmc != null"
>
tjmc,
</if>
<if
test=
"tjmc != null"
>
tjmc,
</if>
<if
test=
"fxts != null"
>
fxts,
</if>
<if
test=
"fxts != null"
>
fxts,
</if>
<if
test=
"zjzysx != null"
>
zjzysx,
</if>
<if
test=
"zjzssx != null"
>
zjzssx,
</if>
<if
test=
"zjbysx != null"
>
zjbysx,
</if>
<if
test=
"zjplsx != null"
>
zjplsx,
</if>
<if
test=
"cj != null"
>
cj,
</if>
<if
test=
"cc != null"
>
cc,
</if>
<if
test=
"sy != null"
>
sy,
</if>
<if
test=
"yj != null"
>
yj,
</if>
<if
test=
"zjymd != null"
>
zjymd,
</if>
<if
test=
"dy != null"
>
dy,
</if>
<if
test=
"ffp != null"
>
ffp,
</if>
<if
test=
"ffpcx != null"
>
ffpcx,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"zbid != null"
>
#{zbid},
</if>
<if
test=
"zbid != null"
>
#{zbid},
</if>
...
@@ -136,6 +172,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -136,6 +172,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"sgcstjid != null"
>
#{sgcstjid},
</if>
<if
test=
"sgcstjid != null"
>
#{sgcstjid},
</if>
<if
test=
"tjmc != null"
>
#{tjmc},
</if>
<if
test=
"tjmc != null"
>
#{tjmc},
</if>
<if
test=
"fxts != null"
>
#{fxts},
</if>
<if
test=
"fxts != null"
>
#{fxts},
</if>
<if
test=
"zjzysx != null"
>
#{zjzysx},
</if>
<if
test=
"zjzssx != null"
>
#{zjzssx},
</if>
<if
test=
"zjbysx != null"
>
#{zjbysx},
</if>
<if
test=
"zjplsx != null"
>
#{zjplsx},
</if>
<if
test=
"cj != null"
>
#{cj},
</if>
<if
test=
"cc != null"
>
#{cc},
</if>
<if
test=
"sy != null"
>
#{sy},
</if>
<if
test=
"yj != null"
>
#{yj},
</if>
<if
test=
"zjymd != null"
>
#{zjymd},
</if>
<if
test=
"dy != null"
>
#{dy},
</if>
<if
test=
"ffp != null"
>
#{ffp},
</if>
<if
test=
"ffpcx != null"
>
#{ffpcx},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -166,6 +214,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -166,6 +214,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"zjzhtjid != null"
>
zjzhtjid = #{zjzhtjid},
</if>
<if
test=
"zjzhtjid != null"
>
zjzhtjid = #{zjzhtjid},
</if>
<if
test=
"tjmc != null"
>
tjmc = #{tjmc},
</if>
<if
test=
"tjmc != null"
>
tjmc = #{tjmc},
</if>
<if
test=
"fxts != null"
>
fxts = #{fxts},
</if>
<if
test=
"fxts != null"
>
fxts = #{fxts},
</if>
<if
test=
"zjzysx != null"
>
zjzysx = #{zjzysx},
</if>
<if
test=
"zjzssx != null"
>
zjzssx = #{zjzssx},
</if>
<if
test=
"zjbysx != null"
>
zjbysx = #{zjbysx},
</if>
<if
test=
"zjplsx != null"
>
zjplsx = #{zjplsx},
</if>
<if
test=
"cj != null"
>
cj = #{cj},
</if>
<if
test=
"cc != null"
>
cc = #{cc},
</if>
<if
test=
"sy != null"
>
sy = #{sy},
</if>
<if
test=
"yj != null"
>
yj = #{yj},
</if>
<if
test=
"zjymd != null"
>
zjymd = #{zjymd},
</if>
<if
test=
"dy != null"
>
dy = #{dy},
</if>
<if
test=
"ffp != null"
>
ffp = #{ffp},
</if>
<if
test=
"ffpcx != null"
>
ffpcx = #{ffpcx},
</if>
</trim>
</trim>
where id = #{id}
where id = #{id}
</update>
</update>
...
...
src/main/resources/mybatis/zjsgfa/SjDcfxTsyxMapper.xml
View file @
b6d44c41
...
@@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"cw != null and cw != ''"
>
and cw = #{cw}
</if>
<if
test=
"cw != null and cw != ''"
>
and cw = #{cw}
</if>
<if
test=
"jds != null "
>
and jds = #{jds}
</if>
<if
test=
"jds != null "
>
and jds = #{jds}
</if>
</where>
</where>
order by jds
</select>
</select>
<select
id=
"selectSjDcfxTsyxById"
parameterType=
"Long"
resultMap=
"SjDcfxTsyxResult"
>
<select
id=
"selectSjDcfxTsyxById"
parameterType=
"Long"
resultMap=
"SjDcfxTsyxResult"
>
...
...
src/main/resources/mybatis/zjsgfa/SjDjjcMapper.xml
View file @
b6d44c41
...
@@ -36,10 +36,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -36,10 +36,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"hsezt"
column=
"hsezt"
/>
<result
property=
"hsezt"
column=
"hsezt"
/>
<result
property=
"jhjdzt"
column=
"jhjdzt"
/>
<result
property=
"jhjdzt"
column=
"jhjdzt"
/>
<result
property=
"flzt"
column=
"flzt"
/>
<result
property=
"flzt"
column=
"flzt"
/>
<result
property=
"faid"
column=
"faid"
/>
</resultMap>
</resultMap>
<sql
id=
"selectSjDjjcVo"
>
<sql
id=
"selectSjDjjcVo"
>
select id, jh, jb, jx, jkhzb, jkzzb, gzwz, wzcw, ztmd, wzyz, wjfa, created_by, created_time, update_by, update_time, zjgs, zjd, jdhzb, jdzzb, zt, qk, sjzt, ljzlzt, dzfxzt, fxtszt, sggyzt, fdsgzt, jkzt, hsezt, jhjdzt, flzt from sj_djjc
select id, jh, jb, jx, jkhzb, jkzzb, gzwz, wzcw, ztmd, wzyz, wjfa, created_by, created_time, update_by, update_time, zjgs, zjd, jdhzb, jdzzb, zt, qk, sjzt, ljzlzt, dzfxzt, fxtszt, sggyzt, fdsgzt, jkzt, hsezt, jhjdzt, flzt
, faid
from sj_djjc
</sql>
</sql>
<select
id=
"selectSjDjjcList"
parameterType=
"SjDjjc"
resultMap=
"SjDjjcResult"
>
<select
id=
"selectSjDjjcList"
parameterType=
"SjDjjc"
resultMap=
"SjDjjcResult"
>
...
@@ -119,6 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -119,6 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"hsezt != null"
>
hsezt,
</if>
<if
test=
"hsezt != null"
>
hsezt,
</if>
<if
test=
"jhjdzt != null"
>
jhjdzt,
</if>
<if
test=
"jhjdzt != null"
>
jhjdzt,
</if>
<if
test=
"flzt != null"
>
flzt,
</if>
<if
test=
"flzt != null"
>
flzt,
</if>
<if
test=
"faid != null"
>
faid,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
#{jh},
</if>
<if
test=
"jh != null"
>
#{jh},
</if>
...
@@ -151,6 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -151,6 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"hsezt != null"
>
#{hsezt},
</if>
<if
test=
"hsezt != null"
>
#{hsezt},
</if>
<if
test=
"jhjdzt != null"
>
#{jhjdzt},
</if>
<if
test=
"jhjdzt != null"
>
#{jhjdzt},
</if>
<if
test=
"flzt != null"
>
#{flzt},
</if>
<if
test=
"flzt != null"
>
#{flzt},
</if>
<if
test=
"faid != null"
>
#{faid},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -186,6 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -186,6 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"hsezt != null"
>
hsezt = #{hsezt},
</if>
<if
test=
"hsezt != null"
>
hsezt = #{hsezt},
</if>
<if
test=
"jhjdzt != null"
>
jhjdzt = #{jhjdzt},
</if>
<if
test=
"jhjdzt != null"
>
jhjdzt = #{jhjdzt},
</if>
<if
test=
"flzt != null"
>
flzt = #{flzt},
</if>
<if
test=
"flzt != null"
>
flzt = #{flzt},
</if>
<if
test=
"faid != null"
>
faid = #{faid},
</if>
</trim>
</trim>
where jh = #{jh}
where jh = #{jh}
</update>
</update>
...
...
src/main/resources/mybatis/zjsgfa/SjFdsgcsZjyFdxnbMapper.xml
View file @
b6d44c41
...
@@ -23,7 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -23,7 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
</resultMap>
<sql
id=
"selectSjFdsgcsZjyFdxnbVo"
>
<sql
id=
"selectSjFdsgcsZjyFdxnbVo"
>
select id, jh, kc, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd from sj_fdsgcs_zjy_fdxnb
select id, jh, kc, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd,
CAST(TRIM(SUBSTRING_INDEX(jd, '~', 1)) AS DECIMAL(10, 2)) AS first_number from sj_fdsgcs_zjy_fdxnb
</sql>
</sql>
<select
id=
"selectSjFdsgcsZjyFdxnbList"
parameterType=
"SjFdsgcsZjyFdxnb"
resultMap=
"SjFdsgcsZjyFdxnbResult"
>
<select
id=
"selectSjFdsgcsZjyFdxnbList"
parameterType=
"SjFdsgcsZjyFdxnb"
resultMap=
"SjFdsgcsZjyFdxnbResult"
>
...
@@ -44,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -44,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"dql != null and dql != ''"
>
and dql = #{dql}
</if>
<if
test=
"dql != null and dql != ''"
>
and dql = #{dql}
</if>
<if
test=
"sxnd != null and sxnd != ''"
>
and sxnd = #{sxnd}
</if>
<if
test=
"sxnd != null and sxnd != ''"
>
and sxnd = #{sxnd}
</if>
</where>
</where>
order by kc,
CAST(SUBSTRING_INDEX(jd, '~', 1) AS UNSIGNED)
order by kc,
first_number
</select>
</select>
<select
id=
"selectSjFdsgcsZjyFdxnbById"
parameterType=
"Long"
resultMap=
"SjFdsgcsZjyFdxnbResult"
>
<select
id=
"selectSjFdsgcsZjyFdxnbById"
parameterType=
"Long"
resultMap=
"SjFdsgcsZjyFdxnbResult"
>
...
...
src/main/resources/mybatis/zjsgfa/SjJsjgMapper.xml
View file @
b6d44c41
...
@@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createdBy != null and createdBy != ''"
>
and created_by = #{createdBy}
</if>
<if
test=
"createdBy != null and createdBy != ''"
>
and created_by = #{createdBy}
</if>
<if
test=
"createdTime != null "
>
and created_time = #{createdTime}
</if>
<if
test=
"createdTime != null "
>
and created_time = #{createdTime}
</if>
</where>
</where>
order by jh ,
kc
order by jh ,
js
</select>
</select>
<select
id=
"selectSjJsjgById"
parameterType=
"Long"
resultMap=
"SjJsjgResult"
>
<select
id=
"selectSjJsjgById"
parameterType=
"Long"
resultMap=
"SjJsjgResult"
>
...
...
src/main/resources/mybatis/zjsgfa/SjSggyZjyFdxnbMapper.xml
View file @
b6d44c41
...
@@ -24,10 +24,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -24,10 +24,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"createdTime"
column=
"created_time"
/>
<result
property=
"createdTime"
column=
"created_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"firstNumber"
column=
"first_number"
/>
</resultMap>
</resultMap>
<sql
id=
"selectSjSggyZjyFdxnbVo"
>
<sql
id=
"selectSjSggyZjyFdxnbVo"
>
select id, jh, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd, bz, created_by, created_time, update_by, update_time from sj_sggy_zjy_fdxnb
select id, jh, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd, bz, created_by, created_time, update_by, update_time,
CAST(TRIM(SUBSTRING_INDEX(jd, '~', 1)) AS DECIMAL(10, 2)) AS first_number from sj_sggy_zjy_fdxnb
</sql>
</sql>
<select
id=
"selectSjSggyZjyFdxnbList"
parameterType=
"SjSggyZjyFdxnb"
resultMap=
"SjSggyZjyFdxnbResult"
>
<select
id=
"selectSjSggyZjyFdxnbList"
parameterType=
"SjSggyZjyFdxnb"
resultMap=
"SjSggyZjyFdxnbResult"
>
...
@@ -50,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -50,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createdBy != null and createdBy != ''"
>
and created_by = #{createdBy}
</if>
<if
test=
"createdBy != null and createdBy != ''"
>
and created_by = #{createdBy}
</if>
<if
test=
"createdTime != null "
>
and created_time = #{createdTime}
</if>
<if
test=
"createdTime != null "
>
and created_time = #{createdTime}
</if>
</where>
</where>
order by
jd
order by
first_number
</select>
</select>
<select
id=
"selectSjSggyZjyFdxnbById"
parameterType=
"Long"
resultMap=
"SjSggyZjyFdxnbResult"
>
<select
id=
"selectSjSggyZjyFdxnbById"
parameterType=
"Long"
resultMap=
"SjSggyZjyFdxnbResult"
>
...
...
src/main/resources/mybatis/zjsgfa/SjZjyFdxnbMapper.xml
View file @
b6d44c41
...
@@ -24,10 +24,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -24,10 +24,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"createdTime"
column=
"created_time"
/>
<result
property=
"createdTime"
column=
"created_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"firstNumber"
column=
"first_number"
/>
</resultMap>
</resultMap>
<sql
id=
"selectSjZjyFdxnbVo"
>
<sql
id=
"selectSjZjyFdxnbVo"
>
select id, jh, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd, bz, created_by, created_time, update_by, update_time from sj_zjy_fdxnb
select id, jh, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd, bz, created_by, created_time, update_by, update_time,
CAST(TRIM(SUBSTRING_INDEX(jd, '~', 1)) AS DECIMAL(10, 2)) AS first_number from sj_zjy_fdxnb
</sql>
</sql>
<select
id=
"selectSjZjyFdxnbList"
parameterType=
"SjZjyFdxnb"
resultMap=
"SjZjyFdxnbResult"
>
<select
id=
"selectSjZjyFdxnbList"
parameterType=
"SjZjyFdxnb"
resultMap=
"SjZjyFdxnbResult"
>
...
@@ -50,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -50,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createdBy != null and createdBy != ''"
>
and created_by = #{createdBy}
</if>
<if
test=
"createdBy != null and createdBy != ''"
>
and created_by = #{createdBy}
</if>
<if
test=
"createdTime != null "
>
and created_time = #{createdTime}
</if>
<if
test=
"createdTime != null "
>
and created_time = #{createdTime}
</if>
</where>
</where>
order by
jd
order by
first_number
</select>
</select>
<select
id=
"selectSjZjyFdxnbById"
parameterType=
"Long"
resultMap=
"SjZjyFdxnbResult"
>
<select
id=
"selectSjZjyFdxnbById"
parameterType=
"Long"
resultMap=
"SjZjyFdxnbResult"
>
...
...
src/main/resources/mybatis/zjsgfa/SjZtcsxxMapper.xml
View file @
b6d44c41
...
@@ -88,4 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -88,4 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
#{id}
</foreach>
</foreach>
</delete>
</delete>
<delete
id=
"deleteSjZtcsxxByJhAndKcAndlb"
>
delete from sj_ztcsxx where jh=#{jh} and kc=#{kc} and lb=#{lb}
</delete>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/zjsgfa/SjZtxxMapper.xml
View file @
b6d44c41
...
@@ -69,6 +69,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -69,6 +69,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</delete>
</delete>
<delete
id=
"deleteSjZtxxByZtxx"
>
<delete
id=
"deleteSjZtxxByZtxx"
>
delete from sj_ztxx where jh = #{jh} and kc = #{kc}
delete from sj_ztxx where jh = #{jh} and kc = #{kc}
and lb = #{lb}
</delete>
</delete>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/zt/DjdcInfoMapper.xml
View file @
b6d44c41
...
@@ -269,7 +269,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -269,7 +269,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
kc
kc
ORDER BY
ORDER BY
kc
kc
) d on a.JH = d.jh
) d on a.JH = d.jh
and c.kc=d.kc
where 1=1
where 1=1
<if
test=
"jdhzb!=null"
>
<if
test=
"jdhzb!=null"
>
and ABS(#{jdhzb} - a.jdhzb)
<
#{jl}
and ABS(#{jdhzb} - a.jdhzb)
<
#{jl}
...
...
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