Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-riskmanage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 69f8536a
authored
Nov 25, 2025
by
林冲
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/v5.5.0' into v5.5.0
2 parents
6c163a2d
47b50be1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
373 additions
and
0 deletions
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/learningcenter/LevelExamDetailResponseDTO.java
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/learningcenter/LevelExamPageListRequestDTO.java
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/learningcenter/LevelExamPageListResponseDTO.java
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/remote/LearningCenterLevelExamRemote.java
rpc-dj-riskmanage/src/main/java/cn/com/glsx/dj/riskmanage/mapper/learningcenter/LearningCenterLevelExamMapper.java
rpc-dj-riskmanage/src/main/java/cn/com/glsx/dj/riskmanage/remote/learningcenter/LearningCenterLevelExamRemoteImpl.java
rpc-dj-riskmanage/src/main/java/cn/com/glsx/dj/riskmanage/service/learningcenter/LearningCenterLevelExamService.java
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/learningcenter/LevelExamDetailResponseDTO.java
0 → 100644
View file @
69f8536
package
cn
.
com
.
glsx
.
dj
.
riskmanage
.
dto
.
learningcenter
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
@Data
public
class
LevelExamDetailResponseDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@ApiModelProperty
(
notes
=
"主键id"
)
private
Integer
id
;
/**
* 北森考试名称
*/
@ApiModelProperty
(
notes
=
"北森考试名称"
)
private
String
beisenExamName
;
/**
* 所属部门名称
*/
@ApiModelProperty
(
notes
=
"所属部门名称"
)
private
String
departmentName
;
/**
* 职务名称
*/
@ApiModelProperty
(
notes
=
"职务名称"
)
private
String
positionName
;
/**
* 考试时间
*/
@ApiModelProperty
(
notes
=
"考试时间"
)
private
Integer
examTime
;
/**
* 状态 (0:草稿, 1:未生效, 2:生效, 3:失效)
*/
@ApiModelProperty
(
notes
=
"状态 (0:草稿, 1:未生效, 2:生效, 3:失效)"
)
private
Byte
status
;
/**
* 考试等级
*/
@ApiModelProperty
(
notes
=
"考试等级"
)
private
List
<
LevelExamLevelDTO
>
examLevel
;
/**
* 学习中心权限 (1:提交后开放)
*/
@ApiModelProperty
(
notes
=
"学习中心权限 (1:提交后开放)"
)
private
Byte
learningCenterPermission
;
/**
* 生效时间
*/
@ApiModelProperty
(
notes
=
"生效时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
effectiveTime
;
/**
* 生效方式 (1:立即生效, 2:定时生效)
*/
@ApiModelProperty
(
notes
=
"生效方式 (1:立即生效, 2:定时生效)"
)
private
Byte
effectiveType
;
}
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/learningcenter/LevelExamPageListRequestDTO.java
0 → 100644
View file @
69f8536
package
cn
.
com
.
glsx
.
dj
.
riskmanage
.
dto
.
learningcenter
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
java.io.Serializable
;
@Data
public
class
LevelExamPageListRequestDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 北森考试名称
*/
@ApiModelProperty
(
notes
=
"北森考试名称"
)
private
String
beisenExamName
;
/**
* 所属部门Id
*/
@ApiModelProperty
(
notes
=
"所属部门Id"
)
private
Integer
departmentId
;
/**
* 职务编码
*/
@ApiModelProperty
(
notes
=
"职务编码"
)
private
String
positionCode
;
/**
* 状态 (0:草稿, 1:未生效, 2:生效, 3:失效)
*/
@ApiModelProperty
(
notes
=
"状态 (0:草稿, 1:未生效, 2:生效, 3:失效)"
)
private
Byte
status
;
/**
* 创建人
*/
@ApiModelProperty
(
notes
=
"创建人"
)
private
String
createdBy
;
/**
* 创建开始时间
*/
@ApiModelProperty
(
notes
=
"创建开始时间"
)
private
String
createdStartDate
;
/**
* 创建结束时间
*/
@ApiModelProperty
(
notes
=
"创建结束时间"
)
private
String
createdEndDate
;
/**
* 创建时间排序 (0:升序, 1:降序)
*/
@ApiModelProperty
(
notes
=
"创建时间排序 (0:升序, 1:降序)"
)
private
Integer
createdDateSort
;
/**
* 提交人数排序 (0:升序, 1:降序)
*/
@ApiModelProperty
(
notes
=
"提交人数排序 (0:升序, 1:降序)"
)
private
Integer
submitCountSort
;
/**
* 生效时间排序 (0:升序, 1:降序)
*/
@ApiModelProperty
(
notes
=
"生效时间排序 (0:升序, 1:降序)"
)
private
Integer
effectiveDateSort
;
}
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/learningcenter/LevelExamPageListResponseDTO.java
0 → 100644
View file @
69f8536
package
cn
.
com
.
glsx
.
dj
.
riskmanage
.
dto
.
learningcenter
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
@Data
public
class
LevelExamPageListResponseDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@ApiModelProperty
(
notes
=
"主键id"
)
private
Integer
id
;
/**
* 北森考试名称
*/
@ApiModelProperty
(
notes
=
"北森考试名称"
)
private
String
beisenExamName
;
/**
* 所属部门名称
*/
@ApiModelProperty
(
notes
=
"所属部门名称"
)
private
String
departmentName
;
/**
* 职务名称
*/
@ApiModelProperty
(
notes
=
"职务名称"
)
private
String
positionName
;
/**
* 考试时间
*/
@ApiModelProperty
(
notes
=
"考试时间"
)
private
Integer
examTime
;
/**
* 状态 (0:草稿, 1:未生效, 2:生效, 3:失效)
*/
@ApiModelProperty
(
notes
=
"状态 (0:草稿, 1:未生效, 2:生效, 3:失效)"
)
private
Byte
status
;
/**
* 考试等级
*/
@ApiModelProperty
(
notes
=
"考试等级"
)
private
Integer
examLevel
;
/**
* 提交人数
*/
@ApiModelProperty
(
notes
=
"提交人数"
)
private
Integer
submitCount
;
/**
* 创建人
*/
@ApiModelProperty
(
notes
=
"创建人"
)
private
String
createdBy
;
/**
* 创建时间
*/
@ApiModelProperty
(
notes
=
"创建时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
createdDate
;
/**
* 生效时间
*/
@ApiModelProperty
(
notes
=
"生效时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
effectiveTime
;
}
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/remote/LearningCenterLevelExamRemote.java
0 → 100644
View file @
69f8536
package
cn
.
com
.
glsx
.
dj
.
riskmanage
.
remote
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamDetailResponseDTO
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPageListRequestDTO
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPageListResponseDTO
;
import
cn.com.glsx.framework.core.annotation.ApiMethod
;
import
cn.com.glsx.framework.core.annotation.ApiParam
;
import
cn.com.glsx.framework.core.annotation.ApiResponse
;
import
cn.com.glsx.framework.core.annotation.ApiService
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
javax.validation.constraints.NotNull
;
@ApiService
(
value
=
"学习中心,等级考试"
,
owner
=
"cuiyf"
)
public
interface
LearningCenterLevelExamRemote
{
@ApiMethod
(
"分页查询"
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"分页查询"
)
RpcResponse
<
RpcPagination
<
LevelExamPageListResponseDTO
>>
levelExamListPage
(
@NotNull
RpcPagination
<
LevelExamPageListRequestDTO
>
pagination
);
@ApiMethod
(
"查询详情"
)
@ApiParam
(
name
=
"id"
,
notes
=
"主键ID"
,
dataType
=
ApiParam
.
DataTypeEnum
.
STRING
,
required
=
true
)
@ApiResponse
(
"查询详情"
)
RpcResponse
<
LevelExamDetailResponseDTO
>
getLevelExamDetail
(
@NotNull
Integer
id
);
}
rpc-dj-riskmanage/src/main/java/cn/com/glsx/dj/riskmanage/mapper/learningcenter/LearningCenterLevelExamMapper.java
View file @
69f8536
package
cn
.
com
.
glsx
.
dj
.
riskmanage
.
mapper
.
learningcenter
;
package
cn
.
com
.
glsx
.
dj
.
riskmanage
.
mapper
.
learningcenter
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPageListRequestDTO
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPageListResponseDTO
;
import
cn.com.glsx.dj.riskmanage.model.learningcenter.LearningCenterLevelExam
;
import
cn.com.glsx.dj.riskmanage.model.learningcenter.LearningCenterLevelExam
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.oreframework.datasource.mybatis.mapper.OreMapper
;
import
org.oreframework.datasource.mybatis.mapper.OreMapper
;
import
java.util.List
;
@Mapper
@Mapper
public
interface
LearningCenterLevelExamMapper
extends
OreMapper
<
LearningCenterLevelExam
>
{
public
interface
LearningCenterLevelExamMapper
extends
OreMapper
<
LearningCenterLevelExam
>
{
/**
* 等级考试列表
* @param condition
* @return
*/
List
<
LevelExamPageListResponseDTO
>
levelExamListPage
(
LevelExamPageListRequestDTO
condition
);
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-riskmanage/src/main/java/cn/com/glsx/dj/riskmanage/remote/learningcenter/LearningCenterLevelExamRemoteImpl.java
0 → 100644
View file @
69f8536
package
cn
.
com
.
glsx
.
dj
.
riskmanage
.
remote
.
learningcenter
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamDetailResponseDTO
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPageListRequestDTO
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPageListResponseDTO
;
import
cn.com.glsx.dj.riskmanage.remote.LearningCenterLevelExamRemote
;
import
cn.com.glsx.dj.riskmanage.service.learningcenter.LearningCenterLevelExamService
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.dubbo.config.annotation.DubboService
;
import
org.springframework.beans.factory.annotation.Autowired
;
@Slf4j
@DubboService
(
retries
=
0
,
timeout
=
30000
)
public
class
LearningCenterLevelExamRemoteImpl
implements
LearningCenterLevelExamRemote
{
@Autowired
private
LearningCenterLevelExamService
learningCenterLevelExamService
;
@Override
public
RpcResponse
<
RpcPagination
<
LevelExamPageListResponseDTO
>>
levelExamListPage
(
RpcPagination
<
LevelExamPageListRequestDTO
>
pagination
)
{
try
{
return
RpcResponse
.
success
(
RpcPagination
.
copyPage
(
learningCenterLevelExamService
.
levelExamListPage
(
pagination
)));
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
return
RpcResponse
.
error
(
e
);
}
}
@Override
public
RpcResponse
<
LevelExamDetailResponseDTO
>
getLevelExamDetail
(
Integer
id
)
{
return
null
;
}
}
rpc-dj-riskmanage/src/main/java/cn/com/glsx/dj/riskmanage/service/learningcenter/LearningCenterLevelExamService.java
0 → 100644
View file @
69f8536
package
cn
.
com
.
glsx
.
dj
.
riskmanage
.
service
.
learningcenter
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamDetailResponseDTO
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPageListRequestDTO
;
import
cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPageListResponseDTO
;
import
cn.com.glsx.dj.riskmanage.mapper.learningcenter.LearningCenterLevelExamMapper
;
import
cn.com.glsx.dj.riskmanage.model.learningcenter.LearningCenterLevelExam
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Slf4j
@Service
@RequiredArgsConstructor
public
class
LearningCenterLevelExamService
{
@Autowired
private
LearningCenterLevelExamMapper
learningCenterLevelExamMapper
;
public
Page
<
LevelExamPageListResponseDTO
>
levelExamListPage
(
RpcPagination
<
LevelExamPageListRequestDTO
>
pagination
)
{
Page
<
LevelExamPageListResponseDTO
>
page
=
PageHelper
.
startPage
(
pagination
.
getPageNum
(),
pagination
.
getPageSize
(),
pagination
.
isNeedCount
());
List
<
LevelExamPageListResponseDTO
>
responseDTOS
=
learningCenterLevelExamMapper
.
levelExamListPage
(
pagination
.
getCondition
());
return
page
;
}
public
LevelExamDetailResponseDTO
getLevelExamDetail
(
Integer
id
)
{
LearningCenterLevelExam
learningCenterLevelExam
=
learningCenterLevelExamMapper
.
selectByPrimaryKey
(
id
);
if
(
learningCenterLevelExam
==
null
)
{
return
null
;
}
LevelExamDetailResponseDTO
levelExamDetailResponseDTO
=
new
LevelExamDetailResponseDTO
();
BeanUtils
.
copyProperties
(
learningCenterLevelExam
,
levelExamDetailResponseDTO
);
return
levelExamDetailResponseDTO
;
}
}
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