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
486ec4bf
Commit
486ec4bf
authored
Jul 24, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6c7bab00
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1026 additions
and
0 deletions
+1026
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/JcxxHseController.java
+104
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/JcxxJkzpController.java
+104
-0
src/main/java/com/ruoyi/project/zjsgfa/domain/JcxxHse.java
+87
-0
src/main/java/com/ruoyi/project/zjsgfa/domain/JcxxJkzp.java
+132
-0
src/main/java/com/ruoyi/project/zjsgfa/mapper/JcxxHseMapper.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/mapper/JcxxJkzpMapper.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/IJcxxHseService.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/IJcxxJkzpService.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/impl/JcxxHseServiceImpl.java
+95
-0
src/main/java/com/ruoyi/project/zjsgfa/service/impl/JcxxJkzpServiceImpl.java
+95
-0
src/main/resources/mybatis/zjsgfa/JcxxHseMapper.xml
+75
-0
src/main/resources/mybatis/zjsgfa/JcxxJkzpMapper.xml
+90
-0
No files found.
src/main/java/com/ruoyi/project/zjsgfa/controller/JcxxHseController.java
0 → 100644
View file @
486ec4bf
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.JcxxHse
;
import
com.ruoyi.project.zjsgfa.service.IJcxxHseService
;
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
;
/**
* 基础信息-HSE专篇Controller
*
* @author ruoyi
* @date 2025-07-24
*/
@RestController
@RequestMapping
(
"/system/jcxxHse"
)
public
class
JcxxHseController
extends
BaseController
{
@Autowired
private
IJcxxHseService
jcxxHseService
;
/**
* 查询基础信息-HSE专篇列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxHse:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
JcxxHse
jcxxHse
)
{
startPage
();
List
<
JcxxHse
>
list
=
jcxxHseService
.
selectJcxxHseList
(
jcxxHse
);
return
getDataTable
(
list
);
}
/**
* 导出基础信息-HSE专篇列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxHse:export')"
)
@Log
(
title
=
"基础信息-HSE专篇"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
JcxxHse
jcxxHse
)
{
List
<
JcxxHse
>
list
=
jcxxHseService
.
selectJcxxHseList
(
jcxxHse
);
ExcelUtil
<
JcxxHse
>
util
=
new
ExcelUtil
<
JcxxHse
>(
JcxxHse
.
class
);
util
.
exportExcel
(
response
,
list
,
"基础信息-HSE专篇数据"
);
}
/**
* 获取基础信息-HSE专篇详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxHse:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
jcxxHseService
.
selectJcxxHseById
(
id
));
}
/**
* 新增基础信息-HSE专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxHse:add')"
)
@Log
(
title
=
"基础信息-HSE专篇"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
JcxxHse
jcxxHse
)
{
return
toAjax
(
jcxxHseService
.
insertJcxxHse
(
jcxxHse
));
}
/**
* 修改基础信息-HSE专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxHse:edit')"
)
@Log
(
title
=
"基础信息-HSE专篇"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
JcxxHse
jcxxHse
)
{
return
toAjax
(
jcxxHseService
.
updateJcxxHse
(
jcxxHse
));
}
/**
* 删除基础信息-HSE专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxHse:remove')"
)
@Log
(
title
=
"基础信息-HSE专篇"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
jcxxHseService
.
deleteJcxxHseByIds
(
ids
));
}
}
src/main/java/com/ruoyi/project/zjsgfa/controller/JcxxJkzpController.java
0 → 100644
View file @
486ec4bf
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.JcxxJkzp
;
import
com.ruoyi.project.zjsgfa.service.IJcxxJkzpService
;
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-24
*/
@RestController
@RequestMapping
(
"/system/jcxxJkzp"
)
public
class
JcxxJkzpController
extends
BaseController
{
@Autowired
private
IJcxxJkzpService
jcxxJkzpService
;
/**
* 查询基础信息-井控专篇列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxJkzp:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
JcxxJkzp
jcxxJkzp
)
{
startPage
();
List
<
JcxxJkzp
>
list
=
jcxxJkzpService
.
selectJcxxJkzpList
(
jcxxJkzp
);
return
getDataTable
(
list
);
}
/**
* 导出基础信息-井控专篇列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxJkzp:export')"
)
@Log
(
title
=
"基础信息-井控专篇"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
JcxxJkzp
jcxxJkzp
)
{
List
<
JcxxJkzp
>
list
=
jcxxJkzpService
.
selectJcxxJkzpList
(
jcxxJkzp
);
ExcelUtil
<
JcxxJkzp
>
util
=
new
ExcelUtil
<
JcxxJkzp
>(
JcxxJkzp
.
class
);
util
.
exportExcel
(
response
,
list
,
"基础信息-井控专篇数据"
);
}
/**
* 获取基础信息-井控专篇详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxJkzp:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
jcxxJkzpService
.
selectJcxxJkzpById
(
id
));
}
/**
* 新增基础信息-井控专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxJkzp:add')"
)
@Log
(
title
=
"基础信息-井控专篇"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
JcxxJkzp
jcxxJkzp
)
{
return
toAjax
(
jcxxJkzpService
.
insertJcxxJkzp
(
jcxxJkzp
));
}
/**
* 修改基础信息-井控专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxJkzp:edit')"
)
@Log
(
title
=
"基础信息-井控专篇"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
JcxxJkzp
jcxxJkzp
)
{
return
toAjax
(
jcxxJkzpService
.
updateJcxxJkzp
(
jcxxJkzp
));
}
/**
* 删除基础信息-井控专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:jcxxJkzp:remove')"
)
@Log
(
title
=
"基础信息-井控专篇"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
jcxxJkzpService
.
deleteJcxxJkzpByIds
(
ids
));
}
}
src/main/java/com/ruoyi/project/zjsgfa/domain/JcxxHse.java
0 → 100644
View file @
486ec4bf
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
;
/**
* 基础信息-HSE专篇对象 jcxx_hse
*
* @author ruoyi
* @date 2025-07-24
*/
public
class
JcxxHse
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** HSE管理要求 */
@Excel
(
name
=
"HSE管理要求"
)
private
String
hse
;
/** 创建人 */
@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
setHse
(
String
hse
)
{
this
.
hse
=
hse
;
}
public
String
getHse
()
{
return
hse
;
}
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
(
"hse"
,
getHse
())
.
append
(
"createdBy"
,
getCreatedBy
())
.
append
(
"createdTime"
,
getCreatedTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
toString
();
}
}
src/main/java/com/ruoyi/project/zjsgfa/domain/JcxxJkzp.java
0 → 100644
View file @
486ec4bf
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
;
/**
* 基础信息-井控专篇对象 jcxx_jkzp
*
* @author ruoyi
* @date 2025-07-24
*/
public
class
JcxxJkzp
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** 钻井口装置 */
@Excel
(
name
=
"钻井口装置"
)
private
String
zjkzz
;
/** 节流管汇压井管汇 */
@Excel
(
name
=
"节流管汇压井管汇"
)
private
String
jlgh
;
/** 井控设备配套以及试压要求 */
@Excel
(
name
=
"井控设备配套以及试压要求"
)
private
String
syyq
;
/** 材料储备 */
@Excel
(
name
=
"材料储备"
)
private
String
clcb
;
/** 创建人 */
@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
setZjkzz
(
String
zjkzz
)
{
this
.
zjkzz
=
zjkzz
;
}
public
String
getZjkzz
()
{
return
zjkzz
;
}
public
void
setJlgh
(
String
jlgh
)
{
this
.
jlgh
=
jlgh
;
}
public
String
getJlgh
()
{
return
jlgh
;
}
public
void
setSyyq
(
String
syyq
)
{
this
.
syyq
=
syyq
;
}
public
String
getSyyq
()
{
return
syyq
;
}
public
void
setClcb
(
String
clcb
)
{
this
.
clcb
=
clcb
;
}
public
String
getClcb
()
{
return
clcb
;
}
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
(
"zjkzz"
,
getZjkzz
())
.
append
(
"jlgh"
,
getJlgh
())
.
append
(
"syyq"
,
getSyyq
())
.
append
(
"clcb"
,
getClcb
())
.
append
(
"createdBy"
,
getCreatedBy
())
.
append
(
"createdTime"
,
getCreatedTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
toString
();
}
}
src/main/java/com/ruoyi/project/zjsgfa/mapper/JcxxHseMapper.java
0 → 100644
View file @
486ec4bf
package
com
.
ruoyi
.
project
.
zjsgfa
.
mapper
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.JcxxHse
;
/**
* 基础信息-HSE专篇Mapper接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
JcxxHseMapper
{
/**
* 查询基础信息-HSE专篇
*
* @param id 基础信息-HSE专篇主键
* @return 基础信息-HSE专篇
*/
public
JcxxHse
selectJcxxHseById
(
Long
id
);
/**
* 查询基础信息-HSE专篇列表
*
* @param jcxxHse 基础信息-HSE专篇
* @return 基础信息-HSE专篇集合
*/
public
List
<
JcxxHse
>
selectJcxxHseList
(
JcxxHse
jcxxHse
);
/**
* 新增基础信息-HSE专篇
*
* @param jcxxHse 基础信息-HSE专篇
* @return 结果
*/
public
int
insertJcxxHse
(
JcxxHse
jcxxHse
);
/**
* 修改基础信息-HSE专篇
*
* @param jcxxHse 基础信息-HSE专篇
* @return 结果
*/
public
int
updateJcxxHse
(
JcxxHse
jcxxHse
);
/**
* 删除基础信息-HSE专篇
*
* @param id 基础信息-HSE专篇主键
* @return 结果
*/
public
int
deleteJcxxHseById
(
Long
id
);
/**
* 批量删除基础信息-HSE专篇
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteJcxxHseByIds
(
Long
[]
ids
);
}
src/main/java/com/ruoyi/project/zjsgfa/mapper/JcxxJkzpMapper.java
0 → 100644
View file @
486ec4bf
package
com
.
ruoyi
.
project
.
zjsgfa
.
mapper
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.JcxxJkzp
;
/**
* 基础信息-井控专篇Mapper接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
JcxxJkzpMapper
{
/**
* 查询基础信息-井控专篇
*
* @param id 基础信息-井控专篇主键
* @return 基础信息-井控专篇
*/
public
JcxxJkzp
selectJcxxJkzpById
(
Long
id
);
/**
* 查询基础信息-井控专篇列表
*
* @param jcxxJkzp 基础信息-井控专篇
* @return 基础信息-井控专篇集合
*/
public
List
<
JcxxJkzp
>
selectJcxxJkzpList
(
JcxxJkzp
jcxxJkzp
);
/**
* 新增基础信息-井控专篇
*
* @param jcxxJkzp 基础信息-井控专篇
* @return 结果
*/
public
int
insertJcxxJkzp
(
JcxxJkzp
jcxxJkzp
);
/**
* 修改基础信息-井控专篇
*
* @param jcxxJkzp 基础信息-井控专篇
* @return 结果
*/
public
int
updateJcxxJkzp
(
JcxxJkzp
jcxxJkzp
);
/**
* 删除基础信息-井控专篇
*
* @param id 基础信息-井控专篇主键
* @return 结果
*/
public
int
deleteJcxxJkzpById
(
Long
id
);
/**
* 批量删除基础信息-井控专篇
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteJcxxJkzpByIds
(
Long
[]
ids
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/IJcxxHseService.java
0 → 100644
View file @
486ec4bf
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.JcxxHse
;
/**
* 基础信息-HSE专篇Service接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
IJcxxHseService
{
/**
* 查询基础信息-HSE专篇
*
* @param id 基础信息-HSE专篇主键
* @return 基础信息-HSE专篇
*/
public
JcxxHse
selectJcxxHseById
(
Long
id
);
/**
* 查询基础信息-HSE专篇列表
*
* @param jcxxHse 基础信息-HSE专篇
* @return 基础信息-HSE专篇集合
*/
public
List
<
JcxxHse
>
selectJcxxHseList
(
JcxxHse
jcxxHse
);
/**
* 新增基础信息-HSE专篇
*
* @param jcxxHse 基础信息-HSE专篇
* @return 结果
*/
public
int
insertJcxxHse
(
JcxxHse
jcxxHse
);
/**
* 修改基础信息-HSE专篇
*
* @param jcxxHse 基础信息-HSE专篇
* @return 结果
*/
public
int
updateJcxxHse
(
JcxxHse
jcxxHse
);
/**
* 批量删除基础信息-HSE专篇
*
* @param ids 需要删除的基础信息-HSE专篇主键集合
* @return 结果
*/
public
int
deleteJcxxHseByIds
(
Long
[]
ids
);
/**
* 删除基础信息-HSE专篇信息
*
* @param id 基础信息-HSE专篇主键
* @return 结果
*/
public
int
deleteJcxxHseById
(
Long
id
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/IJcxxJkzpService.java
0 → 100644
View file @
486ec4bf
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.JcxxJkzp
;
/**
* 基础信息-井控专篇Service接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
IJcxxJkzpService
{
/**
* 查询基础信息-井控专篇
*
* @param id 基础信息-井控专篇主键
* @return 基础信息-井控专篇
*/
public
JcxxJkzp
selectJcxxJkzpById
(
Long
id
);
/**
* 查询基础信息-井控专篇列表
*
* @param jcxxJkzp 基础信息-井控专篇
* @return 基础信息-井控专篇集合
*/
public
List
<
JcxxJkzp
>
selectJcxxJkzpList
(
JcxxJkzp
jcxxJkzp
);
/**
* 新增基础信息-井控专篇
*
* @param jcxxJkzp 基础信息-井控专篇
* @return 结果
*/
public
int
insertJcxxJkzp
(
JcxxJkzp
jcxxJkzp
);
/**
* 修改基础信息-井控专篇
*
* @param jcxxJkzp 基础信息-井控专篇
* @return 结果
*/
public
int
updateJcxxJkzp
(
JcxxJkzp
jcxxJkzp
);
/**
* 批量删除基础信息-井控专篇
*
* @param ids 需要删除的基础信息-井控专篇主键集合
* @return 结果
*/
public
int
deleteJcxxJkzpByIds
(
Long
[]
ids
);
/**
* 删除基础信息-井控专篇信息
*
* @param id 基础信息-井控专篇主键
* @return 结果
*/
public
int
deleteJcxxJkzpById
(
Long
id
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/impl/JcxxHseServiceImpl.java
0 → 100644
View file @
486ec4bf
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.JcxxHseMapper
;
import
com.ruoyi.project.zjsgfa.domain.JcxxHse
;
import
com.ruoyi.project.zjsgfa.service.IJcxxHseService
;
/**
* 基础信息-HSE专篇Service业务层处理
*
* @author ruoyi
* @date 2025-07-24
*/
@Service
public
class
JcxxHseServiceImpl
implements
IJcxxHseService
{
@Autowired
private
JcxxHseMapper
jcxxHseMapper
;
/**
* 查询基础信息-HSE专篇
*
* @param id 基础信息-HSE专篇主键
* @return 基础信息-HSE专篇
*/
@Override
public
JcxxHse
selectJcxxHseById
(
Long
id
)
{
return
jcxxHseMapper
.
selectJcxxHseById
(
id
);
}
/**
* 查询基础信息-HSE专篇列表
*
* @param jcxxHse 基础信息-HSE专篇
* @return 基础信息-HSE专篇
*/
@Override
public
List
<
JcxxHse
>
selectJcxxHseList
(
JcxxHse
jcxxHse
)
{
return
jcxxHseMapper
.
selectJcxxHseList
(
jcxxHse
);
}
/**
* 新增基础信息-HSE专篇
*
* @param jcxxHse 基础信息-HSE专篇
* @return 结果
*/
@Override
public
int
insertJcxxHse
(
JcxxHse
jcxxHse
)
{
return
jcxxHseMapper
.
insertJcxxHse
(
jcxxHse
);
}
/**
* 修改基础信息-HSE专篇
*
* @param jcxxHse 基础信息-HSE专篇
* @return 结果
*/
@Override
public
int
updateJcxxHse
(
JcxxHse
jcxxHse
)
{
jcxxHse
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
jcxxHseMapper
.
updateJcxxHse
(
jcxxHse
);
}
/**
* 批量删除基础信息-HSE专篇
*
* @param ids 需要删除的基础信息-HSE专篇主键
* @return 结果
*/
@Override
public
int
deleteJcxxHseByIds
(
Long
[]
ids
)
{
return
jcxxHseMapper
.
deleteJcxxHseByIds
(
ids
);
}
/**
* 删除基础信息-HSE专篇信息
*
* @param id 基础信息-HSE专篇主键
* @return 结果
*/
@Override
public
int
deleteJcxxHseById
(
Long
id
)
{
return
jcxxHseMapper
.
deleteJcxxHseById
(
id
);
}
}
src/main/java/com/ruoyi/project/zjsgfa/service/impl/JcxxJkzpServiceImpl.java
0 → 100644
View file @
486ec4bf
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.JcxxJkzpMapper
;
import
com.ruoyi.project.zjsgfa.domain.JcxxJkzp
;
import
com.ruoyi.project.zjsgfa.service.IJcxxJkzpService
;
/**
* 基础信息-井控专篇Service业务层处理
*
* @author ruoyi
* @date 2025-07-24
*/
@Service
public
class
JcxxJkzpServiceImpl
implements
IJcxxJkzpService
{
@Autowired
private
JcxxJkzpMapper
jcxxJkzpMapper
;
/**
* 查询基础信息-井控专篇
*
* @param id 基础信息-井控专篇主键
* @return 基础信息-井控专篇
*/
@Override
public
JcxxJkzp
selectJcxxJkzpById
(
Long
id
)
{
return
jcxxJkzpMapper
.
selectJcxxJkzpById
(
id
);
}
/**
* 查询基础信息-井控专篇列表
*
* @param jcxxJkzp 基础信息-井控专篇
* @return 基础信息-井控专篇
*/
@Override
public
List
<
JcxxJkzp
>
selectJcxxJkzpList
(
JcxxJkzp
jcxxJkzp
)
{
return
jcxxJkzpMapper
.
selectJcxxJkzpList
(
jcxxJkzp
);
}
/**
* 新增基础信息-井控专篇
*
* @param jcxxJkzp 基础信息-井控专篇
* @return 结果
*/
@Override
public
int
insertJcxxJkzp
(
JcxxJkzp
jcxxJkzp
)
{
return
jcxxJkzpMapper
.
insertJcxxJkzp
(
jcxxJkzp
);
}
/**
* 修改基础信息-井控专篇
*
* @param jcxxJkzp 基础信息-井控专篇
* @return 结果
*/
@Override
public
int
updateJcxxJkzp
(
JcxxJkzp
jcxxJkzp
)
{
jcxxJkzp
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
jcxxJkzpMapper
.
updateJcxxJkzp
(
jcxxJkzp
);
}
/**
* 批量删除基础信息-井控专篇
*
* @param ids 需要删除的基础信息-井控专篇主键
* @return 结果
*/
@Override
public
int
deleteJcxxJkzpByIds
(
Long
[]
ids
)
{
return
jcxxJkzpMapper
.
deleteJcxxJkzpByIds
(
ids
);
}
/**
* 删除基础信息-井控专篇信息
*
* @param id 基础信息-井控专篇主键
* @return 结果
*/
@Override
public
int
deleteJcxxJkzpById
(
Long
id
)
{
return
jcxxJkzpMapper
.
deleteJcxxJkzpById
(
id
);
}
}
src/main/resources/mybatis/zjsgfa/JcxxHseMapper.xml
0 → 100644
View file @
486ec4bf
<?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.JcxxHseMapper"
>
<resultMap
type=
"JcxxHse"
id=
"JcxxHseResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"hse"
column=
"hse"
/>
<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=
"selectJcxxHseVo"
>
select id, hse, created_by, created_time, update_by, update_time from jcxx_hse
</sql>
<select
id=
"selectJcxxHseList"
parameterType=
"JcxxHse"
resultMap=
"JcxxHseResult"
>
<include
refid=
"selectJcxxHseVo"
/>
<where>
<if
test=
"hse != null and hse != ''"
>
and hse = #{hse}
</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=
"selectJcxxHseById"
parameterType=
"Long"
resultMap=
"JcxxHseResult"
>
<include
refid=
"selectJcxxHseVo"
/>
where id = #{id}
</select>
<insert
id=
"insertJcxxHse"
parameterType=
"JcxxHse"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into jcxx_hse
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hse != null"
>
hse,
</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=
"hse != null"
>
#{hse},
</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=
"updateJcxxHse"
parameterType=
"JcxxHse"
>
update jcxx_hse
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"hse != null"
>
hse = #{hse},
</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=
"deleteJcxxHseById"
parameterType=
"Long"
>
delete from jcxx_hse where id = #{id}
</delete>
<delete
id=
"deleteJcxxHseByIds"
parameterType=
"String"
>
delete from jcxx_hse where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/zjsgfa/JcxxJkzpMapper.xml
0 → 100644
View file @
486ec4bf
<?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.JcxxJkzpMapper"
>
<resultMap
type=
"JcxxJkzp"
id=
"JcxxJkzpResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"zjkzz"
column=
"zjkzz"
/>
<result
property=
"jlgh"
column=
"jlgh"
/>
<result
property=
"syyq"
column=
"syyq"
/>
<result
property=
"clcb"
column=
"clcb"
/>
<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=
"selectJcxxJkzpVo"
>
select id, zjkzz, jlgh, syyq, clcb, created_by, created_time, update_by, update_time from jcxx_jkzp
</sql>
<select
id=
"selectJcxxJkzpList"
parameterType=
"JcxxJkzp"
resultMap=
"JcxxJkzpResult"
>
<include
refid=
"selectJcxxJkzpVo"
/>
<where>
<if
test=
"zjkzz != null and zjkzz != ''"
>
and zjkzz = #{zjkzz}
</if>
<if
test=
"jlgh != null and jlgh != ''"
>
and jlgh = #{jlgh}
</if>
<if
test=
"syyq != null and syyq != ''"
>
and syyq = #{syyq}
</if>
<if
test=
"clcb != null and clcb != ''"
>
and clcb = #{clcb}
</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=
"selectJcxxJkzpById"
parameterType=
"Long"
resultMap=
"JcxxJkzpResult"
>
<include
refid=
"selectJcxxJkzpVo"
/>
where id = #{id}
</select>
<insert
id=
"insertJcxxJkzp"
parameterType=
"JcxxJkzp"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into jcxx_jkzp
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"zjkzz != null"
>
zjkzz,
</if>
<if
test=
"jlgh != null"
>
jlgh,
</if>
<if
test=
"syyq != null"
>
syyq,
</if>
<if
test=
"clcb != null"
>
clcb,
</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=
"zjkzz != null"
>
#{zjkzz},
</if>
<if
test=
"jlgh != null"
>
#{jlgh},
</if>
<if
test=
"syyq != null"
>
#{syyq},
</if>
<if
test=
"clcb != null"
>
#{clcb},
</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=
"updateJcxxJkzp"
parameterType=
"JcxxJkzp"
>
update jcxx_jkzp
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"zjkzz != null"
>
zjkzz = #{zjkzz},
</if>
<if
test=
"jlgh != null"
>
jlgh = #{jlgh},
</if>
<if
test=
"syyq != null"
>
syyq = #{syyq},
</if>
<if
test=
"clcb != null"
>
clcb = #{clcb},
</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=
"deleteJcxxJkzpById"
parameterType=
"Long"
>
delete from jcxx_jkzp where id = #{id}
</delete>
<delete
id=
"deleteJcxxJkzpByIds"
parameterType=
"String"
>
delete from jcxx_jkzp 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