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
894c397f
Commit
894c397f
authored
Jul 28, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
7ad0d18f
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
685 additions
and
14 deletions
+685
-14
src/main/java/com/ruoyi/project/zjsgfa/controller/SjDcfxDzfcController.java
+104
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/SjDjjcController.java
+15
-2
src/main/java/com/ruoyi/project/zjsgfa/domain/SjDcfxDzfc.java
+142
-0
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjDcfxDzfcMapper.java
+66
-0
src/main/java/com/ruoyi/project/zjsgfa/service/ISjDcfxDzfcService.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjDcfxDzfcServiceImpl.java
+93
-0
src/main/java/com/ruoyi/project/zt/controller/DjdcController.java
+1
-9
src/main/java/com/ruoyi/project/zt/service/DjdcService.java
+3
-0
src/main/java/com/ruoyi/project/zt/service/impl/DjdcServiceImpl.java
+93
-3
src/main/resources/mybatis/zjsgfa/SjDcfxDzfcMapper.xml
+107
-0
No files found.
src/main/java/com/ruoyi/project/zjsgfa/controller/SjDcfxDzfcController.java
0 → 100644
View file @
894c397f
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.SjDcfxDzfc
;
import
com.ruoyi.project.zjsgfa.service.ISjDcfxDzfcService
;
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-07-28
*/
@RestController
@RequestMapping
(
"/system/sjDcfxDzfc"
)
public
class
SjDcfxDzfcController
extends
BaseController
{
@Autowired
private
ISjDcfxDzfcService
sjDcfxDzfcService
;
/**
* 查询设计-地层分析—地质分层列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjDcfxDzfc:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjDcfxDzfc
sjDcfxDzfc
)
{
startPage
();
List
<
SjDcfxDzfc
>
list
=
sjDcfxDzfcService
.
selectSjDcfxDzfcList
(
sjDcfxDzfc
);
return
getDataTable
(
list
);
}
/**
* 导出设计-地层分析—地质分层列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjDcfxDzfc:export')"
)
@Log
(
title
=
"设计-地层分析—地质分层"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjDcfxDzfc
sjDcfxDzfc
)
{
List
<
SjDcfxDzfc
>
list
=
sjDcfxDzfcService
.
selectSjDcfxDzfcList
(
sjDcfxDzfc
);
ExcelUtil
<
SjDcfxDzfc
>
util
=
new
ExcelUtil
<
SjDcfxDzfc
>(
SjDcfxDzfc
.
class
);
util
.
exportExcel
(
response
,
list
,
"设计-地层分析—地质分层数据"
);
}
/**
* 获取设计-地层分析—地质分层详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjDcfxDzfc:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjDcfxDzfcService
.
selectSjDcfxDzfcById
(
id
));
}
/**
* 新增设计-地层分析—地质分层
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjDcfxDzfc:add')"
)
@Log
(
title
=
"设计-地层分析—地质分层"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjDcfxDzfc
sjDcfxDzfc
)
{
return
toAjax
(
sjDcfxDzfcService
.
insertSjDcfxDzfc
(
sjDcfxDzfc
));
}
/**
* 修改设计-地层分析—地质分层
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjDcfxDzfc:edit')"
)
@Log
(
title
=
"设计-地层分析—地质分层"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjDcfxDzfc
sjDcfxDzfc
)
{
return
toAjax
(
sjDcfxDzfcService
.
updateSjDcfxDzfc
(
sjDcfxDzfc
));
}
/**
* 删除设计-地层分析—地质分层
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjDcfxDzfc:remove')"
)
@Log
(
title
=
"设计-地层分析—地质分层"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
sjDcfxDzfcService
.
deleteSjDcfxDzfcByIds
(
ids
));
}
}
src/main/java/com/ruoyi/project/zjsgfa/controller/SjDjjcController.java
View file @
894c397f
...
@@ -18,6 +18,7 @@ import com.ruoyi.project.zjsgfa.domain.Vo.DrillingFluidConstant;
...
@@ -18,6 +18,7 @@ import com.ruoyi.project.zjsgfa.domain.Vo.DrillingFluidConstant;
import
com.ruoyi.project.zjsgfa.mapper.*
;
import
com.ruoyi.project.zjsgfa.mapper.*
;
import
com.ruoyi.project.zt.domain.CommonParam
;
import
com.ruoyi.project.zt.domain.CommonParam
;
import
com.ruoyi.project.zt.domain.LjDzfc
;
import
com.ruoyi.project.zt.domain.Ljjw
;
import
com.ruoyi.project.zt.domain.Ljjw
;
import
com.ruoyi.project.zt.service.DjdcService
;
import
com.ruoyi.project.zt.service.DjdcService
;
import
org.apache.poi.ss.usermodel.*
;
import
org.apache.poi.ss.usermodel.*
;
...
@@ -102,6 +103,12 @@ public class SjDjjcController extends BaseController
...
@@ -102,6 +103,12 @@ public class SjDjjcController extends BaseController
@Autowired
@Autowired
private
ServerConfig
serverConfig
;
private
ServerConfig
serverConfig
;
@Autowired
private
DjdcService
djdcService
;
@Autowired
private
SjDcfxDzfcMapper
sjDcfxDzfcMapper
;
...
@@ -1481,8 +1488,14 @@ public class SjDjjcController extends BaseController
...
@@ -1481,8 +1488,14 @@ public class SjDjjcController extends BaseController
}
}
//浅层气end---------------------------------------------------
//浅层气end---------------------------------------------------
//计算地质分层
CommonParam
param
=
new
CommonParam
();
param
.
setJh
(
jh
);
List
<
SjDcfxDzfc
>
dzfcList
=
djdcService
.
getDzfcList2
(
param
);
if
(
dzfcList
.
size
()>
0
){
sjDcfxDzfcMapper
.
deleteSjDcfxDzfcByJh
(
jh
);
sjDcfxDzfcMapper
.
insertSjDcfxDzfcBatch
(
dzfcList
);
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
...
...
src/main/java/com/ruoyi/project/zjsgfa/domain/SjDcfxDzfc.java
0 → 100644
View file @
894c397f
package
com
.
ruoyi
.
project
.
zjsgfa
.
domain
;
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_dcfx_dzfc
*
* @author ruoyi
* @date 2025-07-28
*/
public
class
SjDcfxDzfc
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** 井号 */
@Excel
(
name
=
"井号"
)
private
String
jh
;
/** 地质分层 */
@Excel
(
name
=
"地质分层"
)
private
String
dzfc
;
/** 垂深 */
@Excel
(
name
=
"垂深"
)
private
Double
cs
;
/** 井身 */
@Excel
(
name
=
"井身"
)
private
Double
xs
;
/** 岩性提示 */
@Excel
(
name
=
"岩性提示"
)
private
String
yxts
;
/** 油气水提示 */
@Excel
(
name
=
"油气水提示"
)
private
String
yqsts
;
/** 故障提示 */
@Excel
(
name
=
"故障提示"
)
private
String
gzts
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setJh
(
String
jh
)
{
this
.
jh
=
jh
;
}
public
String
getJh
()
{
return
jh
;
}
public
void
setDzfc
(
String
dzfc
)
{
this
.
dzfc
=
dzfc
;
}
public
String
getDzfc
()
{
return
dzfc
;
}
public
void
setCs
(
Double
cs
)
{
this
.
cs
=
cs
;
}
public
Double
getCs
()
{
return
cs
;
}
public
void
setXs
(
Double
xs
)
{
this
.
xs
=
xs
;
}
public
Double
getXs
()
{
return
xs
;
}
public
void
setYxts
(
String
yxts
)
{
this
.
yxts
=
yxts
;
}
public
String
getYxts
()
{
return
yxts
;
}
public
void
setYqsts
(
String
yqsts
)
{
this
.
yqsts
=
yqsts
;
}
public
String
getYqsts
()
{
return
yqsts
;
}
public
void
setGzts
(
String
gzts
)
{
this
.
gzts
=
gzts
;
}
public
String
getGzts
()
{
return
gzts
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"jh"
,
getJh
())
.
append
(
"dzfc"
,
getDzfc
())
.
append
(
"cs"
,
getCs
())
.
append
(
"xs"
,
getXs
())
.
append
(
"yxts"
,
getYxts
())
.
append
(
"yqsts"
,
getYqsts
())
.
append
(
"gzts"
,
getGzts
())
.
toString
();
}
}
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjDcfxDzfcMapper.java
0 → 100644
View file @
894c397f
package
com
.
ruoyi
.
project
.
zjsgfa
.
mapper
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjDcfxDzfc
;
/**
* 设计-地层分析—地质分层Mapper接口
*
* @author ruoyi
* @date 2025-07-28
*/
public
interface
SjDcfxDzfcMapper
{
/**
* 查询设计-地层分析—地质分层
*
* @param id 设计-地层分析—地质分层主键
* @return 设计-地层分析—地质分层
*/
public
SjDcfxDzfc
selectSjDcfxDzfcById
(
Long
id
);
/**
* 查询设计-地层分析—地质分层列表
*
* @param sjDcfxDzfc 设计-地层分析—地质分层
* @return 设计-地层分析—地质分层集合
*/
public
List
<
SjDcfxDzfc
>
selectSjDcfxDzfcList
(
SjDcfxDzfc
sjDcfxDzfc
);
/**
* 新增设计-地层分析—地质分层
*
* @param sjDcfxDzfc 设计-地层分析—地质分层
* @return 结果
*/
public
int
insertSjDcfxDzfc
(
SjDcfxDzfc
sjDcfxDzfc
);
/**
* 修改设计-地层分析—地质分层
*
* @param sjDcfxDzfc 设计-地层分析—地质分层
* @return 结果
*/
public
int
updateSjDcfxDzfc
(
SjDcfxDzfc
sjDcfxDzfc
);
/**
* 删除设计-地层分析—地质分层
*
* @param id 设计-地层分析—地质分层主键
* @return 结果
*/
public
int
deleteSjDcfxDzfcById
(
Long
id
);
/**
* 批量删除设计-地层分析—地质分层
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjDcfxDzfcByIds
(
Long
[]
ids
);
int
deleteSjDcfxDzfcByJh
(
String
jh
);
int
insertSjDcfxDzfcBatch
(
List
<
SjDcfxDzfc
>
dzfcList
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/ISjDcfxDzfcService.java
0 → 100644
View file @
894c397f
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjDcfxDzfc
;
/**
* 设计-地层分析—地质分层Service接口
*
* @author ruoyi
* @date 2025-07-28
*/
public
interface
ISjDcfxDzfcService
{
/**
* 查询设计-地层分析—地质分层
*
* @param id 设计-地层分析—地质分层主键
* @return 设计-地层分析—地质分层
*/
public
SjDcfxDzfc
selectSjDcfxDzfcById
(
Long
id
);
/**
* 查询设计-地层分析—地质分层列表
*
* @param sjDcfxDzfc 设计-地层分析—地质分层
* @return 设计-地层分析—地质分层集合
*/
public
List
<
SjDcfxDzfc
>
selectSjDcfxDzfcList
(
SjDcfxDzfc
sjDcfxDzfc
);
/**
* 新增设计-地层分析—地质分层
*
* @param sjDcfxDzfc 设计-地层分析—地质分层
* @return 结果
*/
public
int
insertSjDcfxDzfc
(
SjDcfxDzfc
sjDcfxDzfc
);
/**
* 修改设计-地层分析—地质分层
*
* @param sjDcfxDzfc 设计-地层分析—地质分层
* @return 结果
*/
public
int
updateSjDcfxDzfc
(
SjDcfxDzfc
sjDcfxDzfc
);
/**
* 批量删除设计-地层分析—地质分层
*
* @param ids 需要删除的设计-地层分析—地质分层主键集合
* @return 结果
*/
public
int
deleteSjDcfxDzfcByIds
(
Long
[]
ids
);
/**
* 删除设计-地层分析—地质分层信息
*
* @param id 设计-地层分析—地质分层主键
* @return 结果
*/
public
int
deleteSjDcfxDzfcById
(
Long
id
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjDcfxDzfcServiceImpl.java
0 → 100644
View file @
894c397f
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.SjDcfxDzfcMapper
;
import
com.ruoyi.project.zjsgfa.domain.SjDcfxDzfc
;
import
com.ruoyi.project.zjsgfa.service.ISjDcfxDzfcService
;
/**
* 设计-地层分析—地质分层Service业务层处理
*
* @author ruoyi
* @date 2025-07-28
*/
@Service
public
class
SjDcfxDzfcServiceImpl
implements
ISjDcfxDzfcService
{
@Autowired
private
SjDcfxDzfcMapper
sjDcfxDzfcMapper
;
/**
* 查询设计-地层分析—地质分层
*
* @param id 设计-地层分析—地质分层主键
* @return 设计-地层分析—地质分层
*/
@Override
public
SjDcfxDzfc
selectSjDcfxDzfcById
(
Long
id
)
{
return
sjDcfxDzfcMapper
.
selectSjDcfxDzfcById
(
id
);
}
/**
* 查询设计-地层分析—地质分层列表
*
* @param sjDcfxDzfc 设计-地层分析—地质分层
* @return 设计-地层分析—地质分层
*/
@Override
public
List
<
SjDcfxDzfc
>
selectSjDcfxDzfcList
(
SjDcfxDzfc
sjDcfxDzfc
)
{
return
sjDcfxDzfcMapper
.
selectSjDcfxDzfcList
(
sjDcfxDzfc
);
}
/**
* 新增设计-地层分析—地质分层
*
* @param sjDcfxDzfc 设计-地层分析—地质分层
* @return 结果
*/
@Override
public
int
insertSjDcfxDzfc
(
SjDcfxDzfc
sjDcfxDzfc
)
{
return
sjDcfxDzfcMapper
.
insertSjDcfxDzfc
(
sjDcfxDzfc
);
}
/**
* 修改设计-地层分析—地质分层
*
* @param sjDcfxDzfc 设计-地层分析—地质分层
* @return 结果
*/
@Override
public
int
updateSjDcfxDzfc
(
SjDcfxDzfc
sjDcfxDzfc
)
{
return
sjDcfxDzfcMapper
.
updateSjDcfxDzfc
(
sjDcfxDzfc
);
}
/**
* 批量删除设计-地层分析—地质分层
*
* @param ids 需要删除的设计-地层分析—地质分层主键
* @return 结果
*/
@Override
public
int
deleteSjDcfxDzfcByIds
(
Long
[]
ids
)
{
return
sjDcfxDzfcMapper
.
deleteSjDcfxDzfcByIds
(
ids
);
}
/**
* 删除设计-地层分析—地质分层信息
*
* @param id 设计-地层分析—地质分层主键
* @return 结果
*/
@Override
public
int
deleteSjDcfxDzfcById
(
Long
id
)
{
return
sjDcfxDzfcMapper
.
deleteSjDcfxDzfcById
(
id
);
}
}
src/main/java/com/ruoyi/project/zt/controller/DjdcController.java
View file @
894c397f
...
@@ -238,15 +238,7 @@ public class DjdcController {
...
@@ -238,15 +238,7 @@ public class DjdcController {
map
.
put
(
"zhdf"
,
"综合得分"
);
map
.
put
(
"zhdf"
,
"综合得分"
);
return
AjaxResult
.
success
(
djdcService
.
getZtzhzzdfList
(
param
),
map
);
return
AjaxResult
.
success
(
djdcService
.
getZtzhzzdfList
(
param
),
map
);
case
"getDzfcList"
:
case
"getDzfcList"
:
//获取钻头最终得分
//获取地质分成
// map.put("kc","开次");
// map.put("ztxh","钻头型号");
// map.put("cc","钻头尺寸");
// map.put("jcdf","进尺得分");
// map.put("jsdf","机速得分");
//// map.put("zbdf","指标得分");
//// map.put("sldf","数量得分");
// map.put("zhdf","综合得分");
return
AjaxResult
.
success
(
djdcService
.
getDzfcList
(
param
),
map
);
return
AjaxResult
.
success
(
djdcService
.
getDzfcList
(
param
),
map
);
case
"getFdcsList"
:
case
"getFdcsList"
:
//获取分段方案参数
//获取分段方案参数
...
...
src/main/java/com/ruoyi/project/zt/service/DjdcService.java
View file @
894c397f
package
com
.
ruoyi
.
project
.
zt
.
service
;
package
com
.
ruoyi
.
project
.
zt
.
service
;
import
com.ruoyi.project.zjsgfa.domain.SjDcfxDzfc
;
import
com.ruoyi.project.zt.domain.*
;
import
com.ruoyi.project.zt.domain.*
;
import
com.ruoyi.project.zt.domain.vo.SjInfo
;
import
com.ruoyi.project.zt.domain.vo.SjInfo
;
...
@@ -49,4 +50,6 @@ public interface DjdcService {
...
@@ -49,4 +50,6 @@ public interface DjdcService {
List
<
Jsha
>
getFdcsList
(
CommonParam
param
);
List
<
Jsha
>
getFdcsList
(
CommonParam
param
);
List
<
SjDcfxDzfc
>
getDzfcList2
(
CommonParam
param
);
}
}
src/main/java/com/ruoyi/project/zt/service/impl/DjdcServiceImpl.java
View file @
894c397f
...
@@ -10,6 +10,7 @@ import com.ruoyi.common.utils.DateUtils;
...
@@ -10,6 +10,7 @@ import com.ruoyi.common.utils.DateUtils;
import
com.ruoyi.framework.aspectj.lang.annotation.DataSource
;
import
com.ruoyi.framework.aspectj.lang.annotation.DataSource
;
import
com.ruoyi.framework.aspectj.lang.enums.DataSourceType
;
import
com.ruoyi.framework.aspectj.lang.enums.DataSourceType
;
import
com.ruoyi.project.zjsgfa.domain.Dzgzzb
;
import
com.ruoyi.project.zjsgfa.domain.Dzgzzb
;
import
com.ruoyi.project.zjsgfa.domain.SjDcfxDzfc
;
import
com.ruoyi.project.zjsgfa.domain.SjDzfc
;
import
com.ruoyi.project.zjsgfa.domain.SjDzfc
;
import
com.ruoyi.project.zjsgfa.domain.Tsyxclxx
;
import
com.ruoyi.project.zjsgfa.domain.Tsyxclxx
;
import
com.ruoyi.project.zjsgfa.mapper.DzgzzbMapper
;
import
com.ruoyi.project.zjsgfa.mapper.DzgzzbMapper
;
...
@@ -179,9 +180,6 @@ public class DjdcServiceImpl implements DjdcService {
...
@@ -179,9 +180,6 @@ public class DjdcServiceImpl implements DjdcService {
if
(
StringUtils
.
isNotEmpty
(
npc
)){
if
(
StringUtils
.
isNotEmpty
(
npc
)){
Integer
clsz
=
clsz
(
npc
);
Integer
clsz
=
clsz
(
npc
);
if
(
item
.
getJh
().
equals
(
"滨648-侧斜28"
)){
Integer
clsz2
=
clsz
(
npc
);
}
for
(
int
i
=
1
;
i
<
9
;
i
++){
for
(
int
i
=
1
;
i
<
9
;
i
++){
if
(
clsz
==
i
){
if
(
clsz
==
i
){
if
(
i
==
0
){
if
(
i
==
0
){
...
@@ -1422,6 +1420,98 @@ public class DjdcServiceImpl implements DjdcService {
...
@@ -1422,6 +1420,98 @@ public class DjdcServiceImpl implements DjdcService {
return
jshaList
;
return
jshaList
;
}
}
@Override
public
List
<
SjDcfxDzfc
>
getDzfcList2
(
CommonParam
param
)
{
List
<
SjDcfxDzfc
>
list
=
new
ArrayList
<>();
SjDzfc
sjDzfc
=
new
SjDzfc
();
if
(
StringUtils
.
isNotEmpty
(
param
.
getJh
())){
String
[]
jhs
=
param
.
getJh
().
split
(
","
);
sjDzfc
.
setJhs
(
jhs
);
}
//查询设计井信息
List
<
SjDzfc
>
sjDzfcs
=
sjDzfcMapper
.
selectSjDzfcList
(
sjDzfc
);
for
(
SjDzfc
item
:
sjDzfcs
){
SjDcfxDzfc
ljDzfc
=
new
SjDcfxDzfc
();
ljDzfc
.
setJh
(
item
.
getSjjh
());
ljDzfc
.
setCs
(
item
.
getSjdcs
());
ljDzfc
.
setDzfc
(
item
.
getDcZ
());
if
(
StringUtils
.
isNotEmpty
(
item
.
getSjyxts
())){
ljDzfc
.
setYxts
(
item
.
getSjyxts
());
}
else
{
//查询邻井
CommonParam
paramYj
=
new
CommonParam
();
List
<
String
>
lists
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotEmpty
(
item
.
getYjjh1
())){
lists
.
add
(
item
.
getYjjh1
());
}
if
(
StringUtils
.
isNotEmpty
(
item
.
getYjjh2
())){
lists
.
add
(
item
.
getYjjh2
());
}
if
(
lists
.
size
()>
0
){
String
[]
jhs
=
lists
.
toArray
(
new
String
[
lists
.
size
()]);
// String[] jhs={item.getYjjh1(),item.getYjjh2()};
paramYj
.
setJhs
(
jhs
);
List
<
LjDcyx
>
dcyxList
=
ljQueryMapper
.
getDcyxList
(
paramYj
);
List
<
LjDcyx
>
collect
=
dcyxList
.
stream
().
filter
(
lj
->
lj
.
getJh
().
equals
(
item
.
getYjjh1
())
&&
equals
(
lj
.
getDjsd2
(),
item
.
getYjdcs1
())).
collect
(
Collectors
.
toList
());
List
<
LjDcyx
>
colect2
=
dcyxList
.
stream
().
filter
(
lj
->
lj
.
getJh
().
equals
(
item
.
getYjjh2
())
&&
equals
(
lj
.
getDjsd2
(),
item
.
getYjdcs2
())).
collect
(
Collectors
.
toList
());
List
<
String
>
yxmclist
=
new
ArrayList
<>();
List
<
String
>
yqsmclist
=
new
ArrayList
<>();
if
(
colect2
.
size
()>
0
){
List
<
LjDcyx
>
ysisNotnull
=
colect2
.
stream
().
filter
(
it
->
StringUtils
.
isNotEmpty
(
it
.
getYxmc
())).
collect
(
Collectors
.
toList
());
if
(
ysisNotnull
.
size
()>
0
){
yxmclist
.
addAll
(
ysisNotnull
.
stream
().
map
(
LjDcyx:
:
getYxmc
).
distinct
().
collect
(
Collectors
.
toList
()));
}
List
<
LjDcyx
>
yqsisNotnull
=
colect2
.
stream
().
filter
(
it
->
StringUtils
.
isNotEmpty
(
it
.
getYqcmc
())).
collect
(
Collectors
.
toList
());
if
(
yqsisNotnull
.
size
()>
0
){
yqsmclist
.
addAll
(
yqsisNotnull
.
stream
().
map
(
LjDcyx:
:
getYqcmc
).
distinct
().
collect
(
Collectors
.
toList
()));
}
}
if
(
collect
.
size
()>
0
){
List
<
LjDcyx
>
ysisNotnull
=
collect
.
stream
().
filter
(
it
->
StringUtils
.
isNotEmpty
(
it
.
getYxmc
())).
collect
(
Collectors
.
toList
());
if
(
ysisNotnull
.
size
()>
0
){
yxmclist
.
addAll
(
ysisNotnull
.
stream
().
map
(
LjDcyx:
:
getYxmc
).
distinct
().
collect
(
Collectors
.
toList
()));
}
List
<
LjDcyx
>
yqsisNotnull
=
collect
.
stream
().
filter
(
it
->
StringUtils
.
isNotEmpty
(
it
.
getYqcmc
())).
collect
(
Collectors
.
toList
());
if
(
yqsisNotnull
.
size
()>
0
){
yqsmclist
.
addAll
(
yqsisNotnull
.
stream
().
map
(
LjDcyx:
:
getYqcmc
).
distinct
().
collect
(
Collectors
.
toList
()));
}
}
if
(
yxmclist
.
size
()>
0
){
ljDzfc
.
setYxts
(
String
.
join
(
","
,
yxmclist
));
}
else
{
//查询构造表
Dzgzzb
dzgzzb
=
new
Dzgzzb
();
dzgzzb
.
setDzfc
(
item
.
getDcZ
());
List
<
Dzgzzb
>
dzgzzbs
=
dzgzzbMapper
.
selectDzgzzbList
(
dzgzzb
);
if
(
dzgzzbs
.
size
()>
0
){
Dzgzzb
dzgzzb1
=
dzgzzbs
.
get
(
0
);
ljDzfc
.
setYxts
(
dzgzzb1
.
getZyyx
());
}
}
if
(
yqsmclist
.
size
()>
0
){
ljDzfc
.
setYqsts
(
String
.
join
(
","
,
yqsmclist
));
}
if
(
StringUtils
.
isNotEmpty
(
ljDzfc
.
getYxts
())){
String
[]
split
=
ljDzfc
.
getYxts
().
split
(
"、"
);
Tsyxclxx
tsyxclxx
=
new
Tsyxclxx
();
tsyxclxx
.
setTsyxs
(
split
);
List
<
Tsyxclxx
>
tsyxclxxes
=
tsyxclxxMapper
.
selectTsyxclxxList
(
tsyxclxx
);
if
(
tsyxclxxes
.
size
()>
0
){
List
<
String
>
collect1
=
tsyxclxxes
.
stream
().
map
(
Tsyxclxx:
:
getWt
).
collect
(
Collectors
.
toList
());
ljDzfc
.
setGzts
(
String
.
join
(
","
,
collect1
));
}
}
}
}
list
.
add
(
ljDzfc
);
}
return
list
;
}
public
static
void
calculateScores
(
List
<
SjInfo
>
items
)
{
public
static
void
calculateScores
(
List
<
SjInfo
>
items
)
{
// 按进尺降序排序
// 按进尺降序排序
...
...
src/main/resources/mybatis/zjsgfa/SjDcfxDzfcMapper.xml
0 → 100644
View file @
894c397f
<?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.SjDcfxDzfcMapper"
>
<resultMap
type=
"SjDcfxDzfc"
id=
"SjDcfxDzfcResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"jh"
column=
"jh"
/>
<result
property=
"dzfc"
column=
"dzfc"
/>
<result
property=
"cs"
column=
"cs"
/>
<result
property=
"xs"
column=
"xs"
/>
<result
property=
"yxts"
column=
"yxts"
/>
<result
property=
"yqsts"
column=
"yqsts"
/>
<result
property=
"gzts"
column=
"gzts"
/>
</resultMap>
<sql
id=
"selectSjDcfxDzfcVo"
>
select id, jh, dzfc, cs, xs, yxts, yqsts, gzts from sj_dcfx_dzfc
</sql>
<select
id=
"selectSjDcfxDzfcList"
parameterType=
"SjDcfxDzfc"
resultMap=
"SjDcfxDzfcResult"
>
<include
refid=
"selectSjDcfxDzfcVo"
/>
<where>
<if
test=
"jh != null and jh != ''"
>
and jh = #{jh}
</if>
<if
test=
"dzfc != null and dzfc != ''"
>
and dzfc = #{dzfc}
</if>
<if
test=
"cs != null "
>
and cs = #{cs}
</if>
<if
test=
"xs != null "
>
and xs = #{xs}
</if>
<if
test=
"yxts != null and yxts != ''"
>
and yxts = #{yxts}
</if>
<if
test=
"yqsts != null and yqsts != ''"
>
and yqsts = #{yqsts}
</if>
<if
test=
"gzts != null and gzts != ''"
>
and gzts = #{gzts}
</if>
</where>
</select>
<select
id=
"selectSjDcfxDzfcById"
parameterType=
"Long"
resultMap=
"SjDcfxDzfcResult"
>
<include
refid=
"selectSjDcfxDzfcVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSjDcfxDzfc"
parameterType=
"SjDcfxDzfc"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_dcfx_dzfc
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh,
</if>
<if
test=
"dzfc != null"
>
dzfc,
</if>
<if
test=
"cs != null"
>
cs,
</if>
<if
test=
"xs != null"
>
xs,
</if>
<if
test=
"yxts != null"
>
yxts,
</if>
<if
test=
"yqsts != null"
>
yqsts,
</if>
<if
test=
"gzts != null"
>
gzts,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
#{jh},
</if>
<if
test=
"dzfc != null"
>
#{dzfc},
</if>
<if
test=
"cs != null"
>
#{cs},
</if>
<if
test=
"xs != null"
>
#{xs},
</if>
<if
test=
"yxts != null"
>
#{yxts},
</if>
<if
test=
"yqsts != null"
>
#{yqsts},
</if>
<if
test=
"gzts != null"
>
#{gzts},
</if>
</trim>
</insert>
<insert
id=
"insertSjDcfxDzfcBatch"
>
INSERT INTO sj_dcfx_dzfc
(jh, dzfc, cs, xs, yxts, yqsts, gzts)
VALUES
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
#{item.jh},
#{item.dzfc},
#{item.cs},
#{item.xs},
#{item.yxts},
#{item.yqsts},
#{item.gzts}
)
</foreach>
</insert>
<update
id=
"updateSjDcfxDzfc"
parameterType=
"SjDcfxDzfc"
>
update sj_dcfx_dzfc
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh = #{jh},
</if>
<if
test=
"dzfc != null"
>
dzfc = #{dzfc},
</if>
<if
test=
"cs != null"
>
cs = #{cs},
</if>
<if
test=
"xs != null"
>
xs = #{xs},
</if>
<if
test=
"yxts != null"
>
yxts = #{yxts},
</if>
<if
test=
"yqsts != null"
>
yqsts = #{yqsts},
</if>
<if
test=
"gzts != null"
>
gzts = #{gzts},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteSjDcfxDzfcById"
parameterType=
"Long"
>
delete from sj_dcfx_dzfc where id = #{id}
</delete>
<delete
id=
"deleteSjDcfxDzfcByIds"
parameterType=
"String"
>
delete from sj_dcfx_dzfc where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
<delete
id=
"deleteSjDcfxDzfcByJh"
>
delete from sj_dcfx_dzfc 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