Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gsc
/
gsc-vcp-web-facade
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a00d6ba7
authored
Dec 16, 2025
by
崔彦峰
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/v5.5.1_20251230' into v5.5.1_20251230
2 parents
40ce5c21
645310ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
184 additions
and
0 deletions
src/main/java/com/gsc4cloud/gsc/facade/vpcweb/controller/evaorder/StaffHandoverController.java
src/main/java/com/gsc4cloud/gsc/facade/vpcweb/service/handover/StaffHandoverService.java
src/main/java/com/gsc4cloud/gsc/facade/vpcweb/controller/evaorder/StaffHandoverController.java
0 → 100644
View file @
a00d6ba
package
com
.
gsc4cloud
.
gsc
.
facade
.
vpcweb
.
controller
.
evaorder
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.gsc4cloud.gsc.common.core.util.R
;
import
com.gsc4cloud.gsc.facade.vpcweb.anotation.RopSession
;
import
com.gsc4cloud.gsc.facade.vpcweb.service.handover.StaffHandoverService
;
import
com.gsc4cloud.gsc.vpc.api.dto.web.resdto.staffhandover.*
;
import
com.gsc4cloud.gsc.vpc.api.req.PageRequest
;
import
com.gsc4cloud.gsc.vpc.api.req.web.staffhandover.*
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 离职交接管理
*
* @author system
* @date 2025-12-16
*/
@Tag
(
name
=
"离职交接管理"
)
@Slf4j
@RestController
@RequestMapping
(
"/staffHandover"
)
public
class
StaffHandoverController
{
@Autowired
private
StaffHandoverService
staffHandoverService
;
/**
* 离职交接分页列表查询
*/
@RopSession
@PostMapping
(
"/page"
)
@Operation
(
summary
=
"离职交接分页列表"
)
public
R
<
Page
<
StaffHandoverPageResDTO
>>
page
(
@RequestBody
PageRequest
<
StaffHandoverPageReq
>
request
)
{
try
{
log
.
info
(
"离职交接分页查询请求参数: {}"
,
JSONObject
.
toJSONString
(
request
));
return
staffHandoverService
.
page
(
request
);
}
catch
(
Exception
e
)
{
log
.
error
(
"离职交接分页查询异常"
,
e
);
return
R
.
failed
(
e
.
getMessage
());
}
}
/**
* 离职交接详情查询
*/
@RopSession
@PostMapping
(
"/detail"
)
@Operation
(
summary
=
"离职交接详情"
)
public
R
<
StaffHandoverDetailResDTO
>
detail
(
@RequestBody
StaffHandoverDetailReq
request
)
{
try
{
log
.
info
(
"离职交接详情查询请求参数: {}"
,
JSONObject
.
toJSONString
(
request
));
return
staffHandoverService
.
detail
(
request
);
}
catch
(
Exception
e
)
{
log
.
error
(
"离职交接详情查询异常"
,
e
);
return
R
.
failed
(
e
.
getMessage
());
}
}
/**
* 查询待交接资产列表
*/
@RopSession
@PostMapping
(
"/queryAssets"
)
@Operation
(
summary
=
"查询待交接资产"
)
public
R
<
QueryHandoverAssetsResDTO
>
queryAssets
(
@RequestBody
QueryHandoverAssetsReq
request
)
{
try
{
log
.
info
(
"查询待交接资产请求参数: {}"
,
JSONObject
.
toJSONString
(
request
));
return
staffHandoverService
.
queryAssets
(
request
);
}
catch
(
Exception
e
)
{
log
.
error
(
"查询待交接资产异常"
,
e
);
return
R
.
failed
(
e
.
getMessage
());
}
}
/**
* 创建离职交接记录
*/
@RopSession
@PostMapping
(
"/create"
)
@Operation
(
summary
=
"创建离职交接"
)
public
R
<
CreateStaffHandoverResDTO
>
create
(
@RequestBody
@Validated
CreateStaffHandoverReq
request
)
{
try
{
log
.
info
(
"创建离职交接请求参数: {}"
,
JSONObject
.
toJSONString
(
request
));
return
staffHandoverService
.
create
(
request
);
}
catch
(
Exception
e
)
{
log
.
error
(
"创建离职交接异常"
,
e
);
return
R
.
failed
(
e
.
getMessage
());
}
}
/**
* 查询原责任人/新接收人下拉列表
*/
@RopSession
@PostMapping
(
"/userList"
)
@Operation
(
summary
=
"原责任人/新接收人下拉列表"
)
public
R
<
List
<
StaffUserOptionResDTO
>>
userList
(
@RequestBody
StaffUserQueryReq
request
)
{
try
{
log
.
info
(
"查询用户列表请求参数: {}"
,
JSONObject
.
toJSONString
(
request
));
return
staffHandoverService
.
userList
(
request
);
}
catch
(
Exception
e
)
{
log
.
error
(
"查询用户列表异常"
,
e
);
return
R
.
failed
(
e
.
getMessage
());
}
}
}
src/main/java/com/gsc4cloud/gsc/facade/vpcweb/service/handover/StaffHandoverService.java
0 → 100644
View file @
a00d6ba
package
com
.
gsc4cloud
.
gsc
.
facade
.
vpcweb
.
service
.
handover
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.gsc4cloud.gsc.common.core.util.R
;
import
com.gsc4cloud.gsc.facade.vpcweb.response.rop.LoginAccountResponse
;
import
com.gsc4cloud.gsc.facade.vpcweb.utils.ThreadLocalCache
;
import
com.gsc4cloud.gsc.vpc.api.dto.web.resdto.staffhandover.*
;
import
com.gsc4cloud.gsc.vpc.api.feign.web.staffhandover.StaffHandoverRemote
;
import
com.gsc4cloud.gsc.vpc.api.req.PageRequest
;
import
com.gsc4cloud.gsc.vpc.api.req.web.staffhandover.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 离职交接业务服务
*
* @author system
* @date 2025-12-16
*/
@Service
public
class
StaffHandoverService
{
@Autowired
private
StaffHandoverRemote
staffHandoverRemote
;
/**
* 离职交接分页列表查询
*/
public
R
<
Page
<
StaffHandoverPageResDTO
>>
page
(
PageRequest
<
StaffHandoverPageReq
>
request
)
{
return
staffHandoverRemote
.
page
(
request
);
}
/**
* 离职交接详情查询
*/
public
R
<
StaffHandoverDetailResDTO
>
detail
(
StaffHandoverDetailReq
request
)
{
return
staffHandoverRemote
.
detail
(
request
);
}
/**
* 查询待交接资产列表
*/
public
R
<
QueryHandoverAssetsResDTO
>
queryAssets
(
QueryHandoverAssetsReq
request
)
{
return
staffHandoverRemote
.
queryAssets
(
request
);
}
/**
* 创建离职交接记录
*/
public
R
<
CreateStaffHandoverResDTO
>
create
(
CreateStaffHandoverReq
request
)
{
// 从登录上下文获取操作人信息
LoginAccountResponse
loginAccountInfo
=
ThreadLocalCache
.
getLoginAccountInfo
();
request
.
setOperator
(
loginAccountInfo
.
getUserName
());
// 调用远程服务
return
staffHandoverRemote
.
create
(
request
);
}
/**
* 查询原责任人/新接收人下拉列表
*/
public
R
<
List
<
StaffUserOptionResDTO
>>
userList
(
StaffUserQueryReq
request
)
{
return
staffHandoverRemote
.
userList
(
request
);
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment