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
4c95dc1d
Commit
4c95dc1d
authored
Feb 24, 2026
by
jiangyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c239618a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
455 additions
and
0 deletions
+455
-0
src/main/java/com/zjsgfa/project/zjsgfa/controller/SjLjzjyfzqkController.java
+104
-0
src/main/java/com/zjsgfa/project/zjsgfa/domain/SjLjzjyfzqk.java
+49
-0
src/main/java/com/zjsgfa/project/zjsgfa/mapper/SjLjzjyfzqkMapper.java
+61
-0
src/main/java/com/zjsgfa/project/zjsgfa/service/ISjLjzjyfzqkService.java
+61
-0
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjLjzjyfzqkServiceImpl.java
+93
-0
src/main/resources/mybatis/zjsgfa/SjLjzjyfzqkMapper.xml
+87
-0
No files found.
src/main/java/com/zjsgfa/project/zjsgfa/controller/SjLjzjyfzqkController.java
0 → 100644
View file @
4c95dc1d
package
com
.
zjsgfa
.
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.zjsgfa.framework.aspectj.lang.annotation.Log
;
import
com.zjsgfa.framework.aspectj.lang.enums.BusinessType
;
import
com.zjsgfa.project.zjsgfa.domain.SjLjzjyfzqk
;
import
com.zjsgfa.project.zjsgfa.service.ISjLjzjyfzqkService
;
import
com.zjsgfa.framework.web.controller.BaseController
;
import
com.zjsgfa.framework.web.domain.AjaxResult
;
import
com.zjsgfa.common.utils.poi.ExcelUtil
;
import
com.zjsgfa.framework.web.page.TableDataInfo
;
/**
* 邻井复杂情况-钻井液Controller
*
* @author ruoyi
* @date 2026-02-24
*/
@RestController
@RequestMapping
(
"/system/sjLjzjyfzqk"
)
public
class
SjLjzjyfzqkController
extends
BaseController
{
@Autowired
private
ISjLjzjyfzqkService
sjLjzjyfzqkService
;
/**
* 查询邻井复杂情况-钻井液列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjzjyfzqk:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjLjzjyfzqk
sjLjzjyfzqk
)
{
startPage
();
List
<
SjLjzjyfzqk
>
list
=
sjLjzjyfzqkService
.
selectSjLjzjyfzqkList
(
sjLjzjyfzqk
);
return
getDataTable
(
list
);
}
/**
* 导出邻井复杂情况-钻井液列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjzjyfzqk:export')")
@Log
(
title
=
"邻井复杂情况-钻井液"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjLjzjyfzqk
sjLjzjyfzqk
)
{
List
<
SjLjzjyfzqk
>
list
=
sjLjzjyfzqkService
.
selectSjLjzjyfzqkList
(
sjLjzjyfzqk
);
ExcelUtil
<
SjLjzjyfzqk
>
util
=
new
ExcelUtil
<
SjLjzjyfzqk
>(
SjLjzjyfzqk
.
class
);
util
.
exportExcel
(
response
,
list
,
"邻井复杂情况-钻井液数据"
);
}
/**
* 获取邻井复杂情况-钻井液详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjzjyfzqk:query')")
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjLjzjyfzqkService
.
selectSjLjzjyfzqkById
(
id
));
}
/**
* 新增邻井复杂情况-钻井液
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjzjyfzqk:add')")
@Log
(
title
=
"邻井复杂情况-钻井液"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjLjzjyfzqk
sjLjzjyfzqk
)
{
return
toAjax
(
sjLjzjyfzqkService
.
insertSjLjzjyfzqk
(
sjLjzjyfzqk
));
}
/**
* 修改邻井复杂情况-钻井液
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjzjyfzqk:edit')")
@Log
(
title
=
"邻井复杂情况-钻井液"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjLjzjyfzqk
sjLjzjyfzqk
)
{
return
toAjax
(
sjLjzjyfzqkService
.
updateSjLjzjyfzqk
(
sjLjzjyfzqk
));
}
/**
* 删除邻井复杂情况-钻井液
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjzjyfzqk:remove')")
@Log
(
title
=
"邻井复杂情况-钻井液"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
sjLjzjyfzqkService
.
deleteSjLjzjyfzqkByIds
(
ids
));
}
}
src/main/java/com/zjsgfa/project/zjsgfa/domain/SjLjzjyfzqk.java
0 → 100644
View file @
4c95dc1d
package
com
.
zjsgfa
.
project
.
zjsgfa
.
domain
;
import
com.zjsgfa.framework.aspectj.lang.annotation.Excel
;
import
com.zjsgfa.framework.web.domain.BaseEntity
;
import
lombok.Data
;
/**
* 邻井复杂情况-钻井液对象 sj_ljzjyfzqk
*
* @author ruoyi
* @date 2026-02-24
*/
@Data
public
class
SjLjzjyfzqk
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
id
;
/** 主表id */
@Excel
(
name
=
"主表id"
)
private
Long
zbid
;
/** 井号 */
@Excel
(
name
=
"井号"
)
private
String
jh
;
/** 邻井井号 */
@Excel
(
name
=
"邻井井号"
)
private
String
ljjh
;
/** 距离 */
@Excel
(
name
=
"距离"
)
private
String
jl
;
/** 时间 */
@Excel
(
name
=
"时间"
)
private
String
sj
;
/** 完钻井深 */
@Excel
(
name
=
"完钻井深"
)
private
String
wzjs
;
/** 复杂情况 */
@Excel
(
name
=
"复杂情况"
)
private
String
fzqk
;
}
src/main/java/com/zjsgfa/project/zjsgfa/mapper/SjLjzjyfzqkMapper.java
0 → 100644
View file @
4c95dc1d
package
com
.
zjsgfa
.
project
.
zjsgfa
.
mapper
;
import
java.util.List
;
import
com.zjsgfa.project.zjsgfa.domain.SjLjzjyfzqk
;
/**
* 邻井复杂情况-钻井液Mapper接口
*
* @author ruoyi
* @date 2026-02-24
*/
public
interface
SjLjzjyfzqkMapper
{
/**
* 查询邻井复杂情况-钻井液
*
* @param id 邻井复杂情况-钻井液主键
* @return 邻井复杂情况-钻井液
*/
public
SjLjzjyfzqk
selectSjLjzjyfzqkById
(
Long
id
);
/**
* 查询邻井复杂情况-钻井液列表
*
* @param sjLjzjyfzqk 邻井复杂情况-钻井液
* @return 邻井复杂情况-钻井液集合
*/
public
List
<
SjLjzjyfzqk
>
selectSjLjzjyfzqkList
(
SjLjzjyfzqk
sjLjzjyfzqk
);
/**
* 新增邻井复杂情况-钻井液
*
* @param sjLjzjyfzqk 邻井复杂情况-钻井液
* @return 结果
*/
public
int
insertSjLjzjyfzqk
(
SjLjzjyfzqk
sjLjzjyfzqk
);
/**
* 修改邻井复杂情况-钻井液
*
* @param sjLjzjyfzqk 邻井复杂情况-钻井液
* @return 结果
*/
public
int
updateSjLjzjyfzqk
(
SjLjzjyfzqk
sjLjzjyfzqk
);
/**
* 删除邻井复杂情况-钻井液
*
* @param id 邻井复杂情况-钻井液主键
* @return 结果
*/
public
int
deleteSjLjzjyfzqkById
(
Long
id
);
/**
* 批量删除邻井复杂情况-钻井液
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjLjzjyfzqkByIds
(
Long
[]
ids
);
}
src/main/java/com/zjsgfa/project/zjsgfa/service/ISjLjzjyfzqkService.java
0 → 100644
View file @
4c95dc1d
package
com
.
zjsgfa
.
project
.
zjsgfa
.
service
;
import
java.util.List
;
import
com.zjsgfa.project.zjsgfa.domain.SjLjzjyfzqk
;
/**
* 邻井复杂情况-钻井液Service接口
*
* @author ruoyi
* @date 2026-02-24
*/
public
interface
ISjLjzjyfzqkService
{
/**
* 查询邻井复杂情况-钻井液
*
* @param id 邻井复杂情况-钻井液主键
* @return 邻井复杂情况-钻井液
*/
public
SjLjzjyfzqk
selectSjLjzjyfzqkById
(
Long
id
);
/**
* 查询邻井复杂情况-钻井液列表
*
* @param sjLjzjyfzqk 邻井复杂情况-钻井液
* @return 邻井复杂情况-钻井液集合
*/
public
List
<
SjLjzjyfzqk
>
selectSjLjzjyfzqkList
(
SjLjzjyfzqk
sjLjzjyfzqk
);
/**
* 新增邻井复杂情况-钻井液
*
* @param sjLjzjyfzqk 邻井复杂情况-钻井液
* @return 结果
*/
public
int
insertSjLjzjyfzqk
(
SjLjzjyfzqk
sjLjzjyfzqk
);
/**
* 修改邻井复杂情况-钻井液
*
* @param sjLjzjyfzqk 邻井复杂情况-钻井液
* @return 结果
*/
public
int
updateSjLjzjyfzqk
(
SjLjzjyfzqk
sjLjzjyfzqk
);
/**
* 批量删除邻井复杂情况-钻井液
*
* @param ids 需要删除的邻井复杂情况-钻井液主键集合
* @return 结果
*/
public
int
deleteSjLjzjyfzqkByIds
(
Long
[]
ids
);
/**
* 删除邻井复杂情况-钻井液信息
*
* @param id 邻井复杂情况-钻井液主键
* @return 结果
*/
public
int
deleteSjLjzjyfzqkById
(
Long
id
);
}
src/main/java/com/zjsgfa/project/zjsgfa/service/impl/SjLjzjyfzqkServiceImpl.java
0 → 100644
View file @
4c95dc1d
package
com
.
zjsgfa
.
project
.
zjsgfa
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zjsgfa.project.zjsgfa.mapper.SjLjzjyfzqkMapper
;
import
com.zjsgfa.project.zjsgfa.domain.SjLjzjyfzqk
;
import
com.zjsgfa.project.zjsgfa.service.ISjLjzjyfzqkService
;
/**
* 邻井复杂情况-钻井液Service业务层处理
*
* @author ruoyi
* @date 2026-02-24
*/
@Service
public
class
SjLjzjyfzqkServiceImpl
implements
ISjLjzjyfzqkService
{
@Autowired
private
SjLjzjyfzqkMapper
sjLjzjyfzqkMapper
;
/**
* 查询邻井复杂情况-钻井液
*
* @param id 邻井复杂情况-钻井液主键
* @return 邻井复杂情况-钻井液
*/
@Override
public
SjLjzjyfzqk
selectSjLjzjyfzqkById
(
Long
id
)
{
return
sjLjzjyfzqkMapper
.
selectSjLjzjyfzqkById
(
id
);
}
/**
* 查询邻井复杂情况-钻井液列表
*
* @param sjLjzjyfzqk 邻井复杂情况-钻井液
* @return 邻井复杂情况-钻井液
*/
@Override
public
List
<
SjLjzjyfzqk
>
selectSjLjzjyfzqkList
(
SjLjzjyfzqk
sjLjzjyfzqk
)
{
return
sjLjzjyfzqkMapper
.
selectSjLjzjyfzqkList
(
sjLjzjyfzqk
);
}
/**
* 新增邻井复杂情况-钻井液
*
* @param sjLjzjyfzqk 邻井复杂情况-钻井液
* @return 结果
*/
@Override
public
int
insertSjLjzjyfzqk
(
SjLjzjyfzqk
sjLjzjyfzqk
)
{
return
sjLjzjyfzqkMapper
.
insertSjLjzjyfzqk
(
sjLjzjyfzqk
);
}
/**
* 修改邻井复杂情况-钻井液
*
* @param sjLjzjyfzqk 邻井复杂情况-钻井液
* @return 结果
*/
@Override
public
int
updateSjLjzjyfzqk
(
SjLjzjyfzqk
sjLjzjyfzqk
)
{
return
sjLjzjyfzqkMapper
.
updateSjLjzjyfzqk
(
sjLjzjyfzqk
);
}
/**
* 批量删除邻井复杂情况-钻井液
*
* @param ids 需要删除的邻井复杂情况-钻井液主键
* @return 结果
*/
@Override
public
int
deleteSjLjzjyfzqkByIds
(
Long
[]
ids
)
{
return
sjLjzjyfzqkMapper
.
deleteSjLjzjyfzqkByIds
(
ids
);
}
/**
* 删除邻井复杂情况-钻井液信息
*
* @param id 邻井复杂情况-钻井液主键
* @return 结果
*/
@Override
public
int
deleteSjLjzjyfzqkById
(
Long
id
)
{
return
sjLjzjyfzqkMapper
.
deleteSjLjzjyfzqkById
(
id
);
}
}
src/main/resources/mybatis/zjsgfa/SjLjzjyfzqkMapper.xml
0 → 100644
View file @
4c95dc1d
<?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.zjsgfa.project.zjsgfa.mapper.SjLjzjyfzqkMapper"
>
<resultMap
type=
"SjLjzjyfzqk"
id=
"SjLjzjyfzqkResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"zbid"
column=
"zbid"
/>
<result
property=
"jh"
column=
"jh"
/>
<result
property=
"ljjh"
column=
"ljjh"
/>
<result
property=
"jl"
column=
"jl"
/>
<result
property=
"sj"
column=
"sj"
/>
<result
property=
"wzjs"
column=
"wzjs"
/>
<result
property=
"fzqk"
column=
"fzqk"
/>
</resultMap>
<sql
id=
"selectSjLjzjyfzqkVo"
>
select id, zbid, jh, ljjh, jl, sj, wzjs, fzqk from sj_ljzjyfzqk
</sql>
<select
id=
"selectSjLjzjyfzqkList"
parameterType=
"SjLjzjyfzqk"
resultMap=
"SjLjzjyfzqkResult"
>
<include
refid=
"selectSjLjzjyfzqkVo"
/>
<where>
<if
test=
"zbid != null "
>
and zbid = #{zbid}
</if>
<if
test=
"jh != null and jh != ''"
>
and jh = #{jh}
</if>
<if
test=
"ljjh != null and ljjh != ''"
>
and ljjh = #{ljjh}
</if>
<if
test=
"jl != null and jl != ''"
>
and jl = #{jl}
</if>
<if
test=
"sj != null and sj != ''"
>
and sj = #{sj}
</if>
<if
test=
"wzjs != null and wzjs != ''"
>
and wzjs = #{wzjs}
</if>
<if
test=
"fzqk != null and fzqk != ''"
>
and fzqk = #{fzqk}
</if>
</where>
</select>
<select
id=
"selectSjLjzjyfzqkById"
parameterType=
"Long"
resultMap=
"SjLjzjyfzqkResult"
>
<include
refid=
"selectSjLjzjyfzqkVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSjLjzjyfzqk"
parameterType=
"SjLjzjyfzqk"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_ljzjyfzqk
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"zbid != null"
>
zbid,
</if>
<if
test=
"jh != null"
>
jh,
</if>
<if
test=
"ljjh != null"
>
ljjh,
</if>
<if
test=
"jl != null"
>
jl,
</if>
<if
test=
"sj != null"
>
sj,
</if>
<if
test=
"wzjs != null"
>
wzjs,
</if>
<if
test=
"fzqk != null"
>
fzqk,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"zbid != null"
>
#{zbid},
</if>
<if
test=
"jh != null"
>
#{jh},
</if>
<if
test=
"ljjh != null"
>
#{ljjh},
</if>
<if
test=
"jl != null"
>
#{jl},
</if>
<if
test=
"sj != null"
>
#{sj},
</if>
<if
test=
"wzjs != null"
>
#{wzjs},
</if>
<if
test=
"fzqk != null"
>
#{fzqk},
</if>
</trim>
</insert>
<update
id=
"updateSjLjzjyfzqk"
parameterType=
"SjLjzjyfzqk"
>
update sj_ljzjyfzqk
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"zbid != null"
>
zbid = #{zbid},
</if>
<if
test=
"jh != null"
>
jh = #{jh},
</if>
<if
test=
"ljjh != null"
>
ljjh = #{ljjh},
</if>
<if
test=
"jl != null"
>
jl = #{jl},
</if>
<if
test=
"sj != null"
>
sj = #{sj},
</if>
<if
test=
"wzjs != null"
>
wzjs = #{wzjs},
</if>
<if
test=
"fzqk != null"
>
fzqk = #{fzqk},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteSjLjzjyfzqkById"
parameterType=
"Long"
>
delete from sj_ljzjyfzqk where id = #{id}
</delete>
<delete
id=
"deleteSjLjzjyfzqkByIds"
parameterType=
"String"
>
delete from sj_ljzjyfzqk where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</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