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
804a9997
Commit
804a9997
authored
Jul 25, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6e66bc18
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
595 additions
and
0 deletions
+595
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/SjFlController.java
+116
-0
src/main/java/com/ruoyi/project/zjsgfa/domain/SjFl.java
+162
-0
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjFlMapper.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/ISjFlService.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjFlServiceImpl.java
+95
-0
src/main/resources/mybatis/zjsgfa/SjFlMapper.xml
+100
-0
No files found.
src/main/java/com/ruoyi/project/zjsgfa/controller/SjFlController.java
0 → 100644
View file @
804a9997
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.SjFl
;
import
com.ruoyi.project.zjsgfa.service.ISjFlService
;
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-25
*/
@RestController
@RequestMapping
(
"/system/sjFl"
)
public
class
SjFlController
extends
BaseController
{
@Autowired
private
ISjFlService
sjFlService
;
/**
* 查询设计-附录列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFl:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjFl
sjFl
)
{
startPage
();
List
<
SjFl
>
list
=
sjFlService
.
selectSjFlList
(
sjFl
);
return
getDataTable
(
list
);
}
@GetMapping
(
"/getInfoByJh"
)
public
AjaxResult
getInfoByJh
(
SjFl
sjFl
)
{
// startPage();
List
<
SjFl
>
list
=
sjFlService
.
selectSjFlList
(
sjFl
);
SjFl
sjFl1
=
new
SjFl
();
if
(
list
.
size
()>
0
){
sjFl1
=
list
.
get
(
0
);
}
return
AjaxResult
.
success
(
sjFl1
);
}
/**
* 导出设计-附录列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFl:export')"
)
@Log
(
title
=
"设计-附录"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjFl
sjFl
)
{
List
<
SjFl
>
list
=
sjFlService
.
selectSjFlList
(
sjFl
);
ExcelUtil
<
SjFl
>
util
=
new
ExcelUtil
<
SjFl
>(
SjFl
.
class
);
util
.
exportExcel
(
response
,
list
,
"设计-附录数据"
);
}
/**
* 获取设计-附录详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFl:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjFlService
.
selectSjFlById
(
id
));
}
/**
* 新增设计-附录
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFl:add')"
)
@Log
(
title
=
"设计-附录"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjFl
sjFl
)
{
return
toAjax
(
sjFlService
.
insertSjFl
(
sjFl
));
}
/**
* 修改设计-附录
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFl:edit')"
)
@Log
(
title
=
"设计-附录"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjFl
sjFl
)
{
return
toAjax
(
sjFlService
.
updateSjFl
(
sjFl
));
}
/**
* 删除设计-附录
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjFl:remove')"
)
@Log
(
title
=
"设计-附录"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
sjFlService
.
deleteSjFlByIds
(
ids
));
}
}
src/main/java/com/ruoyi/project/zjsgfa/domain/SjFl.java
0 → 100644
View file @
804a9997
package
com
.
ruoyi
.
project
.
zjsgfa
.
domain
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
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_fl
*
* @author ruoyi
* @date 2025-07-25
*/
public
class
SjFl
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** 井号 */
@Excel
(
name
=
"井号"
)
private
String
jh
;
/** 应急联系方式 */
@Excel
(
name
=
"应急联系方式"
)
private
String
yjlxfs
;
/** 喷漏卡塌的预防管控措施 */
@Excel
(
name
=
"喷漏卡塌的预防管控措施"
)
private
String
yfgkcs
;
/** 完井施工措施 */
@Excel
(
name
=
"完井施工措施"
)
private
String
wjsgcs
;
/** 特殊工艺、工具使用指南 */
@Excel
(
name
=
"特殊工艺、工具使用指南"
)
private
String
syzn
;
/** 特殊岩性的知识 */
@Excel
(
name
=
"特殊岩性的知识"
)
private
String
tsyxzs
;
/** 创建人 */
@Excel
(
name
=
"创建人"
)
private
String
createdBy
;
/** 创建时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
createdTime
;
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
setYjlxfs
(
String
yjlxfs
)
{
this
.
yjlxfs
=
yjlxfs
;
}
public
String
getYjlxfs
()
{
return
yjlxfs
;
}
public
void
setYfgkcs
(
String
yfgkcs
)
{
this
.
yfgkcs
=
yfgkcs
;
}
public
String
getYfgkcs
()
{
return
yfgkcs
;
}
public
void
setWjsgcs
(
String
wjsgcs
)
{
this
.
wjsgcs
=
wjsgcs
;
}
public
String
getWjsgcs
()
{
return
wjsgcs
;
}
public
void
setSyzn
(
String
syzn
)
{
this
.
syzn
=
syzn
;
}
public
String
getSyzn
()
{
return
syzn
;
}
public
void
setTsyxzs
(
String
tsyxzs
)
{
this
.
tsyxzs
=
tsyxzs
;
}
public
String
getTsyxzs
()
{
return
tsyxzs
;
}
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
public
String
getCreatedBy
()
{
return
createdBy
;
}
public
void
setCreatedTime
(
Date
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
public
Date
getCreatedTime
()
{
return
createdTime
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"jh"
,
getJh
())
.
append
(
"yjlxfs"
,
getYjlxfs
())
.
append
(
"yfgkcs"
,
getYfgkcs
())
.
append
(
"wjsgcs"
,
getWjsgcs
())
.
append
(
"syzn"
,
getSyzn
())
.
append
(
"tsyxzs"
,
getTsyxzs
())
.
append
(
"createdBy"
,
getCreatedBy
())
.
append
(
"createdTime"
,
getCreatedTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
toString
();
}
}
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjFlMapper.java
0 → 100644
View file @
804a9997
package
com
.
ruoyi
.
project
.
zjsgfa
.
mapper
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjFl
;
/**
* 设计-附录Mapper接口
*
* @author ruoyi
* @date 2025-07-25
*/
public
interface
SjFlMapper
{
/**
* 查询设计-附录
*
* @param id 设计-附录主键
* @return 设计-附录
*/
public
SjFl
selectSjFlById
(
Long
id
);
/**
* 查询设计-附录列表
*
* @param sjFl 设计-附录
* @return 设计-附录集合
*/
public
List
<
SjFl
>
selectSjFlList
(
SjFl
sjFl
);
/**
* 新增设计-附录
*
* @param sjFl 设计-附录
* @return 结果
*/
public
int
insertSjFl
(
SjFl
sjFl
);
/**
* 修改设计-附录
*
* @param sjFl 设计-附录
* @return 结果
*/
public
int
updateSjFl
(
SjFl
sjFl
);
/**
* 删除设计-附录
*
* @param id 设计-附录主键
* @return 结果
*/
public
int
deleteSjFlById
(
Long
id
);
/**
* 批量删除设计-附录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjFlByIds
(
Long
[]
ids
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/ISjFlService.java
0 → 100644
View file @
804a9997
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjFl
;
/**
* 设计-附录Service接口
*
* @author ruoyi
* @date 2025-07-25
*/
public
interface
ISjFlService
{
/**
* 查询设计-附录
*
* @param id 设计-附录主键
* @return 设计-附录
*/
public
SjFl
selectSjFlById
(
Long
id
);
/**
* 查询设计-附录列表
*
* @param sjFl 设计-附录
* @return 设计-附录集合
*/
public
List
<
SjFl
>
selectSjFlList
(
SjFl
sjFl
);
/**
* 新增设计-附录
*
* @param sjFl 设计-附录
* @return 结果
*/
public
int
insertSjFl
(
SjFl
sjFl
);
/**
* 修改设计-附录
*
* @param sjFl 设计-附录
* @return 结果
*/
public
int
updateSjFl
(
SjFl
sjFl
);
/**
* 批量删除设计-附录
*
* @param ids 需要删除的设计-附录主键集合
* @return 结果
*/
public
int
deleteSjFlByIds
(
Long
[]
ids
);
/**
* 删除设计-附录信息
*
* @param id 设计-附录主键
* @return 结果
*/
public
int
deleteSjFlById
(
Long
id
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjFlServiceImpl.java
0 → 100644
View file @
804a9997
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
.
impl
;
import
java.util.List
;
import
com.ruoyi.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.project.zjsgfa.mapper.SjFlMapper
;
import
com.ruoyi.project.zjsgfa.domain.SjFl
;
import
com.ruoyi.project.zjsgfa.service.ISjFlService
;
/**
* 设计-附录Service业务层处理
*
* @author ruoyi
* @date 2025-07-25
*/
@Service
public
class
SjFlServiceImpl
implements
ISjFlService
{
@Autowired
private
SjFlMapper
sjFlMapper
;
/**
* 查询设计-附录
*
* @param id 设计-附录主键
* @return 设计-附录
*/
@Override
public
SjFl
selectSjFlById
(
Long
id
)
{
return
sjFlMapper
.
selectSjFlById
(
id
);
}
/**
* 查询设计-附录列表
*
* @param sjFl 设计-附录
* @return 设计-附录
*/
@Override
public
List
<
SjFl
>
selectSjFlList
(
SjFl
sjFl
)
{
return
sjFlMapper
.
selectSjFlList
(
sjFl
);
}
/**
* 新增设计-附录
*
* @param sjFl 设计-附录
* @return 结果
*/
@Override
public
int
insertSjFl
(
SjFl
sjFl
)
{
return
sjFlMapper
.
insertSjFl
(
sjFl
);
}
/**
* 修改设计-附录
*
* @param sjFl 设计-附录
* @return 结果
*/
@Override
public
int
updateSjFl
(
SjFl
sjFl
)
{
sjFl
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
sjFlMapper
.
updateSjFl
(
sjFl
);
}
/**
* 批量删除设计-附录
*
* @param ids 需要删除的设计-附录主键
* @return 结果
*/
@Override
public
int
deleteSjFlByIds
(
Long
[]
ids
)
{
return
sjFlMapper
.
deleteSjFlByIds
(
ids
);
}
/**
* 删除设计-附录信息
*
* @param id 设计-附录主键
* @return 结果
*/
@Override
public
int
deleteSjFlById
(
Long
id
)
{
return
sjFlMapper
.
deleteSjFlById
(
id
);
}
}
src/main/resources/mybatis/zjsgfa/SjFlMapper.xml
0 → 100644
View file @
804a9997
<?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.SjFlMapper"
>
<resultMap
type=
"SjFl"
id=
"SjFlResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"jh"
column=
"jh"
/>
<result
property=
"yjlxfs"
column=
"yjlxfs"
/>
<result
property=
"yfgkcs"
column=
"yfgkcs"
/>
<result
property=
"wjsgcs"
column=
"wjsgcs"
/>
<result
property=
"syzn"
column=
"syzn"
/>
<result
property=
"tsyxzs"
column=
"tsyxzs"
/>
<result
property=
"createdBy"
column=
"created_by"
/>
<result
property=
"createdTime"
column=
"created_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
<sql
id=
"selectSjFlVo"
>
select id, jh, yjlxfs, yfgkcs, wjsgcs, syzn, tsyxzs, created_by, created_time, update_by, update_time from sj_fl
</sql>
<select
id=
"selectSjFlList"
parameterType=
"SjFl"
resultMap=
"SjFlResult"
>
<include
refid=
"selectSjFlVo"
/>
<where>
<if
test=
"jh != null and jh != ''"
>
and jh = #{jh}
</if>
<if
test=
"yjlxfs != null and yjlxfs != ''"
>
and yjlxfs = #{yjlxfs}
</if>
<if
test=
"yfgkcs != null and yfgkcs != ''"
>
and yfgkcs = #{yfgkcs}
</if>
<if
test=
"wjsgcs != null and wjsgcs != ''"
>
and wjsgcs = #{wjsgcs}
</if>
<if
test=
"syzn != null and syzn != ''"
>
and syzn = #{syzn}
</if>
<if
test=
"tsyxzs != null and tsyxzs != ''"
>
and tsyxzs = #{tsyxzs}
</if>
<if
test=
"createdBy != null and createdBy != ''"
>
and created_by = #{createdBy}
</if>
<if
test=
"createdTime != null "
>
and created_time = #{createdTime}
</if>
</where>
</select>
<select
id=
"selectSjFlById"
parameterType=
"Long"
resultMap=
"SjFlResult"
>
<include
refid=
"selectSjFlVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSjFl"
parameterType=
"SjFl"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_fl
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh,
</if>
<if
test=
"yjlxfs != null"
>
yjlxfs,
</if>
<if
test=
"yfgkcs != null"
>
yfgkcs,
</if>
<if
test=
"wjsgcs != null"
>
wjsgcs,
</if>
<if
test=
"syzn != null"
>
syzn,
</if>
<if
test=
"tsyxzs != null"
>
tsyxzs,
</if>
<if
test=
"createdBy != null"
>
created_by,
</if>
<if
test=
"createdTime != null"
>
created_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
#{jh},
</if>
<if
test=
"yjlxfs != null"
>
#{yjlxfs},
</if>
<if
test=
"yfgkcs != null"
>
#{yfgkcs},
</if>
<if
test=
"wjsgcs != null"
>
#{wjsgcs},
</if>
<if
test=
"syzn != null"
>
#{syzn},
</if>
<if
test=
"tsyxzs != null"
>
#{tsyxzs},
</if>
<if
test=
"createdBy != null"
>
#{createdBy},
</if>
<if
test=
"createdTime != null"
>
#{createdTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
</trim>
</insert>
<update
id=
"updateSjFl"
parameterType=
"SjFl"
>
update sj_fl
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh = #{jh},
</if>
<if
test=
"yjlxfs != null"
>
yjlxfs = #{yjlxfs},
</if>
<if
test=
"yfgkcs != null"
>
yfgkcs = #{yfgkcs},
</if>
<if
test=
"wjsgcs != null"
>
wjsgcs = #{wjsgcs},
</if>
<if
test=
"syzn != null"
>
syzn = #{syzn},
</if>
<if
test=
"tsyxzs != null"
>
tsyxzs = #{tsyxzs},
</if>
<if
test=
"createdBy != null"
>
created_by = #{createdBy},
</if>
<if
test=
"createdTime != null"
>
created_time = #{createdTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteSjFlById"
parameterType=
"Long"
>
delete from sj_fl where id = #{id}
</delete>
<delete
id=
"deleteSjFlByIds"
parameterType=
"String"
>
delete from sj_fl 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