Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
769283f6
Commit
769283f6
authored
Mar 12, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运维工单后端代码调整后提交
parent
f5ffacfa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
147 additions
and
0 deletions
+147
-0
HYGFMaintenanceTicketsMapper.xml
...n/resources/mapper/mysql/HYGFMaintenanceTicketsMapper.xml
+5
-0
HYGFMaintenanceTicketsServiceImplController.java
...ntroller/HYGFMaintenanceTicketsServiceImplController.java
+115
-0
HYGFMaintenanceTicketsServiceImpl.java
...f/biz/service/impl/HYGFMaintenanceTicketsServiceImpl.java
+27
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HYGFMaintenanceTicketsMapper.xml
0 → 100644
View file @
769283f6
<?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.yeejoin.amos.boot.module.hygf.api.mapper.HYGFMaintenanceTicketsMapper"
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/HYGFMaintenanceTicketsServiceImplController.java
0 → 100644
View file @
769283f6
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.HYGFMaintenanceTicketsDto
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.HYGFMaintenanceTicketsServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
/**
* 运维工单
*
* @author system_generator
* @date 2024-03-11
*/
@RestController
@Api
(
tags
=
"运维工单Api"
)
@RequestMapping
(
value
=
"/maintenanceTickets"
)
public
class
HYGFMaintenanceTicketsServiceImplController
extends
BaseController
{
@Autowired
HYGFMaintenanceTicketsServiceImpl
hygfMaintenanceTicketsServiceimpl
;
/**
* 新增运维工单
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增运维工单"
,
notes
=
"新增运维工单"
)
public
ResponseModel
<
HYGFMaintenanceTicketsDto
>
save
(
@RequestBody
HYGFMaintenanceTicketsDto
model
)
{
model
=
hygfMaintenanceTicketsServiceimpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新运维工单"
,
notes
=
"根据sequenceNbr更新运维工单"
)
public
ResponseModel
<
HYGFMaintenanceTicketsDto
>
updateBySequenceNbrMaintenance
(
@RequestBody
HYGFMaintenanceTicketsDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
hygfMaintenanceTicketsServiceimpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除运维工单"
,
notes
=
"根据sequenceNbr删除运维工单"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
hygfMaintenanceTicketsServiceimpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个运维工单"
,
notes
=
"根据sequenceNbr查询单个运维工单"
)
public
ResponseModel
<
HYGFMaintenanceTicketsDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
hygfMaintenanceTicketsServiceimpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"运维工单分页查询"
,
notes
=
"运维工单分页查询"
)
public
ResponseModel
<
Page
<
HYGFMaintenanceTicketsDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
HYGFMaintenanceTicketsDto
>
page
=
new
Page
<
HYGFMaintenanceTicketsDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
hygfMaintenanceTicketsServiceimpl
.
queryForHYGFMaintenanceTicketsDtoPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"运维工单列表全部数据查询"
,
notes
=
"运维工单列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
HYGFMaintenanceTicketsDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
hygfMaintenanceTicketsServiceimpl
.
queryHYGFMaintenanceTicketsDtoList
());
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HYGFMaintenanceTicketsServiceImpl.java
0 → 100644
View file @
769283f6
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.HYGFMaintenanceTicketsDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.HYGFMaintenanceTickets
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.HYGFMaintenanceTicketsMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.service.IHYGFMaintenanceTicketsService
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.List
;
@Service
public
class
HYGFMaintenanceTicketsServiceImpl
extends
BaseService
<
HYGFMaintenanceTicketsDto
,
HYGFMaintenanceTickets
,
HYGFMaintenanceTicketsMapper
>
implements
IHYGFMaintenanceTicketsService
{
/**
* 分页查询
*/
public
Page
<
HYGFMaintenanceTicketsDto
>
queryForHYGFMaintenanceTicketsDtoPage
(
Page
<
HYGFMaintenanceTicketsDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
HYGFMaintenanceTicketsDto
>
queryHYGFMaintenanceTicketsDtoList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
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