Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cnooc_zydeepen-cggl_expert-manage-miniapp
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙德龙
cnooc_zydeepen-cggl_expert-manage-miniapp
Commits
c62853db
Commit
c62853db
authored
Nov 23, 2025
by
kenzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add expert workflow
parent
dd0995e6
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
435 additions
and
97 deletions
+435
-97
src/main/java/com/cnooc/expert/controller/expert/ExpertController.java
+24
-6
src/main/java/com/cnooc/expert/controller/expert/ExpertMockController.java
+27
-41
src/main/java/com/cnooc/expert/controller/expert/model/request/FirstCategoryExpertApplyReq.java
+12
-0
src/main/java/com/cnooc/expert/controller/expert/model/request/ViolationGetReq.java
+1
-1
src/main/java/com/cnooc/expert/controller/expert/model/request/ViolationPageReq.java
+1
-7
src/main/java/com/cnooc/expert/controller/expert/model/response/ApproveNodeGetResp.java
+31
-0
src/main/java/com/cnooc/expert/controller/expert/model/response/DongJiePageResp.java
+0
-1
src/main/java/com/cnooc/expert/controller/expert/model/response/FirstCategoryExpertApplyResp.java
+11
-0
src/main/java/com/cnooc/expert/controller/expert/model/response/ViolationGetResp.java
+3
-1
src/main/java/com/cnooc/expert/external/expert/api/ExpertServiceApi.java
+39
-22
src/main/java/com/cnooc/expert/external/expert/model/request/ApproveNodeGetApiReq.java
+17
-0
src/main/java/com/cnooc/expert/external/expert/model/request/FirstCategoryExpertApplyApiReq.java
+14
-0
src/main/java/com/cnooc/expert/external/expert/model/request/ViolationAuditRecordListApiReq.java
+11
-0
src/main/java/com/cnooc/expert/external/expert/model/request/ViolationExpertPageApiReq.java
+1
-1
src/main/java/com/cnooc/expert/external/expert/model/response/ApproveNodeGetApiResp.java
+29
-0
src/main/java/com/cnooc/expert/external/expert/model/response/DongJieZhuanYePageApiResp.java
+7
-3
src/main/java/com/cnooc/expert/external/expert/model/response/FirstCategoryExpertApplyApiResp.java
+10
-0
src/main/java/com/cnooc/expert/external/expert/model/response/ViolationAuditRecordListApiResp.java
+81
-0
src/main/java/com/cnooc/expert/external/expert/model/response/ViolationExpertGetApiResp.java
+7
-0
src/main/java/com/cnooc/expert/external/expert/service/ExpertServiceClient.java
+48
-1
src/main/java/com/cnooc/expert/service/ExpertMockService.java
+33
-6
src/main/java/com/cnooc/expert/service/ExpertService.java
+27
-6
src/main/resources/application.yml
+1
-1
No files found.
src/main/java/com/cnooc/expert/controller/expert/ExpertController.java
View file @
c62853db
...
...
@@ -13,6 +13,7 @@ import com.cnooc.expert.controller.expert.model.request.ExamQuestionXiaoTiListRe
import
com.cnooc.expert.controller.expert.model.request.ExamRecordSaveReq
;
import
com.cnooc.expert.controller.expert.model.request.ExpertInfoGetByBusinessIdReq
;
import
com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq
;
import
com.cnooc.expert.controller.expert.model.request.FirstCategoryExpertApplyReq
;
import
com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaApplyReq
;
import
com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaPageReq
;
import
com.cnooc.expert.controller.expert.model.request.PingBiaoXiangMuByOwnerPageReq
;
...
...
@@ -24,14 +25,16 @@ import com.cnooc.expert.controller.expert.model.request.TrainCourseLessonGetReq;
import
com.cnooc.expert.controller.expert.model.request.TrainCourseLessonPageReq
;
import
com.cnooc.expert.controller.expert.model.request.TrainCoursePageReq
;
import
com.cnooc.expert.controller.expert.model.request.TrainExamPageReq
;
import
com.cnooc.expert.controller.expert.model.request.
WeiGui
GetReq
;
import
com.cnooc.expert.controller.expert.model.request.
WeiGuiJiLu
PageReq
;
import
com.cnooc.expert.controller.expert.model.request.
Violation
GetReq
;
import
com.cnooc.expert.controller.expert.model.request.
Violation
PageReq
;
import
com.cnooc.expert.controller.expert.model.request.ZhuanJiaShenQingJiLuPageReq
;
import
com.cnooc.expert.controller.expert.model.response.ApproveBusinessIdGetResp
;
import
com.cnooc.expert.controller.expert.model.response.PingBiaoZhuanYeTreeNodeResp
;
import
com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp
;
import
com.cnooc.expert.external.expert.model.request.ApproveNodeGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExamPaperSubmitApiReq
;
import
com.cnooc.expert.external.expert.model.request.TainLessonProgressUpdateApiReq
;
import
com.cnooc.expert.external.expert.model.response.ApproveNodeGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.CityTreeApiResp
;
import
com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp
;
import
com.cnooc.expert.external.expert.model.response.CommonJiTuanErJiDanWeiListApiResp
;
...
...
@@ -44,6 +47,7 @@ import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp;
import
com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExpertInfoGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.FirstCategoryExpertApplyApiResp
;
import
com.cnooc.expert.external.expert.model.response.GeRenXiuJiaApplyApiResp
;
import
com.cnooc.expert.external.expert.model.response.GeRenXiuJiaPageApiResp
;
import
com.cnooc.expert.external.expert.model.response.JinJiQingJiaApplyApiResp
;
...
...
@@ -89,6 +93,13 @@ public class ExpertController extends AbstractBaseController {
);
}
// 获取审批节点
@PostMapping
(
"/approve/node/list"
)
public
ApiResult
<
List
<
ApproveNodeGetApiResp
>>
getApproveNodeList
(
@RequestBody
@Validated
ApproveNodeGetApiReq
req
)
{
List
<
ApproveNodeGetApiResp
>
apiResp
=
expertService
.
getApproveNodeList
(
req
);
return
ApiResult
.
successWithResult
(
apiResp
);
}
// *** 个人信息 ***
// 民族列表
...
...
@@ -171,7 +182,14 @@ public class ExpertController extends AbstractBaseController {
// 专家个人信息修改
@PostMapping
(
"/updateAllInfo"
)
public
ApiResult
<
ExpertInfoGetApiResp
>
expertInfoUpdate
(
@RequestBody
@Validated
ExpertInfoUpdateApiReq
req
)
{
ExpertInfoGetApiResp
apiResp
=
expertService
.
updateExpetInfo
(
req
);
ExpertInfoGetApiResp
apiResp
=
expertService
.
updateExpertInfo
(
req
);
return
ApiResult
.
successWithResult
(
apiResp
);
}
// 申请成为一级专家
@PostMapping
(
"/first-category-expert/apply"
)
public
ApiResult
<
FirstCategoryExpertApplyApiResp
>
applyFirstCategoryExpert
(
@RequestBody
@Validated
FirstCategoryExpertApplyReq
req
)
{
FirstCategoryExpertApplyApiResp
apiResp
=
expertService
.
applyFirstCategoryExpert
(
req
);
return
ApiResult
.
successWithResult
(
apiResp
);
}
...
...
@@ -260,15 +278,15 @@ public class ExpertController extends AbstractBaseController {
// 专家违规分页列表
@PostMapping
(
"/wei-gui/page"
)
public
ApiResult
<
BasePageResp
<
ViolationExpertPageApiResp
>>
weiGuiJiLuPage
(
@RequestBody
@Validated
WeiGuiJiLu
PageReq
req
)
{
public
ApiResult
<
BasePageResp
<
ViolationExpertPageApiResp
>>
violationPage
(
@RequestBody
@Validated
Violation
PageReq
req
)
{
BasePageResp
<
ViolationExpertPageApiResp
>
apiResp
=
expertService
.
pageWeiGuiList
(
req
);
return
ApiResult
.
successWithResult
(
apiResp
);
}
// 专家违规详情
@PostMapping
(
"/wei-gui/get"
)
public
ApiResult
<
ViolationExpertGetApiResp
>
weiGuiGet
(
@RequestBody
@Validated
WeiGui
GetReq
req
)
{
ViolationExpertGetApiResp
apiResp
=
expertService
.
get
WeiGui
(
req
);
public
ApiResult
<
ViolationExpertGetApiResp
>
violationGet
(
@RequestBody
@Validated
Violation
GetReq
req
)
{
ViolationExpertGetApiResp
apiResp
=
expertService
.
get
Violation
(
req
);
return
ApiResult
.
successWithResult
(
apiResp
);
}
...
...
src/main/java/com/cnooc/expert/controller/expert/ExpertMockController.java
View file @
c62853db
...
...
@@ -13,6 +13,7 @@ import com.cnooc.expert.controller.expert.model.request.ExamQuestionXiaoTiListRe
import
com.cnooc.expert.controller.expert.model.request.ExamRecordSaveReq
;
import
com.cnooc.expert.controller.expert.model.request.ExpertInfoGetByBusinessIdReq
;
import
com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq
;
import
com.cnooc.expert.controller.expert.model.request.FirstCategoryExpertApplyReq
;
import
com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaApplyReq
;
import
com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaPageReq
;
import
com.cnooc.expert.controller.expert.model.request.KaoShiPageReq
;
...
...
@@ -28,10 +29,11 @@ import com.cnooc.expert.controller.expert.model.request.TrainCourseLessonGetReq;
import
com.cnooc.expert.controller.expert.model.request.TrainCourseLessonPageReq
;
import
com.cnooc.expert.controller.expert.model.request.TrainCoursePageReq
;
import
com.cnooc.expert.controller.expert.model.request.TrainExamPageReq
;
import
com.cnooc.expert.controller.expert.model.request.
WeiGui
GetReq
;
import
com.cnooc.expert.controller.expert.model.request.
WeiGuiJiLu
PageReq
;
import
com.cnooc.expert.controller.expert.model.request.
Violation
GetReq
;
import
com.cnooc.expert.controller.expert.model.request.
Violation
PageReq
;
import
com.cnooc.expert.controller.expert.model.request.ZhuanJiaShenQingJiLuPageReq
;
import
com.cnooc.expert.controller.expert.model.response.ApproveBusinessIdGetResp
;
import
com.cnooc.expert.controller.expert.model.response.ApproveNodeGetResp
;
import
com.cnooc.expert.controller.expert.model.response.CityTreeNodeResp
;
import
com.cnooc.expert.controller.expert.model.response.DictListItemResp
;
import
com.cnooc.expert.controller.expert.model.response.DongJieGetResp
;
...
...
@@ -41,6 +43,7 @@ import com.cnooc.expert.controller.expert.model.response.ExamQuestionListResp;
import
com.cnooc.expert.controller.expert.model.response.ExamQuestionXiaoTiListResp
;
import
com.cnooc.expert.controller.expert.model.response.ExamRecordSaveResp
;
import
com.cnooc.expert.controller.expert.model.response.ExpertInfoGetResp
;
import
com.cnooc.expert.controller.expert.model.response.FirstCategoryExpertApplyResp
;
import
com.cnooc.expert.controller.expert.model.response.GeRenXiuJiaApplyResp
;
import
com.cnooc.expert.controller.expert.model.response.KaoShiPageResp
;
import
com.cnooc.expert.controller.expert.model.response.NofilterListItemResp
;
...
...
@@ -54,21 +57,19 @@ import com.cnooc.expert.controller.expert.model.response.PingBiaoZhuanYeTreeNode
import
com.cnooc.expert.controller.expert.model.response.QingJiaJinJiApplyResp
;
import
com.cnooc.expert.controller.expert.model.response.SecondaryUnitListItemResp
;
import
com.cnooc.expert.controller.expert.model.response.TempExamPaperGetResp
;
import
com.cnooc.expert.controller.expert.model.response.
WeiGui
GetResp
;
import
com.cnooc.expert.controller.expert.model.response.
Violation
GetResp
;
import
com.cnooc.expert.controller.expert.model.response.WeiGuiPageResp
;
import
com.cnooc.expert.controller.expert.model.response.ZhuanJiaInfoGetByBusinessIdResp
;
import
com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp
;
import
com.cnooc.expert.external.expert.model.request.ApproveNodeGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExamPaperSubmitApiReq
;
import
com.cnooc.expert.external.expert.model.request.TainLessonProgressUpdateApiReq
;
import
com.cnooc.expert.external.expert.model.response.ApproveNodeGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExamPaperSubmitApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp
;
import
com.cnooc.expert.external.expert.model.response.FirstCategoryExpertApplyApiResp
;
import
com.cnooc.expert.external.expert.model.response.TainLessonProgressUpdateApiResp
;
import
com.cnooc.expert.external.expert.model.response.TrainCourseLessonGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.TrainExamPageApiResp
;
import
com.cnooc.expert.external.expert.model.response.ZhuanJiaInfoGetByBusinessIdApiResp
;
import
com.cnooc.expert.service.ExpertMockService
;
import
lombok.AllArgsConstructor
;
import
org.springframework.validation.annotation.Validated
;
...
...
@@ -91,6 +92,13 @@ public class ExpertMockController extends AbstractBaseController {
return
ApiResult
.
successWithResult
(
expertMockService
.
getApproveBusinessId
());
}
// 获取审批节点
@PostMapping
(
"/approve/node/list"
)
public
ApiResult
<
List
<
ApproveNodeGetResp
>>
getApproveNodeList
(
@RequestBody
@Validated
ApproveNodeGetApiReq
req
)
{
List
<
ApproveNodeGetResp
>
apiResp
=
expertMockService
.
getApproveNodeList
(
req
);
return
ApiResult
.
successWithResult
(
apiResp
);
}
// *** 数据字典 ***
/**
...
...
@@ -209,6 +217,13 @@ public class ExpertMockController extends AbstractBaseController {
return
ApiResult
.
successWithResult
(
expertMockService
.
updateExpetInfo
(
req
));
}
// 专家个人信息修改
@PostMapping
(
"/first-category-expert/apply"
)
public
ApiResult
<
FirstCategoryExpertApplyResp
>
applyFirstCategoryExpert
(
@RequestBody
@Validated
FirstCategoryExpertApplyReq
req
)
{
FirstCategoryExpertApplyResp
apiResp
=
expertMockService
.
applyFirstCategoryExpert
(
req
);
return
ApiResult
.
successWithResult
(
apiResp
);
}
// 根据BusinessId获取专家信息
@PostMapping
(
"/info-by-businessId"
)
public
ApiResult
<
ZhuanJiaInfoGetByBusinessIdResp
>
expertInfoByBusinessId
(
@RequestBody
@Validated
ExpertInfoGetByBusinessIdReq
req
)
{
...
...
@@ -295,8 +310,8 @@ public class ExpertMockController extends AbstractBaseController {
// 专家违规分页列表
@PostMapping
(
"/wei-gui/page"
)
public
ApiResult
<
BasePageResp
<
WeiGuiPageResp
>>
weiGuiJiLuPage
(
@RequestBody
@Validated
WeiGuiJiLu
PageReq
req
)
{
return
ApiResult
.
successWithResult
(
expertMockService
.
page
WeiGuiList
(
req
));
public
ApiResult
<
BasePageResp
<
WeiGuiPageResp
>>
violationPage
(
@RequestBody
@Validated
Violation
PageReq
req
)
{
return
ApiResult
.
successWithResult
(
expertMockService
.
page
Violation
(
req
));
}
/**
...
...
@@ -306,8 +321,8 @@ public class ExpertMockController extends AbstractBaseController {
* @return
*/
@PostMapping
(
"/wei-gui/get"
)
public
ApiResult
<
WeiGuiGetResp
>
weiGuiGet
(
@RequestBody
@Validated
WeiGui
GetReq
req
)
{
return
ApiResult
.
successWithResult
(
expertMockService
.
get
WeiGui
(
req
));
public
ApiResult
<
ViolationGetResp
>
violationGet
(
@RequestBody
@Validated
Violation
GetReq
req
)
{
return
ApiResult
.
successWithResult
(
expertMockService
.
get
Violation
(
req
));
}
// *** 培训 / 考试 ***
...
...
@@ -395,35 +410,6 @@ public class ExpertMockController extends AbstractBaseController {
}
// 课程详情 课节 详情
@PostMapping
(
"/peiXun/kecheng/kejie/detail/get"
)
public
ApiResult
<
PeiXunKeChengKeJieGetResp
>
getPeiXunKeChengKeJie
(
@RequestBody
@Validated
PeiXunKeChengKeJieGetReq
req
)
{
...
...
src/main/java/com/cnooc/expert/controller/expert/model/request/FirstCategoryExpertApplyReq.java
0 → 100644
View file @
c62853db
package
com
.
cnooc
.
expert
.
controller
.
expert
.
model
.
request
;
import
lombok.Data
;
@Data
public
class
FirstCategoryExpertApplyReq
{
private
String
zhuanJiaGuid
;
private
String
businessId
;
}
src/main/java/com/cnooc/expert/controller/expert/model/request/
WeiGui
GetReq.java
→
src/main/java/com/cnooc/expert/controller/expert/model/request/
Violation
GetReq.java
View file @
c62853db
...
...
@@ -3,7 +3,7 @@ package com.cnooc.expert.controller.expert.model.request;
import
lombok.Data
;
@Data
public
class
WeiGui
GetReq
{
public
class
Violation
GetReq
{
private
String
zhuanJiaGuid
;
...
...
src/main/java/com/cnooc/expert/controller/expert/model/request/
WeiGuiJiLu
PageReq.java
→
src/main/java/com/cnooc/expert/controller/expert/model/request/
Violation
PageReq.java
View file @
c62853db
...
...
@@ -4,16 +4,10 @@ import com.cnooc.expert.common.request.BasePageRequest;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* @author: FuHongZhang
* @date 2025-11-14 17:39
*/
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
WeiGuiJiLu
PageReq
extends
BasePageRequest
{
public
class
Violation
PageReq
extends
BasePageRequest
{
private
String
zhuanJiaGuid
;
}
src/main/java/com/cnooc/expert/controller/expert/model/response/ApproveNodeGetResp.java
0 → 100644
View file @
c62853db
package
com
.
cnooc
.
expert
.
controller
.
expert
.
model
.
response
;
import
lombok.Builder
;
import
lombok.Data
;
@Data
@Builder
public
class
ApproveNodeGetResp
{
// 事项code
private
String
code
;
// 是否下个需要提交审批
private
Boolean
approveNodeNext
;
// 是否审批中的节点
private
Boolean
approveNodeCur
;
// 是否开启审批
private
Boolean
needApprove
;
// 名称
private
String
name
;
// 提示
private
String
toolTip
;
// 当前登录人主体id
private
String
subjectId
;
}
src/main/java/com/cnooc/expert/controller/expert/model/response/DongJiePageResp.java
View file @
c62853db
...
...
@@ -42,5 +42,4 @@ public class DongJiePageResp {
private
String
jieDongReason
;
private
String
zhuanJiaName
;
}
src/main/java/com/cnooc/expert/controller/expert/model/response/FirstCategoryExpertApplyResp.java
0 → 100644
View file @
c62853db
package
com
.
cnooc
.
expert
.
controller
.
expert
.
model
.
response
;
import
lombok.Builder
;
import
lombok.Data
;
@Data
@Builder
public
class
FirstCategoryExpertApplyResp
{
private
String
businessId
;
}
src/main/java/com/cnooc/expert/controller/expert/model/response/
WeiGui
GetResp.java
→
src/main/java/com/cnooc/expert/controller/expert/model/response/
Violation
GetResp.java
View file @
c62853db
...
...
@@ -5,7 +5,7 @@ import lombok.Data;
@Data
@Builder
public
class
WeiGui
GetResp
{
public
class
Violation
GetResp
{
private
String
applyBusinessId
;
private
Integer
applyshenheStatus
;
...
...
@@ -39,5 +39,7 @@ public class WeiGuiGetResp {
private
String
zhuanjiaGuid
;
private
String
zhuanjiaName
;
private
String
zhuanjiaWeiguiGuid
;
// 违规处理时间
private
Long
handledTime
;
}
src/main/java/com/cnooc/expert/external/expert/api/ExpertServiceApi.java
View file @
c62853db
...
...
@@ -3,6 +3,7 @@ package com.cnooc.expert.external.expert.api;
import
com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq
;
import
com.cnooc.expert.external.common.model.response.ApiBasePageResp
;
import
com.cnooc.expert.external.common.model.response.ApiBaseResult
;
import
com.cnooc.expert.external.expert.model.request.ApproveNodeGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.CityTreeApiReq
;
import
com.cnooc.expert.external.expert.model.request.CommonFuJianListApiReq
;
import
com.cnooc.expert.external.expert.model.request.CommonJiTuanErJiDanWeiListApiReq
;
...
...
@@ -15,6 +16,7 @@ import com.cnooc.expert.external.expert.model.request.ExamQuestionListApiReq;
import
com.cnooc.expert.external.expert.model.request.ExamQuestionXiaoTiListApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExamRecordSaveApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExpertInfoGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.FirstCategoryExpertApplyApiReq
;
import
com.cnooc.expert.external.expert.model.request.GeRenXiuJiaApplyApiReq
;
import
com.cnooc.expert.external.expert.model.request.GeRenXiuJiaPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.JinJiQingJiaApplyApiReq
;
...
...
@@ -25,11 +27,13 @@ import com.cnooc.expert.external.expert.model.request.TrainCourseGetApiReq;
import
com.cnooc.expert.external.expert.model.request.TrainCourseLessonGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.TrainCourseLessonPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.TrainExamPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.ViolationAuditRecordListApiReq
;
import
com.cnooc.expert.external.expert.model.request.ViolationExpertGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.ViolationExpertPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.XiangMuInfoByChouQuNumGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.ZhuanJiaInfoGetByBusinessIdApiReq
;
import
com.cnooc.expert.external.expert.model.request.ZhuanJiaPingBiaoXiangMuRenWuPageApiReq
;
import
com.cnooc.expert.external.expert.model.response.ApproveNodeGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.CityTreeApiResp
;
import
com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp
;
import
com.cnooc.expert.external.expert.model.response.CommonJiTuanErJiDanWeiListApiResp
;
...
...
@@ -42,6 +46,7 @@ import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp;
import
com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExpertInfoGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.FirstCategoryExpertApplyApiResp
;
import
com.cnooc.expert.external.expert.model.response.GeRenXiuJiaApplyApiResp
;
import
com.cnooc.expert.external.expert.model.response.GeRenXiuJiaPageApiResp
;
import
com.cnooc.expert.external.expert.model.response.JinJiQingJiaApplyApiResp
;
...
...
@@ -54,6 +59,7 @@ import com.cnooc.expert.external.expert.model.response.TrainCourseLessonPageApiR
import
com.cnooc.expert.external.expert.model.response.TrainCoursePageApiReq
;
import
com.cnooc.expert.external.expert.model.response.TrainCoursePageApiResp
;
import
com.cnooc.expert.external.expert.model.response.TrainExamPageApiResp
;
import
com.cnooc.expert.external.expert.model.response.ViolationAuditRecordListApiResp
;
import
com.cnooc.expert.external.expert.model.response.ViolationExpertGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.ViolationExpertPageApiResp
;
import
com.cnooc.expert.external.expert.model.response.XiangMuInfoByChouQuNumGetApiResp
;
...
...
@@ -69,18 +75,25 @@ import java.util.Map;
public
interface
ExpertServiceApi
{
@POST
(
"/api/mini/expertManage/approve/getBusinessId"
)
@POST
(
"/api/
saas-expert/
mini/expertManage/approve/getBusinessId"
)
Call
<
ApiBaseResult
<
String
>>
getBusinessIdApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
);
// 获取审批的节点
@POST
(
"/api/saas-expert/mini/expertManage/approve/getApproveNode"
)
Call
<
ApiBaseResult
<
List
<
ApproveNodeGetApiResp
>>>
getApproveNodeApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
ApproveNodeGetApiReq
req
);
@POST
(
"/api/saas-expert/mini/zjfw/zggrxxgl/queryZhuanJiaInfoByBusinessId"
)
Call
<
ApiBaseResult
<
ZhuanJiaInfoGetByBusinessIdApiResp
>>
getZhuanJiaInfoByBusinessIdApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
ZhuanJiaInfoGetByBusinessIdApiReq
req
);
@POST
(
"/api/mini/zjfw/zggrxxgl/queryInfoForEdit"
)
@POST
(
"/api/
saas-expert/
mini/zjfw/zggrxxgl/queryInfoForEdit"
)
Call
<
ApiBaseResult
<
ExpertInfoGetApiResp
>>
getExpertInfo
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
ExpertInfoGetApiReq
req
);
@POST
(
"/api/mini/saas-expert/zjfw/zggrxxgl/updateAllInfo?type=1"
)
@POST
(
"/api/
saas-expert/
mini/saas-expert/zjfw/zggrxxgl/updateAllInfo?type=1"
)
Call
<
ApiBaseResult
<
ExpertInfoGetApiResp
>>
updateExpertInfoApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
ExpertInfoUpdateApiReq
req
);
@POST
(
"/api/saas-expert/mini/zjfw/zggrxxgl/firstCategoryExpertApply"
)
Call
<
ApiBaseResult
<
FirstCategoryExpertApplyApiResp
>>
applyFirstCategoryExpertApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
FirstCategoryExpertApplyApiReq
req
);
/* 字典、枚举 */
@POST
(
"/api/saas-expert/mini/common/nofilter/getEnum"
)
Call
<
ApiBaseResult
<
List
<
CommonNofilterEnumGetApiResp
>>>
getCommonNofilterEnumApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
CommonNofilterEnumGetApiReq
req
);
...
...
@@ -89,85 +102,89 @@ public interface ExpertServiceApi {
Call
<
ApiBaseResult
<
Long
>>
getCommonNofilterSystemTimeApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
);
/* 字典、枚举 */
@POST
(
"/api/mini/common/listJiTuanErJiDanWei"
)
@POST
(
"/api/
saas-expert/
mini/common/listJiTuanErJiDanWei"
)
Call
<
ApiBaseResult
<
List
<
CommonJiTuanErJiDanWeiListApiResp
>>>
listCommonJiTuanErJiDanWeiApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
CommonJiTuanErJiDanWeiListApiReq
req
);
// 3职称 4职业资格信息 11 语种 12 熟练程度
@POST
(
"/api/mini/zjcq/ChouQuShenQing/queryDictByParent"
)
@POST
(
"/api/
saas-expert/
mini/zjcq/ChouQuShenQing/queryDictByParent"
)
Call
<
ApiBaseResult
<
List
<
DictByParentListApiResp
>>>
listDictByParentApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
DictByParentListApiReq
req
);
// 5学历 6学位
@POST
(
"/api/mini/xitongguanli/queryDictsByParentGuid"
)
@POST
(
"/api/
saas-expert/
mini/xitongguanli/queryDictsByParentGuid"
)
Call
<
ApiBaseResult
<
List
<
DictByParentListApiResp
>>>
listDictByParentGuidApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
DictByParentListApiReq
req
);
// 省市县树
@POST
(
"/api/mini/zjcq/ChouQuShenQing/queryCityTreeContainPartArea"
)
@POST
(
"/api/
saas-expert/
mini/zjcq/ChouQuShenQing/queryCityTreeContainPartArea"
)
Call
<
ApiBaseResult
<
List
<
CityTreeApiResp
>>>
cityTreeApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
CityTreeApiReq
req
);
// 根据抽取码获取项目信息
@POST
(
"/api/mini/zjcq/quailfication/queryInfoByChouQuNum"
)
@POST
(
"/api/
saas-expert/
mini/zjcq/quailfication/queryInfoByChouQuNum"
)
Call
<
ApiBaseResult
<
XiangMuInfoByChouQuNumGetApiResp
>>
xiangMuInfoByChouQuNumGetApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
XiangMuInfoByChouQuNumGetApiReq
req
);
// 专家评标项目分页
@POST
(
"/mini/zjfw/zggrxxgl/queryZhuanJiaPingBiaoXiangMuRenWuList"
)
@POST
(
"/mini/
saas-expert/
zjfw/zggrxxgl/queryZhuanJiaPingBiaoXiangMuRenWuList"
)
Call
<
ApiBaseResult
<
ApiBasePageResp
<
ZhuanJiaPingBiaoXiangMuRenWuPageApiResp
>>>
pageZhuanJiaPingBiaoXiangMuRenWuApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
ZhuanJiaPingBiaoXiangMuRenWuPageApiReq
req
);
/* 请假、休假 */
// 请假分页
@POST
(
"/api/mini/zjfw/zggrxxgl/queryJinJiQingJiaPagination"
)
@POST
(
"/api/
saas-expert/
mini/zjfw/zggrxxgl/queryJinJiQingJiaPagination"
)
Call
<
ApiBaseResult
<
ApiBasePageResp
<
JinJiQingJiaPageApiResp
>>>
pageJinJiQingJiaApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
JinJiQingJiaPageApiReq
req
);
// 紧急请假申请
@POST
(
"/api/mini/zjgl/crkgl/saveSystemJinJiQingJia"
)
@POST
(
"/api/
saas-expert/
mini/zjgl/crkgl/saveSystemJinJiQingJia"
)
Call
<
ApiBaseResult
<
JinJiQingJiaApplyApiResp
>>
applyJinJiQingJiaApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
JinJiQingJiaApplyApiReq
req
);
// 个人休假分页
@POST
(
"/api/mini/zjfw/zggrxxgl/queryZhuanJiaQingJia"
)
@POST
(
"/api/
saas-expert/
mini/zjfw/zggrxxgl/queryZhuanJiaQingJia"
)
Call
<
ApiBaseResult
<
ApiBasePageResp
<
GeRenXiuJiaPageApiResp
>>>
pageGeRenXiuJiaApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
GeRenXiuJiaPageApiReq
req
);
// 个人休假申请
@POST
(
"/api/mini/zjfw/zggrxxgl/saveZhuanJiaQingJia"
)
@POST
(
"/api/
saas-expert/
mini/zjfw/zggrxxgl/saveZhuanJiaQingJia"
)
Call
<
ApiBaseResult
<
GeRenXiuJiaApplyApiResp
>>
applyGeRenXiuJiaApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
GeRenXiuJiaApplyApiReq
req
);
/* 违规、冻结 */
// 专家违规分页
@POST
(
"/api/mini/zjgl/zjwg/pageViolationExpert"
)
@POST
(
"/api/
saas-expert/
mini/zjgl/zjwg/pageViolationExpert"
)
Call
<
ApiBaseResult
<
ApiBasePageResp
<
ViolationExpertPageApiResp
>>>
pageViolationExpertApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
ViolationExpertPageApiReq
req
);
// 专家违规详情
@POST
(
"/api/mini/zjgl/zjwg/queryZhuanJiaWeiGuiRecordById"
)
@POST
(
"/api/
saas-expert/
mini/zjgl/zjwg/queryZhuanJiaWeiGuiRecordById"
)
Call
<
ApiBaseResult
<
ViolationExpertGetApiResp
>>
getViolationExpertApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
ViolationExpertGetApiReq
req
);
// 专家违规处理记录
@POST
(
"/api/saas-expert/mini/zjgl/zjwg/getAuditRecordList"
)
Call
<
ApiBaseResult
<
List
<
ViolationAuditRecordListApiResp
>>>
listViolationAuditRecordApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
ViolationAuditRecordListApiReq
req
);
// 专家冻结分页
@POST
(
"/api/mini/zjgl/zhuanJiaPingBiaoZhuanYe/queryDongJieZhuanYeList"
)
@POST
(
"/api/
saas-expert/
mini/zjgl/zhuanJiaPingBiaoZhuanYe/queryDongJieZhuanYeList"
)
Call
<
ApiBaseResult
<
ApiBasePageResp
<
DongJieZhuanYePageApiResp
>>>
pageDongJieZhuanYeApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
DongJieZhuanYePageApiReq
req
);
// 专家冻结详情
@POST
(
"/api/mini/zjgl/zhuanJiaPingBiaoZhuanYe/queryZhuanYeChangeRecordList"
)
@POST
(
"/api/
saas-expert/
mini/zjgl/zhuanJiaPingBiaoZhuanYe/queryZhuanYeChangeRecordList"
)
Call
<
ApiBaseResult
<
DongJieGetApiResp
>>
getDongJieApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
DongJieGetApiReq
req
);
/* 培训、考试 */
// 培训课程分页
@POST
(
"/api/mini/train/expert/pageExpertCourseProgress"
)
@POST
(
"/api/
saas-expert/
mini/train/expert/pageExpertCourseProgress"
)
Call
<
ApiBaseResult
<
ApiBasePageResp
<
TrainCoursePageApiResp
>>>
pageTrainCourseApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
TrainCoursePageApiReq
req
);
// 培训课程详情
@POST
(
"/api/mini/train/expert/queryTrainCourse"
)
@POST
(
"/api/
saas-expert/
mini/train/expert/queryTrainCourse"
)
Call
<
ApiBaseResult
<
TrainCourseGetApiResp
>>
getTrainCourseApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
TrainCourseGetApiReq
req
);
// 培训课程的课节分页
@POST
(
"/api/mini/train/expert/pageExpertStudyLesson"
)
@POST
(
"/api/
saas-expert/
mini/train/expert/pageExpertStudyLesson"
)
Call
<
ApiBaseResult
<
ApiBasePageResp
<
TrainCourseLessonPageApiResp
>>>
pageTrainCourseLessonApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
TrainCourseLessonPageApiReq
req
);
@POST
(
"/api/saas-expert/mini/train/expert/queryTrainLesson"
)
@POST
(
"/api/saas-expert/
saas-expert/
mini/train/expert/queryTrainLesson"
)
Call
<
ApiBaseResult
<
TrainCourseLessonGetApiResp
>>
getTrainCourseLessonApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
TrainCourseLessonGetApiReq
req
);
// 培训课程附件列表
@POST
(
"/api/mini/common/queryFuJianList"
)
@POST
(
"/api/
saas-expert/
mini/common/queryFuJianList"
)
Call
<
ApiBaseResult
<
List
<
CommonFuJianListApiResp
>>>
listCommonFuJianApi
(
@HeaderMap
Map
<
String
,
Object
>
headers
,
@Body
CommonFuJianListApiReq
req
);
// 更新培训课节学习进度
...
...
src/main/java/com/cnooc/expert/external/expert/model/request/ApproveNodeGetApiReq.java
0 → 100644
View file @
c62853db
package
com
.
cnooc
.
expert
.
external
.
expert
.
model
.
request
;
import
lombok.Builder
;
import
lombok.Data
;
@Data
@Builder
public
class
ApproveNodeGetApiReq
{
private
String
subjectId
;
private
String
subjectName
;
private
String
businessId
;
private
String
busKey
;
}
src/main/java/com/cnooc/expert/external/expert/model/request/FirstCategoryExpertApplyApiReq.java
0 → 100644
View file @
c62853db
package
com
.
cnooc
.
expert
.
external
.
expert
.
model
.
request
;
import
lombok.Builder
;
import
lombok.Data
;
@Data
@Builder
public
class
FirstCategoryExpertApplyApiReq
{
private
String
zhuanJiaGuid
;
private
String
businessId
;
}
src/main/java/com/cnooc/expert/external/expert/model/request/ViolationAuditRecordListApiReq.java
0 → 100644
View file @
c62853db
package
com
.
cnooc
.
expert
.
external
.
expert
.
model
.
request
;
import
lombok.Builder
;
import
lombok.Data
;
@Data
@Builder
public
class
ViolationAuditRecordListApiReq
{
private
String
zhuanjiaWeiguiGuid
;
}
src/main/java/com/cnooc/expert/external/expert/model/request/ViolationExpertPageApiReq.java
View file @
c62853db
...
...
@@ -13,7 +13,7 @@ public class ViolationExpertPageApiReq {
private
String
zhuanJiaGuid
;
private
String
shenheStatus
;
private
Integer
shenheStatus
;
private
String
zhuanJiaZhuangTai
;
...
...
src/main/java/com/cnooc/expert/external/expert/model/response/ApproveNodeGetApiResp.java
0 → 100644
View file @
c62853db
package
com
.
cnooc
.
expert
.
external
.
expert
.
model
.
response
;
import
lombok.Data
;
@Data
public
class
ApproveNodeGetApiResp
{
// 事项code
private
String
code
;
// 是否下个需要提交审批
private
Boolean
approveNodeNext
;
// 是否审批中的节点
private
Boolean
approveNodeCur
;
// 是否开启审批
private
Boolean
needApprove
;
// 名称
private
String
name
;
// 提示
private
String
toolTip
;
// 当前登录人主体id
private
String
subjectId
;
}
src/main/java/com/cnooc/expert/external/expert/model/response/DongJieZhuanYePageApiResp.java
View file @
c62853db
...
...
@@ -14,13 +14,17 @@ public class DongJieZhuanYePageApiResp {
private
String
zhuanYeName
;
private
String
zhuanYeBH
;
private
Long
jieDongTime
;
private
String
dongJieFuJianGuid
;
private
String
jieDongFuJianGuid
;
private
String
dongJieReason
;
private
Long
dongJieTime
;
private
String
gongZuoDanWei
;
private
String
zhuanJiaGuid
;
...
...
@@ -28,7 +32,7 @@ public class DongJieZhuanYePageApiResp {
private
String
pingBiaoZhuanYeGuid
;
private
Boolean
isPrimary
;
private
String
zhuanJiaCode
;
private
String
zhuanYeStatus
;
...
...
src/main/java/com/cnooc/expert/external/expert/model/response/FirstCategoryExpertApplyApiResp.java
0 → 100644
View file @
c62853db
package
com
.
cnooc
.
expert
.
external
.
expert
.
model
.
response
;
import
lombok.Data
;
@Data
public
class
FirstCategoryExpertApplyApiResp
{
private
String
businessId
;
}
src/main/java/com/cnooc/expert/external/expert/model/response/ViolationAuditRecordListApiResp.java
0 → 100644
View file @
c62853db
package
com
.
cnooc
.
expert
.
external
.
expert
.
model
.
response
;
import
lombok.Data
;
@Data
public
class
ViolationAuditRecordListApiResp
{
private
Integer
bianGengXuHao
;
private
String
buTongGuoEndSequence
;
private
Integer
buTongGuoStartSequence
;
private
String
daiShenRenGuids
;
private
String
daiShenRenNames
;
private
String
fujianGuid
;
private
Boolean
isCurrent
;
private
Boolean
isFinish
;
private
String
remark
;
private
Integer
sequence
;
private
String
shenHeBuMenGuid
;
private
String
shenHeBuMenName
;
private
String
shenHeFuJianGuid
;
private
String
shenHeGuid
;
private
String
shenHeRenGuid
;
private
String
shenHeRenName
;
private
Integer
shenHeStatus
;
private
Long
shenHeTime
;
private
String
shenHeTimeText
;
private
String
shenHeYiJian
;
private
String
shenPiJieGuoGuid
;
private
Integer
shenQingLeiXing
;
private
Boolean
shiFouYiFaZhuanJia
;
private
Boolean
shiFouZhuanJiao
;
private
String
shiXiangGuid
;
private
String
shiXiangName
;
private
Integer
shiXiangType
;
private
Long
shouLiTime
;
private
String
shouLiTimeText
;
private
String
tiJiaoRenGuid
;
private
String
tiJiaoRenName
;
private
Long
tiJiaoTime
;
private
String
tiJiaoTimeText
;
private
String
xiaJiShenHeRenGuid
;
private
String
xiaJiShenHeRenName
;
private
String
xiangMuGuid
;
private
Boolean
zhiJieHuiFu
;
}
src/main/java/com/cnooc/expert/external/expert/model/response/ViolationExpertGetApiResp.java
View file @
c62853db
package
com
.
cnooc
.
expert
.
external
.
expert
.
model
.
response
;
import
lombok.Data
;
@Data
public
class
ViolationExpertGetApiResp
{
private
String
applyBusinessId
;
...
...
@@ -54,4 +57,8 @@ public class ViolationExpertGetApiResp {
private
String
zhuanjiaWeiguiGuid
;
// 违规处理时间
private
Long
handledTime
;
}
src/main/java/com/cnooc/expert/external/expert/service/ExpertServiceClient.java
View file @
c62853db
...
...
@@ -5,6 +5,7 @@ import com.cnooc.expert.external.common.AbstractRetrofitManager;
import
com.cnooc.expert.external.common.model.response.ApiBasePageResp
;
import
com.cnooc.expert.external.common.model.response.ApiBaseResult
;
import
com.cnooc.expert.external.expert.api.ExpertServiceApi
;
import
com.cnooc.expert.external.expert.model.request.ApproveNodeGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.CityTreeApiReq
;
import
com.cnooc.expert.external.expert.model.request.CommonFuJianListApiReq
;
import
com.cnooc.expert.external.expert.model.request.CommonJiTuanErJiDanWeiListApiReq
;
...
...
@@ -17,6 +18,7 @@ import com.cnooc.expert.external.expert.model.request.ExamQuestionListApiReq;
import
com.cnooc.expert.external.expert.model.request.ExamQuestionXiaoTiListApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExamRecordSaveApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExpertInfoGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.FirstCategoryExpertApplyApiReq
;
import
com.cnooc.expert.external.expert.model.request.GeRenXiuJiaApplyApiReq
;
import
com.cnooc.expert.external.expert.model.request.GeRenXiuJiaPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.JinJiQingJiaApplyApiReq
;
...
...
@@ -27,11 +29,13 @@ import com.cnooc.expert.external.expert.model.request.TrainCourseGetApiReq;
import
com.cnooc.expert.external.expert.model.request.TrainCourseLessonGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.TrainCourseLessonPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.TrainExamPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.ViolationAuditRecordListApiReq
;
import
com.cnooc.expert.external.expert.model.request.ViolationExpertGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.ViolationExpertPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.XiangMuInfoByChouQuNumGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.ZhuanJiaInfoGetByBusinessIdApiReq
;
import
com.cnooc.expert.external.expert.model.request.ZhuanJiaPingBiaoXiangMuRenWuPageApiReq
;
import
com.cnooc.expert.external.expert.model.response.ApproveNodeGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.CityTreeApiResp
;
import
com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp
;
import
com.cnooc.expert.external.expert.model.response.CommonJiTuanErJiDanWeiListApiResp
;
...
...
@@ -44,6 +48,7 @@ import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp;
import
com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExpertInfoGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.FirstCategoryExpertApplyApiResp
;
import
com.cnooc.expert.external.expert.model.response.GeRenXiuJiaApplyApiResp
;
import
com.cnooc.expert.external.expert.model.response.GeRenXiuJiaPageApiResp
;
import
com.cnooc.expert.external.expert.model.response.JinJiQingJiaApplyApiResp
;
...
...
@@ -56,11 +61,13 @@ import com.cnooc.expert.external.expert.model.response.TrainCourseLessonPageApiR
import
com.cnooc.expert.external.expert.model.response.TrainCoursePageApiReq
;
import
com.cnooc.expert.external.expert.model.response.TrainCoursePageApiResp
;
import
com.cnooc.expert.external.expert.model.response.TrainExamPageApiResp
;
import
com.cnooc.expert.external.expert.model.response.ViolationAuditRecordListApiResp
;
import
com.cnooc.expert.external.expert.model.response.ViolationExpertGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.ViolationExpertPageApiResp
;
import
com.cnooc.expert.external.expert.model.response.XiangMuInfoByChouQuNumGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.ZhuanJiaInfoGetByBusinessIdApiResp
;
import
com.cnooc.expert.external.expert.model.response.ZhuanJiaPingBiaoXiangMuRenWuPageApiResp
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.stereotype.Service
;
import
retrofit2.Call
;
...
...
@@ -68,6 +75,7 @@ import retrofit2.Retrofit;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
@Service
public
class
ExpertServiceClient
extends
AbstractRetrofitManager
{
...
...
@@ -86,6 +94,12 @@ public class ExpertServiceClient extends AbstractRetrofitManager {
return
this
.
getResponseBody
(
call
,
"getBusinessId"
);
}
public
ApiBaseResult
<
List
<
ApproveNodeGetApiResp
>>
getApproveNode
(
ApproveNodeGetApiReq
req
)
{
Map
<
String
,
Object
>
headers
=
super
.
getHeaders
();
Call
<
ApiBaseResult
<
List
<
ApproveNodeGetApiResp
>>>
call
=
expertServiceApi
.
getApproveNodeApi
(
headers
,
req
);
return
this
.
getResponseBody
(
call
,
"getApproveNode"
);
}
// ****** 专家 ******
public
ApiBaseResult
<
ExpertInfoGetApiResp
>
getExpertInfo
(
ExpertInfoGetApiReq
req
)
{
...
...
@@ -110,6 +124,12 @@ public class ExpertServiceClient extends AbstractRetrofitManager {
return
this
.
getResponseBody
(
call
,
"updateExpertInfo"
);
}
public
ApiBaseResult
<
FirstCategoryExpertApplyApiResp
>
applyFirstCategoryExpert
(
FirstCategoryExpertApplyApiReq
req
)
{
Map
<
String
,
Object
>
headers
=
super
.
getHeaders
();
Call
<
ApiBaseResult
<
FirstCategoryExpertApplyApiResp
>>
call
=
expertServiceApi
.
applyFirstCategoryExpertApi
(
headers
,
req
);
return
this
.
getResponseBody
(
call
,
"applyFirstCategoryExpert"
);
}
public
ApiBaseResult
<
List
<
CommonNofilterEnumGetApiResp
>>
getCommonNofilterEnum
(
CommonNofilterEnumGetApiReq
req
)
{
Map
<
String
,
Object
>
headers
=
super
.
getHeaders
();
Call
<
ApiBaseResult
<
List
<
CommonNofilterEnumGetApiResp
>>>
call
=
expertServiceApi
.
getCommonNofilterEnumApi
(
headers
,
req
);
...
...
@@ -211,11 +231,38 @@ public class ExpertServiceClient extends AbstractRetrofitManager {
return
this
.
getResponseBody
(
call
,
"pageViolationExpert"
);
}
private
static
final
int
SHEN_HE_STATUS_HANDLED
=
50
;
// 专家违规详情
public
ApiBaseResult
<
ViolationExpertGetApiResp
>
getViolationExpert
(
ViolationExpertGetApiReq
req
)
{
Map
<
String
,
Object
>
headers
=
super
.
getHeaders
();
Call
<
ApiBaseResult
<
ViolationExpertGetApiResp
>>
call
=
expertServiceApi
.
getViolationExpertApi
(
headers
,
req
);
return
this
.
getResponseBody
(
call
,
"getViolationExpert"
);
ApiBaseResult
<
ViolationExpertGetApiResp
>
violationApiResp
=
this
.
getResponseBody
(
call
,
"getViolationExpert"
);
ViolationExpertGetApiResp
apiData
=
violationApiResp
.
getData
();
if
(
Objects
.
equals
(
SHEN_HE_STATUS_HANDLED
,
apiData
.
getShenheStatus
()))
{
ApiBaseResult
<
List
<
ViolationAuditRecordListApiResp
>>
auditListApiResp
=
this
.
listViolationAuditRecord
(
req
.
getGuid
());
if
(
auditListApiResp
.
getSuccess
())
{
List
<
ViolationAuditRecordListApiResp
>
auditList
=
auditListApiResp
.
getData
();
if
(
CollectionUtils
.
isNotEmpty
(
auditList
))
{
ViolationAuditRecordListApiResp
lastAudit
=
auditList
.
get
(
0
);
apiData
.
setHandledTime
(
lastAudit
.
getTiJiaoTime
());
}
}
}
return
violationApiResp
;
}
// 专家违规处理记录
public
ApiBaseResult
<
List
<
ViolationAuditRecordListApiResp
>>
listViolationAuditRecord
(
String
zhuanjiaWeiguiGuid
)
{
Map
<
String
,
Object
>
headers
=
super
.
getHeaders
();
ViolationAuditRecordListApiReq
apiReq
=
ViolationAuditRecordListApiReq
.
builder
()
.
zhuanjiaWeiguiGuid
(
zhuanjiaWeiguiGuid
)
.
build
();
Call
<
ApiBaseResult
<
List
<
ViolationAuditRecordListApiResp
>>>
call
=
expertServiceApi
.
listViolationAuditRecordApi
(
headers
,
apiReq
);
return
this
.
getResponseBody
(
call
,
"listViolationAuditRecord"
);
}
// *** 培训、考试 ***
...
...
src/main/java/com/cnooc/expert/service/ExpertMockService.java
View file @
c62853db
...
...
@@ -8,6 +8,7 @@ import com.cnooc.expert.controller.expert.model.request.DongJiePageReq;
import
com.cnooc.expert.controller.expert.model.request.ExamQuestionXiaoTiListReq
;
import
com.cnooc.expert.controller.expert.model.request.ExamRecordSaveReq
;
import
com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq
;
import
com.cnooc.expert.controller.expert.model.request.FirstCategoryExpertApplyReq
;
import
com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaApplyReq
;
import
com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaPageReq
;
import
com.cnooc.expert.controller.expert.model.request.KaoShiPageReq
;
...
...
@@ -23,10 +24,11 @@ import com.cnooc.expert.controller.expert.model.request.TrainCourseLessonGetReq;
import
com.cnooc.expert.controller.expert.model.request.TrainCourseLessonPageReq
;
import
com.cnooc.expert.controller.expert.model.request.TrainCoursePageReq
;
import
com.cnooc.expert.controller.expert.model.request.TrainExamPageReq
;
import
com.cnooc.expert.controller.expert.model.request.
WeiGui
GetReq
;
import
com.cnooc.expert.controller.expert.model.request.
WeiGuiJiLu
PageReq
;
import
com.cnooc.expert.controller.expert.model.request.
Violation
GetReq
;
import
com.cnooc.expert.controller.expert.model.request.
Violation
PageReq
;
import
com.cnooc.expert.controller.expert.model.request.ZhuanJiaShenQingJiLuPageReq
;
import
com.cnooc.expert.controller.expert.model.response.ApproveBusinessIdGetResp
;
import
com.cnooc.expert.controller.expert.model.response.ApproveNodeGetResp
;
import
com.cnooc.expert.controller.expert.model.response.CityTreeNodeResp
;
import
com.cnooc.expert.controller.expert.model.response.DictListItemResp
;
import
com.cnooc.expert.controller.expert.model.response.DongJieGetResp
;
...
...
@@ -36,6 +38,7 @@ import com.cnooc.expert.controller.expert.model.response.ExamQuestionListResp;
import
com.cnooc.expert.controller.expert.model.response.ExamQuestionXiaoTiListResp
;
import
com.cnooc.expert.controller.expert.model.response.ExamRecordSaveResp
;
import
com.cnooc.expert.controller.expert.model.response.ExpertInfoGetResp
;
import
com.cnooc.expert.controller.expert.model.response.FirstCategoryExpertApplyResp
;
import
com.cnooc.expert.controller.expert.model.response.GeRenXiuJiaApplyResp
;
import
com.cnooc.expert.controller.expert.model.response.GeRenXiuJiaPageResp
;
import
com.cnooc.expert.controller.expert.model.response.KaoShiPageResp
;
...
...
@@ -52,10 +55,11 @@ import com.cnooc.expert.controller.expert.model.response.QingJiaJinJiApplyResp;
import
com.cnooc.expert.controller.expert.model.response.QingJiaJinJiPageResp
;
import
com.cnooc.expert.controller.expert.model.response.SecondaryUnitListItemResp
;
import
com.cnooc.expert.controller.expert.model.response.TempExamPaperGetResp
;
import
com.cnooc.expert.controller.expert.model.response.
WeiGui
GetResp
;
import
com.cnooc.expert.controller.expert.model.response.
Violation
GetResp
;
import
com.cnooc.expert.controller.expert.model.response.WeiGuiPageResp
;
import
com.cnooc.expert.controller.expert.model.response.ZhuanJiaInfoGetByBusinessIdResp
;
import
com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp
;
import
com.cnooc.expert.external.expert.model.request.ApproveNodeGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExamPaperSubmitApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExpertInfoGetReq
;
import
com.cnooc.expert.external.expert.model.request.TainLessonProgressUpdateApiReq
;
...
...
@@ -87,6 +91,22 @@ public class ExpertMockService {
.
build
();
}
public
List
<
ApproveNodeGetResp
>
getApproveNodeList
(
ApproveNodeGetApiReq
req
)
{
ArrayList
<
ApproveNodeGetResp
>
result
=
Lists
.
newArrayList
(
ApproveNodeGetResp
.
builder
()
.
approveNodeCur
(
true
)
.
approveNodeNext
(
true
)
.
code
(
"FirstCategoryExpertApply-innerApprove"
)
.
name
(
"内部审批"
)
.
needApprove
(
true
)
.
subjectId
(
""
)
.
toolTip
(
"您即将提交给公司内部审批"
)
.
build
()
);
return
result
;
}
public
List
<
NofilterListItemResp
>
listDictNofilter
(
DictNofilterListReq
req
)
{
ArrayList
<
NofilterListItemResp
>
result
=
Lists
.
newArrayList
(
NofilterListItemResp
.
builder
()
...
...
@@ -1776,6 +1796,12 @@ public class ExpertMockService {
return
result
;
}
public
FirstCategoryExpertApplyResp
applyFirstCategoryExpert
(
FirstCategoryExpertApplyReq
req
)
{
return
FirstCategoryExpertApplyResp
.
builder
()
.
businessId
(
req
.
getBusinessId
())
.
build
();
}
public
PingBiaoXiangMuInfoGetByChouQuMaResp
getPingBiaoXiangMuInfoByChouQuMa
(
PingBiaoXiangMuInfoGetByChouQuMaReq
req
)
{
PingBiaoXiangMuInfoGetByChouQuMaResp
result
=
PingBiaoXiangMuInfoGetByChouQuMaResp
.
builder
()
...
...
@@ -2400,7 +2426,7 @@ public class ExpertMockService {
}
public
BasePageResp
<
WeiGuiPageResp
>
page
WeiGuiList
(
WeiGuiJiLu
PageReq
req
)
{
public
BasePageResp
<
WeiGuiPageResp
>
page
Violation
(
Violation
PageReq
req
)
{
List
<
WeiGuiPageResp
>
list
=
Lists
.
newArrayList
(
WeiGuiPageResp
.
builder
()
...
...
@@ -2536,8 +2562,8 @@ public class ExpertMockService {
return
list
;
}
public
WeiGuiGetResp
getWeiGui
(
WeiGui
GetReq
req
)
{
return
WeiGui
GetResp
.
builder
()
public
ViolationGetResp
getViolation
(
Violation
GetReq
req
)
{
return
Violation
GetResp
.
builder
()
.
applyBusinessId
(
"1240990734186446848"
)
.
applyshenheStatus
(
50
)
.
businessId
(
"1241043784526479360"
)
...
...
@@ -2570,6 +2596,7 @@ public class ExpertMockService {
.
zhuanjiaGuid
(
"8ffb7651-1416-4f74-a590-1f0cf860463b"
)
.
zhuanjiaName
(
""
)
.
zhuanjiaWeiguiGuid
(
"316cf113-2233-4118-9bd6-713e75b81363"
)
.
handledTime
(
1701415932795L
)
.
build
();
}
...
...
src/main/java/com/cnooc/expert/service/ExpertService.java
View file @
c62853db
...
...
@@ -8,6 +8,7 @@ import com.cnooc.expert.controller.expert.model.request.DongJiePageReq;
import
com.cnooc.expert.controller.expert.model.request.ExamQuestionXiaoTiListReq
;
import
com.cnooc.expert.controller.expert.model.request.ExamRecordSaveReq
;
import
com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq
;
import
com.cnooc.expert.controller.expert.model.request.FirstCategoryExpertApplyReq
;
import
com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaApplyReq
;
import
com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaPageReq
;
import
com.cnooc.expert.controller.expert.model.request.PingBiaoXiangMuByOwnerPageReq
;
...
...
@@ -19,13 +20,14 @@ import com.cnooc.expert.controller.expert.model.request.TrainCourseLessonGetReq;
import
com.cnooc.expert.controller.expert.model.request.TrainCourseLessonPageReq
;
import
com.cnooc.expert.controller.expert.model.request.TrainCoursePageReq
;
import
com.cnooc.expert.controller.expert.model.request.TrainExamPageReq
;
import
com.cnooc.expert.controller.expert.model.request.
WeiGui
GetReq
;
import
com.cnooc.expert.controller.expert.model.request.
WeiGuiJiLu
PageReq
;
import
com.cnooc.expert.controller.expert.model.request.
Violation
GetReq
;
import
com.cnooc.expert.controller.expert.model.request.
Violation
PageReq
;
import
com.cnooc.expert.controller.expert.model.request.ZhuanJiaShenQingJiLuPageReq
;
import
com.cnooc.expert.controller.expert.model.response.PingBiaoZhuanYeTreeNodeResp
;
import
com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp
;
import
com.cnooc.expert.external.common.model.response.ApiBasePageResp
;
import
com.cnooc.expert.external.common.model.response.ApiBaseResult
;
import
com.cnooc.expert.external.expert.model.request.ApproveNodeGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.CityTreeApiReq
;
import
com.cnooc.expert.external.expert.model.request.CommonFuJianListApiReq
;
import
com.cnooc.expert.external.expert.model.request.CommonJiTuanErJiDanWeiListApiReq
;
...
...
@@ -39,6 +41,7 @@ import com.cnooc.expert.external.expert.model.request.ExamQuestionXiaoTiListApiR
import
com.cnooc.expert.external.expert.model.request.ExamRecordSaveApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExpertInfoGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.ExpertInfoGetReq
;
import
com.cnooc.expert.external.expert.model.request.FirstCategoryExpertApplyApiReq
;
import
com.cnooc.expert.external.expert.model.request.GeRenXiuJiaApplyApiReq
;
import
com.cnooc.expert.external.expert.model.request.GeRenXiuJiaPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.JinJiQingJiaApplyApiReq
;
...
...
@@ -53,6 +56,7 @@ import com.cnooc.expert.external.expert.model.request.ViolationExpertGetApiReq;
import
com.cnooc.expert.external.expert.model.request.ViolationExpertPageApiReq
;
import
com.cnooc.expert.external.expert.model.request.XiangMuInfoByChouQuNumGetApiReq
;
import
com.cnooc.expert.external.expert.model.request.ZhuanJiaPingBiaoXiangMuRenWuPageApiReq
;
import
com.cnooc.expert.external.expert.model.response.ApproveNodeGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.CityTreeApiResp
;
import
com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp
;
import
com.cnooc.expert.external.expert.model.response.CommonJiTuanErJiDanWeiListApiResp
;
...
...
@@ -65,6 +69,7 @@ import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp;
import
com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp
;
import
com.cnooc.expert.external.expert.model.response.ExpertInfoGetApiResp
;
import
com.cnooc.expert.external.expert.model.response.FirstCategoryExpertApplyApiResp
;
import
com.cnooc.expert.external.expert.model.response.GeRenXiuJiaApplyApiResp
;
import
com.cnooc.expert.external.expert.model.response.GeRenXiuJiaPageApiResp
;
import
com.cnooc.expert.external.expert.model.response.JinJiQingJiaApplyApiResp
;
...
...
@@ -102,6 +107,11 @@ public class ExpertService {
return
apiResp
.
getData
();
}
public
List
<
ApproveNodeGetApiResp
>
getApproveNodeList
(
ApproveNodeGetApiReq
req
)
{
ApiBaseResult
<
List
<
ApproveNodeGetApiResp
>>
apiResp
=
expertServiceClient
.
getApproveNode
(
req
);
return
apiResp
.
getData
();
}
public
List
<
CommonNofilterEnumGetApiResp
>
listDictNofilter
(
DictNofilterListReq
req
)
{
CommonNofilterEnumGetApiReq
apiReq
=
CommonNofilterEnumGetApiReq
.
builder
()
.
name
(
"MinZu"
)
...
...
@@ -199,11 +209,20 @@ public class ExpertService {
return
apiResp
.
getData
();
}
public
ExpertInfoGetApiResp
updateExpetInfo
(
ExpertInfoUpdateApiReq
req
)
{
public
ExpertInfoGetApiResp
updateExpe
r
tInfo
(
ExpertInfoUpdateApiReq
req
)
{
ApiBaseResult
<
ExpertInfoGetApiResp
>
apiResp
=
expertServiceClient
.
updateExpertInfo
(
req
);
return
apiResp
.
getData
();
}
public
FirstCategoryExpertApplyApiResp
applyFirstCategoryExpert
(
FirstCategoryExpertApplyReq
req
)
{
FirstCategoryExpertApplyApiReq
apiReq
=
FirstCategoryExpertApplyApiReq
.
builder
()
.
zhuanJiaGuid
(
req
.
getZhuanJiaGuid
())
.
businessId
(
req
.
getBusinessId
())
.
build
();
ApiBaseResult
<
FirstCategoryExpertApplyApiResp
>
apiResp
=
expertServiceClient
.
applyFirstCategoryExpert
(
apiReq
);
return
apiResp
.
getData
();
}
public
XiangMuInfoByChouQuNumGetApiResp
getPingBiaoXiangMuInfoByChouQuMa
(
PingBiaoXiangMuInfoGetByChouQuMaReq
req
)
{
XiangMuInfoByChouQuNumGetApiReq
apiReq
=
XiangMuInfoByChouQuNumGetApiReq
.
builder
()
.
chouQuNum
(
req
.
getChouQuNum
())
...
...
@@ -387,12 +406,14 @@ public class ExpertService {
return
apiResp
.
getData
();
}
private
static
final
int
SHEN_HE_STATUS_HANDLED
=
50
;
// 专家违规分页
public
BasePageResp
<
ViolationExpertPageApiResp
>
pageWeiGuiList
(
WeiGuiJiLu
PageReq
req
)
{
// 专家违规分页
(查询处理状态 = ‘已处理’)
public
BasePageResp
<
ViolationExpertPageApiResp
>
pageWeiGuiList
(
Violation
PageReq
req
)
{
ViolationExpertPageApiReq
apiReq
=
ViolationExpertPageApiReq
.
builder
()
.
page
(
req
.
getPageNo
())
.
rows
(
req
.
getPageSize
())
.
shenheStatus
(
SHEN_HE_STATUS_HANDLED
)
.
zhuanJiaGuid
(
req
.
getZhuanJiaGuid
())
.
build
();
ApiBaseResult
<
ApiBasePageResp
<
ViolationExpertPageApiResp
>>
apiResp
=
expertServiceClient
.
pageViolationExpert
(
apiReq
);
...
...
@@ -408,7 +429,7 @@ public class ExpertService {
}
// 专家违规详情
public
ViolationExpertGetApiResp
get
WeiGui
(
WeiGui
GetReq
req
)
{
public
ViolationExpertGetApiResp
get
Violation
(
Violation
GetReq
req
)
{
ViolationExpertGetApiReq
apiReq
=
ViolationExpertGetApiReq
.
builder
()
.
zhuanJiaGuid
(
req
.
getZhuanJiaGuid
())
.
guid
(
req
.
getGuid
())
...
...
src/main/resources/application.yml
View file @
c62853db
...
...
@@ -25,7 +25,7 @@ spring:
indent-output
:
true
deserialization
:
fail-on-unknown-properties
:
false
default-property-inclusion
:
non_null
#
default-property-inclusion: non_null
kafka
:
# Kafka服务器地址
...
...
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