Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Q
queueForTicket_bl
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
mengmeng
queueForTicket_bl
Commits
99709fe5
Commit
99709fe5
authored
Sep 23, 2022
by
Shen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 更新取消预约接口传参方式
2. 更新登录接口,新增返回userId 3. 更新浙里办接口调用地址 4. 更新线上端口
parent
17cf8fee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
ApiLoginController.java
.../src/main/java/io/hmit/controller/ApiLoginController.java
+8
-0
AppointmentOrderController.java
...es/appointment/controller/AppointmentOrderController.java
+3
-2
Constants.java
...rc/main/java/io/hmit/modules/zlb/constants/Constants.java
+3
-2
application.yml
hmit-api/src/main/resources/application.yml
+1
-1
No files found.
hmit-api/src/main/java/io/hmit/controller/ApiLoginController.java
View file @
99709fe5
...
@@ -103,6 +103,9 @@ public class ApiLoginController {
...
@@ -103,6 +103,9 @@ public class ApiLoginController {
//判断是否已经存在了这条信息
//判断是否已经存在了这条信息
UserEntity
oldUser
=
userService
.
queryByIdnum
(
URLEncoder
.
encode
(
user_map
.
get
(
"idnum"
).
toString
(),
"UTF8"
));
UserEntity
oldUser
=
userService
.
queryByIdnum
(
URLEncoder
.
encode
(
user_map
.
get
(
"idnum"
).
toString
(),
"UTF8"
));
userMap
.
put
(
"userId"
,
user_map
.
get
(
"userid"
));
userMap
.
put
(
"userNick"
,
""
);
if
(
oldUser
==
null
){
if
(
oldUser
==
null
){
//将获得的信息保存到个人登陆表
//将获得的信息保存到个人登陆表
UserEntity
user
=
new
UserEntity
();
UserEntity
user
=
new
UserEntity
();
...
@@ -155,6 +158,11 @@ public class ApiLoginController {
...
@@ -155,6 +158,11 @@ public class ApiLoginController {
//判断是否已经存在了这条信息
//判断是否已经存在了这条信息
UserEntity
oldUser
=
userService
.
queryByIdnum
(
URLEncoder
.
encode
(
user_map
.
get
(
"idNo"
).
toString
(),
"UTF8"
));
UserEntity
oldUser
=
userService
.
queryByIdnum
(
URLEncoder
.
encode
(
user_map
.
get
(
"idNo"
).
toString
(),
"UTF8"
));
try
{
userMap
.
put
(
"userId"
,
user_map
.
get
(
"userId"
));
userMap
.
put
(
"userNick"
,
((
Map
<
String
,
Object
>)
user_map
.
get
(
"attributes"
)).
get
(
"nickname"
));
}
catch
(
Exception
ignore
)
{}
if
(
oldUser
==
null
){
if
(
oldUser
==
null
){
//将获得的信息保存到个人登陆表
//将获得的信息保存到个人登陆表
String
idNo
=
user_map
.
get
(
"idNo"
).
toString
();
String
idNo
=
user_map
.
get
(
"idNo"
).
toString
();
...
...
hmit-api/src/main/java/io/hmit/modules/appointment/controller/AppointmentOrderController.java
View file @
99709fe5
...
@@ -152,9 +152,10 @@ public class AppointmentOrderController {
...
@@ -152,9 +152,10 @@ public class AppointmentOrderController {
}
}
@Login
@Login
@GetMapping
(
"/cancel
/{id}
"
)
@GetMapping
(
"/cancel"
)
@ApiOperation
(
"预约取消"
)
@ApiOperation
(
"预约取消"
)
public
Result
cancelReservation
(
@PathVariable
(
"id"
)
Long
id
,
@ApiIgnore
@LoginUser
UserEntity
user
){
public
Result
cancelReservation
(
@RequestParam
(
"id"
)
Long
id
,
@ApiIgnore
@LoginUser
UserEntity
user
){
AppointmentOrderDTO
data
=
appointmentOrderService
.
get
(
id
);
AppointmentOrderDTO
data
=
appointmentOrderService
.
get
(
id
);
data
.
setStatus
(
Constant
.
ReservationStatus
.
CANCEL
.
getValue
());
data
.
setStatus
(
Constant
.
ReservationStatus
.
CANCEL
.
getValue
());
...
...
hmit-api/src/main/java/io/hmit/modules/zlb/constants/Constants.java
View file @
99709fe5
...
@@ -9,11 +9,12 @@ public interface Constants {
...
@@ -9,11 +9,12 @@ public interface Constants {
/**
/**
* 单点登录 ticketId换token的地址
* 单点登录 ticketId换token的地址
*/
*/
String
ACCESS_TOKEN_URL
=
"https://ibcdsg.zj.gov.cn:8443/restapi/prod/IC33000020220329000007/uc/sso/access_token"
;
String
ACCESS_TOKEN_URL
=
"https://bcdsg.zj.gov.cn:8443/restapi/prod/IC33000020220329000007/uc/sso/access_token"
;
// String ACCESS_TOKEN_URL = "https://ibcdsg.zj.gov.cn:8443/restapi/prod/IC33000020220329000007/uc/sso/access_token";
/**
/**
* 单点登录 token获取用户信息地址
* 单点登录 token获取用户信息地址
*/
*/
String
GET_USER_INFO_URL
=
"https://
i
bcdsg.zj.gov.cn:8443/restapi/prod/IC33000020220329000008/uc/sso/getUserInfo"
;
String
GET_USER_INFO_URL
=
"https://bcdsg.zj.gov.cn:8443/restapi/prod/IC33000020220329000008/uc/sso/getUserInfo"
;
/**
/**
* IRS请求携带的请求头
* IRS请求携带的请求头
...
...
hmit-api/src/main/resources/application.yml
View file @
99709fe5
...
@@ -4,7 +4,7 @@ server:
...
@@ -4,7 +4,7 @@ server:
uri-encoding
:
UTF-8
uri-encoding
:
UTF-8
max-threads
:
1000
max-threads
:
1000
min-spare-threads
:
30
min-spare-threads
:
30
port
:
808
1
port
:
808
2
connection-timeout
:
5000ms
connection-timeout
:
5000ms
servlet
:
servlet
:
context-path
:
/hmit-api
context-path
:
/hmit-api
...
...
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