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 2add78da
authored
Nov 26, 2025
by
崔彦峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交部门列表接口
1 parent
62399aee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
4 deletions
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/beisen/OrganizationListResponseDTO.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/src/main/resources/META-INF/orm/LearningCenterLevelExamMapper.xml
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/beisen/OrganizationListResponseDTO.java
0 → 100644
View file @
2add78d
package
cn
.
com
.
glsx
.
dj
.
riskmanage
.
dto
.
beisen
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
OrganizationListResponseDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 组织单元OId
*/
@ApiModelProperty
(
notes
=
"组织单元OId(部门id)"
)
private
Integer
oId
;
/**
* 部门机构名称
*/
@ApiModelProperty
(
notes
=
"部门机构名称"
)
private
String
name
;
}
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/learningcenter/LevelExamPageListRequestDTO.java
View file @
2add78d
...
@@ -5,6 +5,7 @@ import lombok.Data;
...
@@ -5,6 +5,7 @@ import lombok.Data;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.List
;
@Data
@Data
...
@@ -22,7 +23,7 @@ public class LevelExamPageListRequestDTO implements Serializable {
...
@@ -22,7 +23,7 @@ public class LevelExamPageListRequestDTO implements Serializable {
* 所属部门Id
* 所属部门Id
*/
*/
@ApiModelProperty
(
notes
=
"所属部门Id"
)
@ApiModelProperty
(
notes
=
"所属部门Id"
)
private
Integer
departmentId
;
private
List
<
Integer
>
departmentIds
;
/**
/**
...
@@ -72,12 +73,12 @@ public class LevelExamPageListRequestDTO implements Serializable {
...
@@ -72,12 +73,12 @@ public class LevelExamPageListRequestDTO implements Serializable {
* 提交人数排序 (0:升序, 1:降序)
* 提交人数排序 (0:升序, 1:降序)
*/
*/
@ApiModelProperty
(
notes
=
"提交人数排序 (0:升序, 1:降序)"
)
@ApiModelProperty
(
notes
=
"提交人数排序 (0:升序, 1:降序)"
)
private
Integer
submitCountSort
;
private
Integer
submit
ted
CountSort
;
/**
/**
* 生效时间排序 (0:升序, 1:降序)
* 生效时间排序 (0:升序, 1:降序)
*/
*/
@ApiModelProperty
(
notes
=
"生效时间排序 (0:升序, 1:降序)"
)
@ApiModelProperty
(
notes
=
"生效时间排序 (0:升序, 1:降序)"
)
private
Integer
effectiveDateSort
;
private
Integer
effectiveDateSort
;
}
}
rpc-dj-riskmanage-api/src/main/java/cn/com/glsx/dj/riskmanage/dto/learningcenter/LevelExamPageListResponseDTO.java
View file @
2add78d
...
@@ -64,7 +64,7 @@ public class LevelExamPageListResponseDTO implements Serializable {
...
@@ -64,7 +64,7 @@ public class LevelExamPageListResponseDTO implements Serializable {
* 提交人数
* 提交人数
*/
*/
@ApiModelProperty
(
notes
=
"提交人数"
)
@ApiModelProperty
(
notes
=
"提交人数"
)
private
Integer
submitCount
;
private
Integer
submit
ted
Count
;
/**
/**
...
...
rpc-dj-riskmanage/src/main/resources/META-INF/orm/LearningCenterLevelExamMapper.xml
View file @
2add78d
...
@@ -25,6 +25,9 @@
...
@@ -25,6 +25,9 @@
<result
column=
"updated_date"
property=
"updatedDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"updated_date"
property=
"updatedDate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"deleted_flag"
property=
"deletedFlag"
jdbcType=
"CHAR"
/>
<result
column=
"deleted_flag"
property=
"deletedFlag"
jdbcType=
"CHAR"
/>
</resultMap>
</resultMap>
<resultMap
id=
"DTOBaseResultMap"
type=
"cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPageListResponseDTO"
extends=
"BaseResultMap"
>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -33,4 +36,58 @@
...
@@ -33,4 +36,58 @@
learning_center_permission, effective_type, effective_time, status, submitted_count, creator,
learning_center_permission, effective_type, effective_time, status, submitted_count, creator,
created_by, created_date, updated_by, updated_date, deleted_flag
created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
</sql>
<!-- 查询等级考试列表 -->
<select
id=
"levelExamListPage"
resultMap=
"DTOBaseResultMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM dj_car_life_learning_center_level_exam
WHERE deleted_flag = 'N'
<if
test=
"beisenExamName != null and beisenExamName != ''"
>
AND beisen_exam_name LIKE CONCAT('%', #{beisenExamName}, '%')
</if>
<if
test=
"positionCode != null and positionCode != ''"
>
AND position_code = #{positionCode}
</if>
<if
test=
"status != null"
>
AND status = #{status}
</if>
<if
test=
"createdBy != null and createdBy != ''"
>
AND created_by LIKE CONCAT('%', #{createdBy}, '%')
</if>
<if
test=
"createdStartDate != null and createdEndDate != null"
>
AND created_date BETWEEN #{createdStartDate} AND #{createdEndDate}
</if>
<if
test=
"createdStartDate != null and createdEndDate == null"
>
AND created_date
>
= #{createdStartDate}
</if>
<if
test=
"createdStartDate == null and createdEndDate != null"
>
AND created_date
<
= #{createdEndDate}
</if>
<if
test=
"departmentIds != null and departmentIds.size() > 0"
>
and department_id in
<foreach
item=
"item"
collection=
"departmentIds"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item}
</foreach>
</if>
<if
test=
"createdDateSort != null and createdDateSort == 0"
>
ORDER BY created_date ASC
</if>
<if
test=
"createdDateSort != null and createdDateSort == 1"
>
ORDER BY created_date DESC
</if>
<if
test=
"submittedCountSort != null and submittedCountSort == 0"
>
ORDER BY submitted_count ASC
</if>
<if
test=
"submittedCountSort != null and submittedCountSort == 1"
>
ORDER BY submitted_count DESC
</if>
<if
test=
"effectiveDateSort != null and effectiveDateSort == 0"
>
ORDER BY effective_time ASC
</if>
<if
test=
"effectiveDateSort != null and effectiveDateSort == 1"
>
ORDER BY effective_time DESC
</if>
ORDER BY id DESC
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
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