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
b9b9ea25
Commit
b9b9ea25
authored
Aug 06, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e5fa9b71
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
675 additions
and
0 deletions
+675
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/SjDjjcController.java
+153
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/SjFdsgcsDcyxController.java
+104
-0
src/main/java/com/ruoyi/project/zjsgfa/domain/SjFdsgcsDcyx.java
+106
-0
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjFdsgcsDcyxMapper.java
+66
-0
src/main/java/com/ruoyi/project/zjsgfa/service/ISjFdsgcsDcyxService.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjFdsgcsDcyxServiceImpl.java
+93
-0
src/main/resources/mybatis/zjsgfa/SjFdsgcsDcyxMapper.xml
+92
-0
No files found.
src/main/java/com/ruoyi/project/zjsgfa/controller/SjDjjcController.java
View file @
b9b9ea25
...
@@ -3,6 +3,7 @@ package com.ruoyi.project.zjsgfa.controller;
...
@@ -3,6 +3,7 @@ package com.ruoyi.project.zjsgfa.controller;
import
java.io.*
;
import
java.io.*
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.text.DecimalFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Base64
;
import
java.util.Base64
;
import
java.util.List
;
import
java.util.List
;
...
@@ -109,6 +110,9 @@ public class SjDjjcController extends BaseController
...
@@ -109,6 +110,9 @@ public class SjDjjcController extends BaseController
@Autowired
@Autowired
private
SjDcfxDzfcMapper
sjDcfxDzfcMapper
;
private
SjDcfxDzfcMapper
sjDcfxDzfcMapper
;
@Autowired
private
SjFdsgcsDcyxMapper
sjFdsgcsDcyxMapper
;
...
@@ -1496,9 +1500,34 @@ public class SjDjjcController extends BaseController
...
@@ -1496,9 +1500,34 @@ public class SjDjjcController extends BaseController
if
(
dzfcList
.
size
()>
0
){
if
(
dzfcList
.
size
()>
0
){
sjDcfxDzfcMapper
.
deleteSjDcfxDzfcByJh
(
jh
);
sjDcfxDzfcMapper
.
deleteSjDcfxDzfcByJh
(
jh
);
sjDcfxDzfcMapper
.
insertSjDcfxDzfcBatch
(
dzfcList
);
sjDcfxDzfcMapper
.
insertSjDcfxDzfcBatch
(
dzfcList
);
List
<
SjFdsgcsDcyx
>
sjFdsgcsDcyxList
=
new
ArrayList
<>();
double
previousDepth
=
0
;
double
csaa
=
0
;
for
(
int
i
=
0
;
i
<
sjJsjgList
.
size
();
i
++)
{
SjJsjg
sjJsjg
=
sjJsjgList
.
get
(
i
);
if
(
i
==
0
)
{
previousDepth
=
0
;
}
else
{
//上一次的垂深
previousDepth
=
csaa
;
}
//计算垂深
double
targetCs
=
getCs
(
sjJygjGdsjgdcsList
,
sjJsjg
.
getJs
());
csaa
=
targetCs
;
sjFdsgcsDcyxList
.
addAll
(
processAndDisplay
(
dzfcList
,
previousDepth
,
targetCs
,
jh
,
sjJsjg
.
getKc
()));
}
if
(
sjFdsgcsDcyxList
.
size
()
>
0
)
{
sjFdsgcsDcyxMapper
.
deleteSjFdsgcsDcyxByJh
(
jh
);
sjFdsgcsDcyxMapper
.
insertSjFdsgcsDcyxBatch
(
sjFdsgcsDcyxList
);
}
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
getMessage
();
e
.
getMessage
();
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -1512,6 +1541,130 @@ public class SjDjjcController extends BaseController
...
@@ -1512,6 +1541,130 @@ public class SjDjjcController extends BaseController
}
}
private
static
List
<
SjFdsgcsDcyx
>
processAndDisplay
(
List
<
SjDcfxDzfc
>
stratumList
,
double
kscs
,
double
targetCs
,
String
jh
,
String
kc
)
{
List
<
SjFdsgcsDcyx
>
list
=
new
ArrayList
<>();
// System.out.println("名称\t井段垂深 / m");
//
// for (SjDcfxDzfc stratum : stratumList) {
// SjFdsgcsDcyx sjFdsgcsDcyx=new SjFdsgcsDcyx();
// sjFdsgcsDcyx.setJh(jh);
// sjFdsgcsDcyx.setKc(kc);
// double currentDepth = stratum.getCs();
//
// // 如果当前深度小于等于目标深度,直接显示完整范围
// if (currentDepth <= targetCs && currentDepth >= previousDepth) {
// System.out.printf("%s\t%.0f-%.0f%n",
// stratum.getDzfc(), previousDepth, currentDepth);
// sjFdsgcsDcyx.setDcmc(stratum.getDzfc());
// sjFdsgcsDcyx.setJdcs(previousDepth+"-"+currentDepth);
// sjFdsgcsDcyx.setYx(stratum.getYxts());
// previousDepth = currentDepth;
// list.add(sjFdsgcsDcyx);
// }else if (previousDepth < targetCs) {
// // 如果当前深度大于目标深度,但前一个深度小于目标深度,显示到目标深度的范围
// System.out.printf("%s\t%.0f-%.0f%n",
// stratum.getDzfc(), previousDepth, targetCs);
// sjFdsgcsDcyx.setDcmc(stratum.getDzfc());
// sjFdsgcsDcyx.setJdcs(previousDepth+"-"+targetCs);
// sjFdsgcsDcyx.setYx(stratum.getYxts());
// list.add(sjFdsgcsDcyx);
// break; // 后续地层超出范围,无需再处理
// }
// // 如果前一个深度已经大于等于目标深度,直接退出循环
// else {
// break;
// }
//
//
//
// }
// double previousDepth = 0;
System
.
out
.
println
(
"名称\t井段垂深 / m"
);
double
previousDepth
=
kscs
;
// 从kscs开始计算
boolean
foundStartingPoint
=
false
;
System
.
out
.
println
(
"名称\t井段垂深 / m"
);
for
(
SjDcfxDzfc
stratum
:
stratumList
)
{
double
currentDepth
=
stratum
.
getCs
();
// 如果还没找到起始点,且当前地层深度小于kscs,跳过
if
(!
foundStartingPoint
&&
currentDepth
<
kscs
)
{
continue
;
}
// 标记已找到起始点
foundStartingPoint
=
true
;
// 确定当前地层的显示结束深度
double
endDepth
=
Math
.
min
(
currentDepth
,
targetCs
);
// 显示当前地层的范围
System
.
out
.
printf
(
"%s\t%.0f-%.0f%n"
,
stratum
.
getDzfc
(),
previousDepth
,
endDepth
);
SjFdsgcsDcyx
sjFdsgcsDcyx
=
new
SjFdsgcsDcyx
();
sjFdsgcsDcyx
.
setJh
(
jh
);
sjFdsgcsDcyx
.
setKc
(
kc
);
sjFdsgcsDcyx
.
setDcmc
(
stratum
.
getDzfc
());
sjFdsgcsDcyx
.
setJdcs
(
previousDepth
+
"-"
+
endDepth
);
sjFdsgcsDcyx
.
setYx
(
stratum
.
getYxts
());
list
.
add
(
sjFdsgcsDcyx
);
// 更新上一个深度
previousDepth
=
currentDepth
;
// 如果当前地层已经超过cs参数,结束处理
if
(
currentDepth
>=
targetCs
)
{
break
;
}
}
return
list
;
}
public
static
double
getCs
(
List
<
SjJygjGdsjgdcs
>
yjMnJygjJgList
,
double
js
){
DecimalFormat
df
=
new
DecimalFormat
(
"#.00"
);
double
cs
=
0
;
for
(
int
i
=
0
;
i
<
yjMnJygjJgList
.
size
();
i
++){
SjJygjGdsjgdcs
jg
=
yjMnJygjJgList
.
get
(
i
);
double
sd
=
jg
.
getJs
();
if
(
sd
>=
js
){
if
(
i
==
0
){
cs
=
yjMnJygjJgList
.
get
(
i
).
getJs
();
break
;
}
else
{
// 找到md所在的区间
// SurveyPoint prev = surveyPoints.get(i-1);
// SurveyPoint curr = surveyPoints.get(i);
// double md; // 斜深(Measured Depth),单位:米
// double inc; // 井斜角(Inclination),单位:度
// double azim; // 方位角(Azimuth),单位:度
// double tvd; // 垂深(True Vertical Depth),单位:米
// double northing; // 北向坐标
// double easting; // 东向坐标
// 线性插值计算垂深
double
ratio
=
(
js
-
yjMnJygjJgList
.
get
(
i
-
1
).
getJs
())
/
(
yjMnJygjJgList
.
get
(
i
).
getJs
()
-
yjMnJygjJgList
.
get
(
i
-
1
).
getJs
());
cs
=
yjMnJygjJgList
.
get
(
i
-
1
).
getCs
()
+
ratio
*
(
yjMnJygjJgList
.
get
(
i
).
getCs
()
-
yjMnJygjJgList
.
get
(
i
-
1
).
getCs
());
break
;
}
}
}
return
Double
.
parseDouble
(
df
.
format
(
cs
));
}
/**
/**
* 保存邻井资料
* 保存邻井资料
*/
*/
...
...
src/main/java/com/ruoyi/project/zjsgfa/controller/SjFdsgcsDcyxController.java
0 → 100644
View file @
b9b9ea25
package
com
.
ruoyi
.
project
.
zjsgfa
.
controller
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.ruoyi.framework.aspectj.lang.annotation.Log
;
import
com.ruoyi.framework.aspectj.lang.enums.BusinessType
;
import
com.ruoyi.project.zjsgfa.domain.SjFdsgcsDcyx
;
import
com.ruoyi.project.zjsgfa.service.ISjFdsgcsDcyxService
;
import
com.ruoyi.framework.web.controller.BaseController
;
import
com.ruoyi.framework.web.domain.AjaxResult
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.framework.web.page.TableDataInfo
;
/**
* 设计-分段施工措施-地层岩性Controller
*
* @author ruoyi
* @date 2025-08-06
*/
@RestController
@RequestMapping
(
"/system/sjFdsgcsDcyx"
)
public
class
SjFdsgcsDcyxController
extends
BaseController
{
@Autowired
private
ISjFdsgcsDcyxService
sjFdsgcsDcyxService
;
/**
* 查询设计-分段施工措施-地层岩性列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFdsgcsDcyx:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjFdsgcsDcyx
sjFdsgcsDcyx
)
{
startPage
();
List
<
SjFdsgcsDcyx
>
list
=
sjFdsgcsDcyxService
.
selectSjFdsgcsDcyxList
(
sjFdsgcsDcyx
);
return
getDataTable
(
list
);
}
/**
* 导出设计-分段施工措施-地层岩性列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFdsgcsDcyx:export')"
)
@Log
(
title
=
"设计-分段施工措施-地层岩性"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjFdsgcsDcyx
sjFdsgcsDcyx
)
{
List
<
SjFdsgcsDcyx
>
list
=
sjFdsgcsDcyxService
.
selectSjFdsgcsDcyxList
(
sjFdsgcsDcyx
);
ExcelUtil
<
SjFdsgcsDcyx
>
util
=
new
ExcelUtil
<
SjFdsgcsDcyx
>(
SjFdsgcsDcyx
.
class
);
util
.
exportExcel
(
response
,
list
,
"设计-分段施工措施-地层岩性数据"
);
}
/**
* 获取设计-分段施工措施-地层岩性详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFdsgcsDcyx:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjFdsgcsDcyxService
.
selectSjFdsgcsDcyxById
(
id
));
}
/**
* 新增设计-分段施工措施-地层岩性
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFdsgcsDcyx:add')"
)
@Log
(
title
=
"设计-分段施工措施-地层岩性"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjFdsgcsDcyx
sjFdsgcsDcyx
)
{
return
toAjax
(
sjFdsgcsDcyxService
.
insertSjFdsgcsDcyx
(
sjFdsgcsDcyx
));
}
/**
* 修改设计-分段施工措施-地层岩性
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFdsgcsDcyx:edit')"
)
@Log
(
title
=
"设计-分段施工措施-地层岩性"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjFdsgcsDcyx
sjFdsgcsDcyx
)
{
return
toAjax
(
sjFdsgcsDcyxService
.
updateSjFdsgcsDcyx
(
sjFdsgcsDcyx
));
}
/**
* 删除设计-分段施工措施-地层岩性
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFdsgcsDcyx:remove')"
)
@Log
(
title
=
"设计-分段施工措施-地层岩性"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
sjFdsgcsDcyxService
.
deleteSjFdsgcsDcyxByIds
(
ids
));
}
}
src/main/java/com/ruoyi/project/zjsgfa/domain/SjFdsgcsDcyx.java
0 → 100644
View file @
b9b9ea25
package
com
.
ruoyi
.
project
.
zjsgfa
.
domain
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.framework.aspectj.lang.annotation.Excel
;
import
com.ruoyi.framework.web.domain.BaseEntity
;
/**
* 设计-分段施工措施-地层岩性对象 sj_fdsgcs_dcyx
*
* @author ruoyi
* @date 2025-08-06
*/
@Data
public
class
SjFdsgcsDcyx
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** 井号 */
@Excel
(
name
=
"井号"
)
private
String
jh
;
/** 开次 */
@Excel
(
name
=
"开次"
)
private
String
kc
;
/** 地层名称 */
@Excel
(
name
=
"地层名称"
)
private
String
dcmc
;
/** 井段垂深 */
@Excel
(
name
=
"井段垂深"
)
private
String
jdcs
;
/** 岩性 */
@Excel
(
name
=
"岩性"
)
private
String
yx
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
bz
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setDcmc
(
String
dcmc
)
{
this
.
dcmc
=
dcmc
;
}
public
String
getDcmc
()
{
return
dcmc
;
}
public
void
setJdcs
(
String
jdcs
)
{
this
.
jdcs
=
jdcs
;
}
public
String
getJdcs
()
{
return
jdcs
;
}
public
void
setYx
(
String
yx
)
{
this
.
yx
=
yx
;
}
public
String
getYx
()
{
return
yx
;
}
public
void
setBz
(
String
bz
)
{
this
.
bz
=
bz
;
}
public
String
getBz
()
{
return
bz
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"dcmc"
,
getDcmc
())
.
append
(
"jdcs"
,
getJdcs
())
.
append
(
"yx"
,
getYx
())
.
append
(
"bz"
,
getBz
())
.
toString
();
}
}
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjFdsgcsDcyxMapper.java
0 → 100644
View file @
b9b9ea25
package
com
.
ruoyi
.
project
.
zjsgfa
.
mapper
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjFdsgcsDcyx
;
/**
* 设计-分段施工措施-地层岩性Mapper接口
*
* @author ruoyi
* @date 2025-08-06
*/
public
interface
SjFdsgcsDcyxMapper
{
/**
* 查询设计-分段施工措施-地层岩性
*
* @param id 设计-分段施工措施-地层岩性主键
* @return 设计-分段施工措施-地层岩性
*/
public
SjFdsgcsDcyx
selectSjFdsgcsDcyxById
(
Long
id
);
/**
* 查询设计-分段施工措施-地层岩性列表
*
* @param sjFdsgcsDcyx 设计-分段施工措施-地层岩性
* @return 设计-分段施工措施-地层岩性集合
*/
public
List
<
SjFdsgcsDcyx
>
selectSjFdsgcsDcyxList
(
SjFdsgcsDcyx
sjFdsgcsDcyx
);
/**
* 新增设计-分段施工措施-地层岩性
*
* @param sjFdsgcsDcyx 设计-分段施工措施-地层岩性
* @return 结果
*/
public
int
insertSjFdsgcsDcyx
(
SjFdsgcsDcyx
sjFdsgcsDcyx
);
/**
* 修改设计-分段施工措施-地层岩性
*
* @param sjFdsgcsDcyx 设计-分段施工措施-地层岩性
* @return 结果
*/
public
int
updateSjFdsgcsDcyx
(
SjFdsgcsDcyx
sjFdsgcsDcyx
);
/**
* 删除设计-分段施工措施-地层岩性
*
* @param id 设计-分段施工措施-地层岩性主键
* @return 结果
*/
public
int
deleteSjFdsgcsDcyxById
(
Long
id
);
/**
* 批量删除设计-分段施工措施-地层岩性
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjFdsgcsDcyxByIds
(
Long
[]
ids
);
int
deleteSjFdsgcsDcyxByJh
(
String
jh
);
int
insertSjFdsgcsDcyxBatch
(
List
<
SjFdsgcsDcyx
>
sjFdsgcsDcyxList
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/ISjFdsgcsDcyxService.java
0 → 100644
View file @
b9b9ea25
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjFdsgcsDcyx
;
/**
* 设计-分段施工措施-地层岩性Service接口
*
* @author ruoyi
* @date 2025-08-06
*/
public
interface
ISjFdsgcsDcyxService
{
/**
* 查询设计-分段施工措施-地层岩性
*
* @param id 设计-分段施工措施-地层岩性主键
* @return 设计-分段施工措施-地层岩性
*/
public
SjFdsgcsDcyx
selectSjFdsgcsDcyxById
(
Long
id
);
/**
* 查询设计-分段施工措施-地层岩性列表
*
* @param sjFdsgcsDcyx 设计-分段施工措施-地层岩性
* @return 设计-分段施工措施-地层岩性集合
*/
public
List
<
SjFdsgcsDcyx
>
selectSjFdsgcsDcyxList
(
SjFdsgcsDcyx
sjFdsgcsDcyx
);
/**
* 新增设计-分段施工措施-地层岩性
*
* @param sjFdsgcsDcyx 设计-分段施工措施-地层岩性
* @return 结果
*/
public
int
insertSjFdsgcsDcyx
(
SjFdsgcsDcyx
sjFdsgcsDcyx
);
/**
* 修改设计-分段施工措施-地层岩性
*
* @param sjFdsgcsDcyx 设计-分段施工措施-地层岩性
* @return 结果
*/
public
int
updateSjFdsgcsDcyx
(
SjFdsgcsDcyx
sjFdsgcsDcyx
);
/**
* 批量删除设计-分段施工措施-地层岩性
*
* @param ids 需要删除的设计-分段施工措施-地层岩性主键集合
* @return 结果
*/
public
int
deleteSjFdsgcsDcyxByIds
(
Long
[]
ids
);
/**
* 删除设计-分段施工措施-地层岩性信息
*
* @param id 设计-分段施工措施-地层岩性主键
* @return 结果
*/
public
int
deleteSjFdsgcsDcyxById
(
Long
id
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjFdsgcsDcyxServiceImpl.java
0 → 100644
View file @
b9b9ea25
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.project.zjsgfa.mapper.SjFdsgcsDcyxMapper
;
import
com.ruoyi.project.zjsgfa.domain.SjFdsgcsDcyx
;
import
com.ruoyi.project.zjsgfa.service.ISjFdsgcsDcyxService
;
/**
* 设计-分段施工措施-地层岩性Service业务层处理
*
* @author ruoyi
* @date 2025-08-06
*/
@Service
public
class
SjFdsgcsDcyxServiceImpl
implements
ISjFdsgcsDcyxService
{
@Autowired
private
SjFdsgcsDcyxMapper
sjFdsgcsDcyxMapper
;
/**
* 查询设计-分段施工措施-地层岩性
*
* @param id 设计-分段施工措施-地层岩性主键
* @return 设计-分段施工措施-地层岩性
*/
@Override
public
SjFdsgcsDcyx
selectSjFdsgcsDcyxById
(
Long
id
)
{
return
sjFdsgcsDcyxMapper
.
selectSjFdsgcsDcyxById
(
id
);
}
/**
* 查询设计-分段施工措施-地层岩性列表
*
* @param sjFdsgcsDcyx 设计-分段施工措施-地层岩性
* @return 设计-分段施工措施-地层岩性
*/
@Override
public
List
<
SjFdsgcsDcyx
>
selectSjFdsgcsDcyxList
(
SjFdsgcsDcyx
sjFdsgcsDcyx
)
{
return
sjFdsgcsDcyxMapper
.
selectSjFdsgcsDcyxList
(
sjFdsgcsDcyx
);
}
/**
* 新增设计-分段施工措施-地层岩性
*
* @param sjFdsgcsDcyx 设计-分段施工措施-地层岩性
* @return 结果
*/
@Override
public
int
insertSjFdsgcsDcyx
(
SjFdsgcsDcyx
sjFdsgcsDcyx
)
{
return
sjFdsgcsDcyxMapper
.
insertSjFdsgcsDcyx
(
sjFdsgcsDcyx
);
}
/**
* 修改设计-分段施工措施-地层岩性
*
* @param sjFdsgcsDcyx 设计-分段施工措施-地层岩性
* @return 结果
*/
@Override
public
int
updateSjFdsgcsDcyx
(
SjFdsgcsDcyx
sjFdsgcsDcyx
)
{
return
sjFdsgcsDcyxMapper
.
updateSjFdsgcsDcyx
(
sjFdsgcsDcyx
);
}
/**
* 批量删除设计-分段施工措施-地层岩性
*
* @param ids 需要删除的设计-分段施工措施-地层岩性主键
* @return 结果
*/
@Override
public
int
deleteSjFdsgcsDcyxByIds
(
Long
[]
ids
)
{
return
sjFdsgcsDcyxMapper
.
deleteSjFdsgcsDcyxByIds
(
ids
);
}
/**
* 删除设计-分段施工措施-地层岩性信息
*
* @param id 设计-分段施工措施-地层岩性主键
* @return 结果
*/
@Override
public
int
deleteSjFdsgcsDcyxById
(
Long
id
)
{
return
sjFdsgcsDcyxMapper
.
deleteSjFdsgcsDcyxById
(
id
);
}
}
src/main/resources/mybatis/zjsgfa/SjFdsgcsDcyxMapper.xml
0 → 100644
View file @
b9b9ea25
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ruoyi.project.zjsgfa.mapper.SjFdsgcsDcyxMapper"
>
<resultMap
type=
"SjFdsgcsDcyx"
id=
"SjFdsgcsDcyxResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"jh"
column=
"jh"
/>
<result
property=
"kc"
column=
"kc"
/>
<result
property=
"dcmc"
column=
"dcmc"
/>
<result
property=
"jdcs"
column=
"jdcs"
/>
<result
property=
"yx"
column=
"yx"
/>
<result
property=
"bz"
column=
"bz"
/>
</resultMap>
<sql
id=
"selectSjFdsgcsDcyxVo"
>
select id, dcmc, jdcs, yx, bz from sj_fdsgcs_dcyx
</sql>
<select
id=
"selectSjFdsgcsDcyxList"
parameterType=
"SjFdsgcsDcyx"
resultMap=
"SjFdsgcsDcyxResult"
>
<include
refid=
"selectSjFdsgcsDcyxVo"
/>
<where>
<if
test=
"jh != null and jh != ''"
>
and jh = #{jh}
</if>
<if
test=
"kc != null and kc != ''"
>
and kc = #{kc}
</if>
<if
test=
"dcmc != null and dcmc != ''"
>
and dcmc = #{dcmc}
</if>
<if
test=
"jdcs != null and jdcs != ''"
>
and jdcs = #{jdcs}
</if>
<if
test=
"yx != null and yx != ''"
>
and yx = #{yx}
</if>
<if
test=
"bz != null and bz != ''"
>
and bz = #{bz}
</if>
</where>
</select>
<select
id=
"selectSjFdsgcsDcyxById"
parameterType=
"Long"
resultMap=
"SjFdsgcsDcyxResult"
>
<include
refid=
"selectSjFdsgcsDcyxVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSjFdsgcsDcyx"
parameterType=
"SjFdsgcsDcyx"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_fdsgcs_dcyx
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh,
</if>
<if
test=
"kc != null"
>
kc,
</if>
<if
test=
"dcmc != null"
>
dcmc,
</if>
<if
test=
"jdcs != null"
>
jdcs,
</if>
<if
test=
"yx != null"
>
yx,
</if>
<if
test=
"bz != null"
>
bz,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
#{jh},
</if>
<if
test=
"kc != null"
>
#{kc},
</if>
<if
test=
"dcmc != null"
>
#{dcmc},
</if>
<if
test=
"jdcs != null"
>
#{jdcs},
</if>
<if
test=
"yx != null"
>
#{yx},
</if>
<if
test=
"bz != null"
>
#{bz},
</if>
</trim>
</insert>
<insert
id=
"insertSjFdsgcsDcyxBatch"
>
insert into sj_fdsgcs_dcyx (jh, kc, dcmc, jdcs, yx, bz) values
<foreach
item=
"item"
index=
"index"
collection=
"list"
separator=
","
>
(#{item.jh}, #{item.kc}, #{item.dcmc}, #{item.jdcs}, #{item.yx}, #{item.bz})
</foreach>
</insert>
<update
id=
"updateSjFdsgcsDcyx"
parameterType=
"SjFdsgcsDcyx"
>
update sj_fdsgcs_dcyx
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh = #{jh},
</if>
<if
test=
"kc != null"
>
kc = #{kc},
</if>
<if
test=
"dcmc != null"
>
dcmc = #{dcmc},
</if>
<if
test=
"jdcs != null"
>
jdcs = #{jdcs},
</if>
<if
test=
"yx != null"
>
yx = #{yx},
</if>
<if
test=
"bz != null"
>
bz = #{bz},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteSjFdsgcsDcyxById"
parameterType=
"Long"
>
delete from sj_fdsgcs_dcyx where id = #{id}
</delete>
<delete
id=
"deleteSjFdsgcsDcyxByIds"
parameterType=
"String"
>
delete from sj_fdsgcs_dcyx where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
<delete
id=
"deleteSjFdsgcsDcyxByJh"
>
delete from sj_fdsgcs_dcyx where jh = #{jh}
</delete>
</mapper>
\ No newline at end of file
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