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
0965313c
Commit
0965313c
authored
Jul 24, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
486ec4bf
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
1653 additions
and
0 deletions
+1653
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/SjHseController.java
+115
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/SjJhzqController.java
+104
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/SjJkzpController.java
+117
-0
src/main/java/com/ruoyi/project/zjsgfa/domain/SjHse.java
+102
-0
src/main/java/com/ruoyi/project/zjsgfa/domain/SjJhzq.java
+147
-0
src/main/java/com/ruoyi/project/zjsgfa/domain/SjJkzp.java
+147
-0
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjHseMapper.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjJhzqMapper.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjJkzpMapper.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/ISjHseService.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/ISjJhzqService.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/ISjJkzpService.java
+61
-0
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjHseServiceImpl.java
+95
-0
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjJhzqServiceImpl.java
+95
-0
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjJkzpServiceImpl.java
+95
-0
src/main/resources/mybatis/zjsgfa/SjHseMapper.xml
+80
-0
src/main/resources/mybatis/zjsgfa/SjJhzqMapper.xml
+95
-0
src/main/resources/mybatis/zjsgfa/SjJkzpMapper.xml
+95
-0
No files found.
src/main/java/com/ruoyi/project/zjsgfa/controller/SjHseController.java
0 → 100644
View file @
0965313c
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.SjHse
;
import
com.ruoyi.project.zjsgfa.service.ISjHseService
;
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/sjHse"
)
public
class
SjHseController
extends
BaseController
{
@Autowired
private
ISjHseService
sjHseService
;
/**
* 查询设计-HSE专篇列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjHse:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjHse
sjHse
)
{
startPage
();
List
<
SjHse
>
list
=
sjHseService
.
selectSjHseList
(
sjHse
);
return
getDataTable
(
list
);
}
@GetMapping
(
"/getInfo"
)
public
AjaxResult
getInfo
(
SjHse
sjHse
)
{
List
<
SjHse
>
sjHses
=
sjHseService
.
selectSjHseList
(
sjHse
);
SjHse
vo
=
new
SjHse
();
if
(
sjHses
.
size
()>
0
){
vo
=
sjHses
.
get
(
0
);
}
return
AjaxResult
.
success
(
vo
);
}
/**
* 导出设计-HSE专篇列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjHse:export')"
)
@Log
(
title
=
"设计-HSE专篇"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjHse
sjHse
)
{
List
<
SjHse
>
list
=
sjHseService
.
selectSjHseList
(
sjHse
);
ExcelUtil
<
SjHse
>
util
=
new
ExcelUtil
<
SjHse
>(
SjHse
.
class
);
util
.
exportExcel
(
response
,
list
,
"设计-HSE专篇数据"
);
}
/**
* 获取设计-HSE专篇详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjHse:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjHseService
.
selectSjHseById
(
id
));
}
/**
* 新增设计-HSE专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjHse:add')"
)
@Log
(
title
=
"设计-HSE专篇"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjHse
sjHse
)
{
return
toAjax
(
sjHseService
.
insertSjHse
(
sjHse
));
}
/**
* 修改设计-HSE专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjHse:edit')"
)
@Log
(
title
=
"设计-HSE专篇"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjHse
sjHse
)
{
return
toAjax
(
sjHseService
.
updateSjHse
(
sjHse
));
}
/**
* 删除设计-HSE专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjHse:remove')"
)
@Log
(
title
=
"设计-HSE专篇"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
sjHseService
.
deleteSjHseByIds
(
ids
));
}
}
src/main/java/com/ruoyi/project/zjsgfa/controller/SjJhzqController.java
0 → 100644
View file @
0965313c
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.SjJhzq
;
import
com.ruoyi.project.zjsgfa.service.ISjJhzqService
;
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/sjJhzq"
)
public
class
SjJhzqController
extends
BaseController
{
@Autowired
private
ISjJhzqService
sjJhzqService
;
/**
* 查询设计-计划周期列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJhzq:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjJhzq
sjJhzq
)
{
// startPage();
List
<
SjJhzq
>
list
=
sjJhzqService
.
selectSjJhzqList
(
sjJhzq
);
return
getDataTable
(
list
);
}
/**
* 导出设计-计划周期列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJhzq:export')"
)
@Log
(
title
=
"设计-计划周期"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjJhzq
sjJhzq
)
{
List
<
SjJhzq
>
list
=
sjJhzqService
.
selectSjJhzqList
(
sjJhzq
);
ExcelUtil
<
SjJhzq
>
util
=
new
ExcelUtil
<
SjJhzq
>(
SjJhzq
.
class
);
util
.
exportExcel
(
response
,
list
,
"设计-计划周期数据"
);
}
/**
* 获取设计-计划周期详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJhzq:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjJhzqService
.
selectSjJhzqById
(
id
));
}
/**
* 新增设计-计划周期
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJhzq:add')"
)
@Log
(
title
=
"设计-计划周期"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjJhzq
sjJhzq
)
{
return
toAjax
(
sjJhzqService
.
insertSjJhzq
(
sjJhzq
));
}
/**
* 修改设计-计划周期
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJhzq:edit')"
)
@Log
(
title
=
"设计-计划周期"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjJhzq
sjJhzq
)
{
return
toAjax
(
sjJhzqService
.
updateSjJhzq
(
sjJhzq
));
}
/**
* 删除设计-计划周期
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJhzq:remove')"
)
@Log
(
title
=
"设计-计划周期"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
sjJhzqService
.
deleteSjJhzqByIds
(
ids
));
}
}
src/main/java/com/ruoyi/project/zjsgfa/controller/SjJkzpController.java
0 → 100644
View file @
0965313c
package
com
.
ruoyi
.
project
.
zjsgfa
.
controller
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
com.ruoyi.project.zjsgfa.domain.SjHse
;
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.SjJkzp
;
import
com.ruoyi.project.zjsgfa.service.ISjJkzpService
;
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/sjJkzp"
)
public
class
SjJkzpController
extends
BaseController
{
@Autowired
private
ISjJkzpService
sjJkzpService
;
/**
* 查询设计-井控专篇列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJkzp:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SjJkzp
sjJkzp
)
{
startPage
();
List
<
SjJkzp
>
list
=
sjJkzpService
.
selectSjJkzpList
(
sjJkzp
);
return
getDataTable
(
list
);
}
@GetMapping
(
"/getInfo"
)
public
AjaxResult
getInfo
(
SjJkzp
sjJkzp
)
{
List
<
SjJkzp
>
list
=
sjJkzpService
.
selectSjJkzpList
(
sjJkzp
);
SjJkzp
vo
=
new
SjJkzp
();
if
(
list
.
size
()>
0
){
vo
=
list
.
get
(
0
);
}
return
AjaxResult
.
success
(
vo
);
}
/**
* 导出设计-井控专篇列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJkzp:export')"
)
@Log
(
title
=
"设计-井控专篇"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SjJkzp
sjJkzp
)
{
List
<
SjJkzp
>
list
=
sjJkzpService
.
selectSjJkzpList
(
sjJkzp
);
ExcelUtil
<
SjJkzp
>
util
=
new
ExcelUtil
<
SjJkzp
>(
SjJkzp
.
class
);
util
.
exportExcel
(
response
,
list
,
"设计-井控专篇数据"
);
}
/**
* 获取设计-井控专篇详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJkzp:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
sjJkzpService
.
selectSjJkzpById
(
id
));
}
/**
* 新增设计-井控专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJkzp:add')"
)
@Log
(
title
=
"设计-井控专篇"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SjJkzp
sjJkzp
)
{
return
toAjax
(
sjJkzpService
.
insertSjJkzp
(
sjJkzp
));
}
/**
* 修改设计-井控专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJkzp:edit')"
)
@Log
(
title
=
"设计-井控专篇"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
SjJkzp
sjJkzp
)
{
return
toAjax
(
sjJkzpService
.
updateSjJkzp
(
sjJkzp
));
}
/**
* 删除设计-井控专篇
*/
@PreAuthorize
(
"@ss.hasPermi('system:sjJkzp:remove')"
)
@Log
(
title
=
"设计-井控专篇"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
sjJkzpService
.
deleteSjJkzpByIds
(
ids
));
}
}
src/main/java/com/ruoyi/project/zjsgfa/domain/SjHse.java
0 → 100644
View file @
0965313c
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专篇对象 sj_hse
*
* @author ruoyi
* @date 2025-07-24
*/
public
class
SjHse
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** 井号 */
@Excel
(
name
=
"井号"
)
private
String
jh
;
/** 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
setJh
(
String
jh
)
{
this
.
jh
=
jh
;
}
public
String
getJh
()
{
return
jh
;
}
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
(
"jh"
,
getJh
())
.
append
(
"hse"
,
getHse
())
.
append
(
"createdBy"
,
getCreatedBy
())
.
append
(
"createdTime"
,
getCreatedTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
toString
();
}
}
src/main/java/com/ruoyi/project/zjsgfa/domain/SjJhzq.java
0 → 100644
View file @
0965313c
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_jhzq
*
* @author ruoyi
* @date 2025-07-24
*/
public
class
SjJhzq
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** 井号 */
@Excel
(
name
=
"井号"
)
private
String
jh
;
/** 施工环节 */
@Excel
(
name
=
"施工环节"
)
private
String
sghj
;
/** 起始井深 */
@Excel
(
name
=
"起始井深"
)
private
Double
qsjs
;
/** 结束井深 */
@Excel
(
name
=
"结束井深"
)
private
Double
jsjs
;
/** 计划周期 */
@Excel
(
name
=
"计划周期"
)
private
Double
jhzq
;
/** 创建人 */
@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
setSghj
(
String
sghj
)
{
this
.
sghj
=
sghj
;
}
public
String
getSghj
()
{
return
sghj
;
}
public
void
setQsjs
(
Double
qsjs
)
{
this
.
qsjs
=
qsjs
;
}
public
Double
getQsjs
()
{
return
qsjs
;
}
public
void
setJsjs
(
Double
jsjs
)
{
this
.
jsjs
=
jsjs
;
}
public
Double
getJsjs
()
{
return
jsjs
;
}
public
void
setJhzq
(
Double
jhzq
)
{
this
.
jhzq
=
jhzq
;
}
public
Double
getJhzq
()
{
return
jhzq
;
}
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
(
"sghj"
,
getSghj
())
.
append
(
"qsjs"
,
getQsjs
())
.
append
(
"jsjs"
,
getJsjs
())
.
append
(
"jhzq"
,
getJhzq
())
.
append
(
"createdBy"
,
getCreatedBy
())
.
append
(
"createdTime"
,
getCreatedTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
toString
();
}
}
src/main/java/com/ruoyi/project/zjsgfa/domain/SjJkzp.java
0 → 100644
View file @
0965313c
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_jkzp
*
* @author ruoyi
* @date 2025-07-24
*/
public
class
SjJkzp
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 主键 */
private
Long
id
;
/** 井号 */
@Excel
(
name
=
"井号"
)
private
String
jh
;
/** 钻井口装置 */
@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
setJh
(
String
jh
)
{
this
.
jh
=
jh
;
}
public
String
getJh
()
{
return
jh
;
}
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
(
"jh"
,
getJh
())
.
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/SjHseMapper.java
0 → 100644
View file @
0965313c
package
com
.
ruoyi
.
project
.
zjsgfa
.
mapper
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjHse
;
/**
* 设计-HSE专篇Mapper接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
SjHseMapper
{
/**
* 查询设计-HSE专篇
*
* @param id 设计-HSE专篇主键
* @return 设计-HSE专篇
*/
public
SjHse
selectSjHseById
(
Long
id
);
/**
* 查询设计-HSE专篇列表
*
* @param sjHse 设计-HSE专篇
* @return 设计-HSE专篇集合
*/
public
List
<
SjHse
>
selectSjHseList
(
SjHse
sjHse
);
/**
* 新增设计-HSE专篇
*
* @param sjHse 设计-HSE专篇
* @return 结果
*/
public
int
insertSjHse
(
SjHse
sjHse
);
/**
* 修改设计-HSE专篇
*
* @param sjHse 设计-HSE专篇
* @return 结果
*/
public
int
updateSjHse
(
SjHse
sjHse
);
/**
* 删除设计-HSE专篇
*
* @param id 设计-HSE专篇主键
* @return 结果
*/
public
int
deleteSjHseById
(
Long
id
);
/**
* 批量删除设计-HSE专篇
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjHseByIds
(
Long
[]
ids
);
}
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjJhzqMapper.java
0 → 100644
View file @
0965313c
package
com
.
ruoyi
.
project
.
zjsgfa
.
mapper
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjJhzq
;
/**
* 设计-计划周期Mapper接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
SjJhzqMapper
{
/**
* 查询设计-计划周期
*
* @param id 设计-计划周期主键
* @return 设计-计划周期
*/
public
SjJhzq
selectSjJhzqById
(
Long
id
);
/**
* 查询设计-计划周期列表
*
* @param sjJhzq 设计-计划周期
* @return 设计-计划周期集合
*/
public
List
<
SjJhzq
>
selectSjJhzqList
(
SjJhzq
sjJhzq
);
/**
* 新增设计-计划周期
*
* @param sjJhzq 设计-计划周期
* @return 结果
*/
public
int
insertSjJhzq
(
SjJhzq
sjJhzq
);
/**
* 修改设计-计划周期
*
* @param sjJhzq 设计-计划周期
* @return 结果
*/
public
int
updateSjJhzq
(
SjJhzq
sjJhzq
);
/**
* 删除设计-计划周期
*
* @param id 设计-计划周期主键
* @return 结果
*/
public
int
deleteSjJhzqById
(
Long
id
);
/**
* 批量删除设计-计划周期
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjJhzqByIds
(
Long
[]
ids
);
}
src/main/java/com/ruoyi/project/zjsgfa/mapper/SjJkzpMapper.java
0 → 100644
View file @
0965313c
package
com
.
ruoyi
.
project
.
zjsgfa
.
mapper
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjJkzp
;
/**
* 设计-井控专篇Mapper接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
SjJkzpMapper
{
/**
* 查询设计-井控专篇
*
* @param id 设计-井控专篇主键
* @return 设计-井控专篇
*/
public
SjJkzp
selectSjJkzpById
(
Long
id
);
/**
* 查询设计-井控专篇列表
*
* @param sjJkzp 设计-井控专篇
* @return 设计-井控专篇集合
*/
public
List
<
SjJkzp
>
selectSjJkzpList
(
SjJkzp
sjJkzp
);
/**
* 新增设计-井控专篇
*
* @param sjJkzp 设计-井控专篇
* @return 结果
*/
public
int
insertSjJkzp
(
SjJkzp
sjJkzp
);
/**
* 修改设计-井控专篇
*
* @param sjJkzp 设计-井控专篇
* @return 结果
*/
public
int
updateSjJkzp
(
SjJkzp
sjJkzp
);
/**
* 删除设计-井控专篇
*
* @param id 设计-井控专篇主键
* @return 结果
*/
public
int
deleteSjJkzpById
(
Long
id
);
/**
* 批量删除设计-井控专篇
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteSjJkzpByIds
(
Long
[]
ids
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/ISjHseService.java
0 → 100644
View file @
0965313c
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjHse
;
/**
* 设计-HSE专篇Service接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
ISjHseService
{
/**
* 查询设计-HSE专篇
*
* @param id 设计-HSE专篇主键
* @return 设计-HSE专篇
*/
public
SjHse
selectSjHseById
(
Long
id
);
/**
* 查询设计-HSE专篇列表
*
* @param sjHse 设计-HSE专篇
* @return 设计-HSE专篇集合
*/
public
List
<
SjHse
>
selectSjHseList
(
SjHse
sjHse
);
/**
* 新增设计-HSE专篇
*
* @param sjHse 设计-HSE专篇
* @return 结果
*/
public
int
insertSjHse
(
SjHse
sjHse
);
/**
* 修改设计-HSE专篇
*
* @param sjHse 设计-HSE专篇
* @return 结果
*/
public
int
updateSjHse
(
SjHse
sjHse
);
/**
* 批量删除设计-HSE专篇
*
* @param ids 需要删除的设计-HSE专篇主键集合
* @return 结果
*/
public
int
deleteSjHseByIds
(
Long
[]
ids
);
/**
* 删除设计-HSE专篇信息
*
* @param id 设计-HSE专篇主键
* @return 结果
*/
public
int
deleteSjHseById
(
Long
id
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/ISjJhzqService.java
0 → 100644
View file @
0965313c
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjJhzq
;
/**
* 设计-计划周期Service接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
ISjJhzqService
{
/**
* 查询设计-计划周期
*
* @param id 设计-计划周期主键
* @return 设计-计划周期
*/
public
SjJhzq
selectSjJhzqById
(
Long
id
);
/**
* 查询设计-计划周期列表
*
* @param sjJhzq 设计-计划周期
* @return 设计-计划周期集合
*/
public
List
<
SjJhzq
>
selectSjJhzqList
(
SjJhzq
sjJhzq
);
/**
* 新增设计-计划周期
*
* @param sjJhzq 设计-计划周期
* @return 结果
*/
public
int
insertSjJhzq
(
SjJhzq
sjJhzq
);
/**
* 修改设计-计划周期
*
* @param sjJhzq 设计-计划周期
* @return 结果
*/
public
int
updateSjJhzq
(
SjJhzq
sjJhzq
);
/**
* 批量删除设计-计划周期
*
* @param ids 需要删除的设计-计划周期主键集合
* @return 结果
*/
public
int
deleteSjJhzqByIds
(
Long
[]
ids
);
/**
* 删除设计-计划周期信息
*
* @param id 设计-计划周期主键
* @return 结果
*/
public
int
deleteSjJhzqById
(
Long
id
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/ISjJkzpService.java
0 → 100644
View file @
0965313c
package
com
.
ruoyi
.
project
.
zjsgfa
.
service
;
import
java.util.List
;
import
com.ruoyi.project.zjsgfa.domain.SjJkzp
;
/**
* 设计-井控专篇Service接口
*
* @author ruoyi
* @date 2025-07-24
*/
public
interface
ISjJkzpService
{
/**
* 查询设计-井控专篇
*
* @param id 设计-井控专篇主键
* @return 设计-井控专篇
*/
public
SjJkzp
selectSjJkzpById
(
Long
id
);
/**
* 查询设计-井控专篇列表
*
* @param sjJkzp 设计-井控专篇
* @return 设计-井控专篇集合
*/
public
List
<
SjJkzp
>
selectSjJkzpList
(
SjJkzp
sjJkzp
);
/**
* 新增设计-井控专篇
*
* @param sjJkzp 设计-井控专篇
* @return 结果
*/
public
int
insertSjJkzp
(
SjJkzp
sjJkzp
);
/**
* 修改设计-井控专篇
*
* @param sjJkzp 设计-井控专篇
* @return 结果
*/
public
int
updateSjJkzp
(
SjJkzp
sjJkzp
);
/**
* 批量删除设计-井控专篇
*
* @param ids 需要删除的设计-井控专篇主键集合
* @return 结果
*/
public
int
deleteSjJkzpByIds
(
Long
[]
ids
);
/**
* 删除设计-井控专篇信息
*
* @param id 设计-井控专篇主键
* @return 结果
*/
public
int
deleteSjJkzpById
(
Long
id
);
}
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjHseServiceImpl.java
0 → 100644
View file @
0965313c
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.SjHseMapper
;
import
com.ruoyi.project.zjsgfa.domain.SjHse
;
import
com.ruoyi.project.zjsgfa.service.ISjHseService
;
/**
* 设计-HSE专篇Service业务层处理
*
* @author ruoyi
* @date 2025-07-24
*/
@Service
public
class
SjHseServiceImpl
implements
ISjHseService
{
@Autowired
private
SjHseMapper
sjHseMapper
;
/**
* 查询设计-HSE专篇
*
* @param id 设计-HSE专篇主键
* @return 设计-HSE专篇
*/
@Override
public
SjHse
selectSjHseById
(
Long
id
)
{
return
sjHseMapper
.
selectSjHseById
(
id
);
}
/**
* 查询设计-HSE专篇列表
*
* @param sjHse 设计-HSE专篇
* @return 设计-HSE专篇
*/
@Override
public
List
<
SjHse
>
selectSjHseList
(
SjHse
sjHse
)
{
return
sjHseMapper
.
selectSjHseList
(
sjHse
);
}
/**
* 新增设计-HSE专篇
*
* @param sjHse 设计-HSE专篇
* @return 结果
*/
@Override
public
int
insertSjHse
(
SjHse
sjHse
)
{
return
sjHseMapper
.
insertSjHse
(
sjHse
);
}
/**
* 修改设计-HSE专篇
*
* @param sjHse 设计-HSE专篇
* @return 结果
*/
@Override
public
int
updateSjHse
(
SjHse
sjHse
)
{
sjHse
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
sjHseMapper
.
updateSjHse
(
sjHse
);
}
/**
* 批量删除设计-HSE专篇
*
* @param ids 需要删除的设计-HSE专篇主键
* @return 结果
*/
@Override
public
int
deleteSjHseByIds
(
Long
[]
ids
)
{
return
sjHseMapper
.
deleteSjHseByIds
(
ids
);
}
/**
* 删除设计-HSE专篇信息
*
* @param id 设计-HSE专篇主键
* @return 结果
*/
@Override
public
int
deleteSjHseById
(
Long
id
)
{
return
sjHseMapper
.
deleteSjHseById
(
id
);
}
}
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjJhzqServiceImpl.java
0 → 100644
View file @
0965313c
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.SjJhzqMapper
;
import
com.ruoyi.project.zjsgfa.domain.SjJhzq
;
import
com.ruoyi.project.zjsgfa.service.ISjJhzqService
;
/**
* 设计-计划周期Service业务层处理
*
* @author ruoyi
* @date 2025-07-24
*/
@Service
public
class
SjJhzqServiceImpl
implements
ISjJhzqService
{
@Autowired
private
SjJhzqMapper
sjJhzqMapper
;
/**
* 查询设计-计划周期
*
* @param id 设计-计划周期主键
* @return 设计-计划周期
*/
@Override
public
SjJhzq
selectSjJhzqById
(
Long
id
)
{
return
sjJhzqMapper
.
selectSjJhzqById
(
id
);
}
/**
* 查询设计-计划周期列表
*
* @param sjJhzq 设计-计划周期
* @return 设计-计划周期
*/
@Override
public
List
<
SjJhzq
>
selectSjJhzqList
(
SjJhzq
sjJhzq
)
{
return
sjJhzqMapper
.
selectSjJhzqList
(
sjJhzq
);
}
/**
* 新增设计-计划周期
*
* @param sjJhzq 设计-计划周期
* @return 结果
*/
@Override
public
int
insertSjJhzq
(
SjJhzq
sjJhzq
)
{
return
sjJhzqMapper
.
insertSjJhzq
(
sjJhzq
);
}
/**
* 修改设计-计划周期
*
* @param sjJhzq 设计-计划周期
* @return 结果
*/
@Override
public
int
updateSjJhzq
(
SjJhzq
sjJhzq
)
{
sjJhzq
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
sjJhzqMapper
.
updateSjJhzq
(
sjJhzq
);
}
/**
* 批量删除设计-计划周期
*
* @param ids 需要删除的设计-计划周期主键
* @return 结果
*/
@Override
public
int
deleteSjJhzqByIds
(
Long
[]
ids
)
{
return
sjJhzqMapper
.
deleteSjJhzqByIds
(
ids
);
}
/**
* 删除设计-计划周期信息
*
* @param id 设计-计划周期主键
* @return 结果
*/
@Override
public
int
deleteSjJhzqById
(
Long
id
)
{
return
sjJhzqMapper
.
deleteSjJhzqById
(
id
);
}
}
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjJkzpServiceImpl.java
0 → 100644
View file @
0965313c
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.SjJkzpMapper
;
import
com.ruoyi.project.zjsgfa.domain.SjJkzp
;
import
com.ruoyi.project.zjsgfa.service.ISjJkzpService
;
/**
* 设计-井控专篇Service业务层处理
*
* @author ruoyi
* @date 2025-07-24
*/
@Service
public
class
SjJkzpServiceImpl
implements
ISjJkzpService
{
@Autowired
private
SjJkzpMapper
sjJkzpMapper
;
/**
* 查询设计-井控专篇
*
* @param id 设计-井控专篇主键
* @return 设计-井控专篇
*/
@Override
public
SjJkzp
selectSjJkzpById
(
Long
id
)
{
return
sjJkzpMapper
.
selectSjJkzpById
(
id
);
}
/**
* 查询设计-井控专篇列表
*
* @param sjJkzp 设计-井控专篇
* @return 设计-井控专篇
*/
@Override
public
List
<
SjJkzp
>
selectSjJkzpList
(
SjJkzp
sjJkzp
)
{
return
sjJkzpMapper
.
selectSjJkzpList
(
sjJkzp
);
}
/**
* 新增设计-井控专篇
*
* @param sjJkzp 设计-井控专篇
* @return 结果
*/
@Override
public
int
insertSjJkzp
(
SjJkzp
sjJkzp
)
{
return
sjJkzpMapper
.
insertSjJkzp
(
sjJkzp
);
}
/**
* 修改设计-井控专篇
*
* @param sjJkzp 设计-井控专篇
* @return 结果
*/
@Override
public
int
updateSjJkzp
(
SjJkzp
sjJkzp
)
{
sjJkzp
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
sjJkzpMapper
.
updateSjJkzp
(
sjJkzp
);
}
/**
* 批量删除设计-井控专篇
*
* @param ids 需要删除的设计-井控专篇主键
* @return 结果
*/
@Override
public
int
deleteSjJkzpByIds
(
Long
[]
ids
)
{
return
sjJkzpMapper
.
deleteSjJkzpByIds
(
ids
);
}
/**
* 删除设计-井控专篇信息
*
* @param id 设计-井控专篇主键
* @return 结果
*/
@Override
public
int
deleteSjJkzpById
(
Long
id
)
{
return
sjJkzpMapper
.
deleteSjJkzpById
(
id
);
}
}
src/main/resources/mybatis/zjsgfa/SjHseMapper.xml
0 → 100644
View file @
0965313c
<?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.SjHseMapper"
>
<resultMap
type=
"SjHse"
id=
"SjHseResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"jh"
column=
"jh"
/>
<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=
"selectSjHseVo"
>
select id, jh, hse, created_by, created_time, update_by, update_time from sj_hse
</sql>
<select
id=
"selectSjHseList"
parameterType=
"SjHse"
resultMap=
"SjHseResult"
>
<include
refid=
"selectSjHseVo"
/>
<where>
<if
test=
"jh != null and jh != ''"
>
and jh = #{jh}
</if>
<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=
"selectSjHseById"
parameterType=
"Long"
resultMap=
"SjHseResult"
>
<include
refid=
"selectSjHseVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSjHse"
parameterType=
"SjHse"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_hse
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh,
</if>
<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=
"jh != null"
>
#{jh},
</if>
<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=
"updateSjHse"
parameterType=
"SjHse"
>
update sj_hse
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh = #{jh},
</if>
<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=
"deleteSjHseById"
parameterType=
"Long"
>
delete from sj_hse where id = #{id}
</delete>
<delete
id=
"deleteSjHseByIds"
parameterType=
"String"
>
delete from sj_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/SjJhzqMapper.xml
0 → 100644
View file @
0965313c
<?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.SjJhzqMapper"
>
<resultMap
type=
"SjJhzq"
id=
"SjJhzqResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"jh"
column=
"jh"
/>
<result
property=
"sghj"
column=
"sghj"
/>
<result
property=
"qsjs"
column=
"qsjs"
/>
<result
property=
"jsjs"
column=
"jsjs"
/>
<result
property=
"jhzq"
column=
"jhzq"
/>
<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=
"selectSjJhzqVo"
>
select id, jh, sghj, qsjs, jsjs, jhzq, created_by, created_time, update_by, update_time from sj_jhzq
</sql>
<select
id=
"selectSjJhzqList"
parameterType=
"SjJhzq"
resultMap=
"SjJhzqResult"
>
<include
refid=
"selectSjJhzqVo"
/>
<where>
<if
test=
"jh != null and jh != ''"
>
and jh = #{jh}
</if>
<if
test=
"sghj != null and sghj != ''"
>
and sghj = #{sghj}
</if>
<if
test=
"qsjs != null "
>
and qsjs = #{qsjs}
</if>
<if
test=
"jsjs != null "
>
and jsjs = #{jsjs}
</if>
<if
test=
"jhzq != null "
>
and jhzq = #{jhzq}
</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=
"selectSjJhzqById"
parameterType=
"Long"
resultMap=
"SjJhzqResult"
>
<include
refid=
"selectSjJhzqVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSjJhzq"
parameterType=
"SjJhzq"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_jhzq
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh,
</if>
<if
test=
"sghj != null"
>
sghj,
</if>
<if
test=
"qsjs != null"
>
qsjs,
</if>
<if
test=
"jsjs != null"
>
jsjs,
</if>
<if
test=
"jhzq != null"
>
jhzq,
</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=
"sghj != null"
>
#{sghj},
</if>
<if
test=
"qsjs != null"
>
#{qsjs},
</if>
<if
test=
"jsjs != null"
>
#{jsjs},
</if>
<if
test=
"jhzq != null"
>
#{jhzq},
</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=
"updateSjJhzq"
parameterType=
"SjJhzq"
>
update sj_jhzq
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh = #{jh},
</if>
<if
test=
"sghj != null"
>
sghj = #{sghj},
</if>
<if
test=
"qsjs != null"
>
qsjs = #{qsjs},
</if>
<if
test=
"jsjs != null"
>
jsjs = #{jsjs},
</if>
<if
test=
"jhzq != null"
>
jhzq = #{jhzq},
</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=
"deleteSjJhzqById"
parameterType=
"Long"
>
delete from sj_jhzq where id = #{id}
</delete>
<delete
id=
"deleteSjJhzqByIds"
parameterType=
"String"
>
delete from sj_jhzq 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/SjJkzpMapper.xml
0 → 100644
View file @
0965313c
<?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.SjJkzpMapper"
>
<resultMap
type=
"SjJkzp"
id=
"SjJkzpResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"jh"
column=
"jh"
/>
<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=
"selectSjJkzpVo"
>
select id, jh, zjkzz, jlgh, syyq, clcb, created_by, created_time, update_by, update_time from sj_jkzp
</sql>
<select
id=
"selectSjJkzpList"
parameterType=
"SjJkzp"
resultMap=
"SjJkzpResult"
>
<include
refid=
"selectSjJkzpVo"
/>
<where>
<if
test=
"jh != null and jh != ''"
>
and jh = #{jh}
</if>
<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=
"selectSjJkzpById"
parameterType=
"Long"
resultMap=
"SjJkzpResult"
>
<include
refid=
"selectSjJkzpVo"
/>
where id = #{id}
</select>
<insert
id=
"insertSjJkzp"
parameterType=
"SjJkzp"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into sj_jkzp
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh,
</if>
<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=
"jh != null"
>
#{jh},
</if>
<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=
"updateSjJkzp"
parameterType=
"SjJkzp"
>
update sj_jkzp
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"jh != null"
>
jh = #{jh},
</if>
<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=
"deleteSjJkzpById"
parameterType=
"Long"
>
delete from sj_jkzp where id = #{id}
</delete>
<delete
id=
"deleteSjJkzpByIds"
parameterType=
"String"
>
delete from sj_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