Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
8403ad2b
Commit
8403ad2b
authored
Aug 08, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网关日志限制修改
parent
fb71804a
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
128 additions
and
113 deletions
+128
-113
AccessGatewayFilter.java
...hub/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
+104
-108
ResponseRecordFilter.java
...ub/wxiaoqi/security/gate/filter/ResponseRecordFilter.java
+1
-2
SmsTemplateDTO.java
.../java/com/xxfc/platform/universal/dto/SmsTemplateDTO.java
+4
-0
CCPRestSmsBiz.java
...n/java/com/xxfc/platform/universal/biz/CCPRestSmsBiz.java
+11
-0
VehicleActiveService.java
...a/com/xxfc/platform/vehicle/biz/VehicleActiveService.java
+8
-3
No files found.
ace-gate/src/main/java/com/github/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
View file @
8403ad2b
This diff is collapsed.
Click to expand it.
ace-gate/src/main/java/com/github/wxiaoqi/security/gate/filter/ResponseRecordFilter.java
View file @
8403ad2b
...
@@ -19,7 +19,6 @@ import org.springframework.http.codec.ClientCodecConfigurer;
...
@@ -19,7 +19,6 @@ import org.springframework.http.codec.ClientCodecConfigurer;
import
org.springframework.http.codec.json.Jackson2JsonDecoder
;
import
org.springframework.http.codec.json.Jackson2JsonDecoder
;
import
org.springframework.http.codec.json.Jackson2JsonEncoder
;
import
org.springframework.http.codec.json.Jackson2JsonEncoder
;
import
org.springframework.http.server.reactive.ServerHttpResponseDecorator
;
import
org.springframework.http.server.reactive.ServerHttpResponseDecorator
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.web.reactive.function.BodyInserter
;
import
org.springframework.web.reactive.function.BodyInserter
;
import
org.springframework.web.reactive.function.BodyInserters
;
import
org.springframework.web.reactive.function.BodyInserters
;
...
@@ -31,7 +30,7 @@ import reactor.core.publisher.Mono;
...
@@ -31,7 +30,7 @@ import reactor.core.publisher.Mono;
import
java.util.function.Consumer
;
import
java.util.function.Consumer
;
import
java.util.function.Function
;
import
java.util.function.Function
;
@Component
//
@Component
@Slf4j
@Slf4j
public
class
ResponseRecordFilter
implements
GlobalFilter
,
Ordered
{
public
class
ResponseRecordFilter
implements
GlobalFilter
,
Ordered
{
...
...
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/dto/SmsTemplateDTO.java
View file @
8403ad2b
...
@@ -62,6 +62,10 @@ public class SmsTemplateDTO {
...
@@ -62,6 +62,10 @@ public class SmsTemplateDTO {
public
static
final
int
REFUND_A
=
22
;
public
static
final
int
REFUND_A
=
22
;
//违章押金退还
//违章押金退还
public
static
final
int
REFUND_B
=
23
;
public
static
final
int
REFUND_B
=
23
;
//旅游内部通知(客服)
public
static
final
int
PAY_H
=
24
;
//取消旅游订单(客服)
public
static
final
int
CANCEL_F
=
25
;
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/CCPRestSmsBiz.java
View file @
8403ad2b
...
@@ -58,6 +58,11 @@ public class CCPRestSmsBiz{
...
@@ -58,6 +58,11 @@ public class CCPRestSmsBiz{
//违章押金退还 23
//违章押金退还 23
public
static
final
String
TEMPLATE_ID_FINISH_B
=
"460773"
;
public
static
final
String
TEMPLATE_ID_FINISH_B
=
"460773"
;
//旅游内部通知(客服)24
public
static
final
String
TEMPLATE_ID_PAY_H
=
"461421"
;
//取消旅游订单(客服)25
public
static
final
String
TEMPLATE_ID_CANCEL_F
=
"461424"
;
...
@@ -131,6 +136,12 @@ public class CCPRestSmsBiz{
...
@@ -131,6 +136,12 @@ public class CCPRestSmsBiz{
case
23
:
case
23
:
CCPRestSmsUtils
.
sendTemplateSMS
(
phoneNumbers
,
params
,
TEMPLATE_ID_FINISH_B
);
CCPRestSmsUtils
.
sendTemplateSMS
(
phoneNumbers
,
params
,
TEMPLATE_ID_FINISH_B
);
break
;
break
;
case
24
:
CCPRestSmsUtils
.
sendTemplateSMS
(
phoneNumbers
,
params
,
TEMPLATE_ID_PAY_H
);
break
;
case
25
:
CCPRestSmsUtils
.
sendTemplateSMS
(
phoneNumbers
,
params
,
TEMPLATE_ID_CANCEL_F
);
break
;
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleActiveService.java
View file @
8403ad2b
...
@@ -82,7 +82,7 @@ public class VehicleActiveService {
...
@@ -82,7 +82,7 @@ public class VehicleActiveService {
}
}
//修改预约记录状态
//修改预约记录状态
if
(
departureVo
.
getBookRecordId
()
!=
null
)
{
if
(
departureVo
.
getBookRecordId
()
!=
null
)
{
updateBookRecordStatus
(
departureVo
.
getBookRecordId
());
updateBookRecordStatus
(
departureVo
.
getBookRecordId
()
,
1
);
}
}
VehicleDepartureLogVo
vehicleDepartureLogVo
=
vehicleDepartureLogMapper
.
selectByBookRecordId
(
departureVo
.
getBookRecordId
());
VehicleDepartureLogVo
vehicleDepartureLogVo
=
vehicleDepartureLogMapper
.
selectByBookRecordId
(
departureVo
.
getBookRecordId
());
if
(
vehicleDepartureLogVo
!=
null
)
{
if
(
vehicleDepartureLogVo
!=
null
)
{
...
@@ -154,7 +154,7 @@ public class VehicleActiveService {
...
@@ -154,7 +154,7 @@ public class VehicleActiveService {
}
}
if
(
arrivalVo
.
getBookRecordId
()
!=
null
)
{
if
(
arrivalVo
.
getBookRecordId
()
!=
null
)
{
updateBookRecordStatus
(
arrivalVo
.
getBookRecordId
());
updateBookRecordStatus
(
arrivalVo
.
getBookRecordId
()
,
2
);
}
}
...
@@ -192,10 +192,15 @@ public class VehicleActiveService {
...
@@ -192,10 +192,15 @@ public class VehicleActiveService {
}
}
}
}
public
void
updateBookRecordStatus
(
Integer
bookRecordId
)
{
public
void
updateBookRecordStatus
(
Integer
bookRecordId
,
Integer
type
)
{
VehicleBookRecord
vehicleBookRecord
=
vehicleBookRecordBiz
.
selectById
(
bookRecordId
);
VehicleBookRecord
vehicleBookRecord
=
vehicleBookRecordBiz
.
selectById
(
bookRecordId
);
if
(
vehicleBookRecord
!=
null
)
{
if
(
vehicleBookRecord
!=
null
)
{
vehicleBookRecord
.
setStatus
(
VehicleBookRecordStatus
.
LIFTED
.
getCode
());
vehicleBookRecord
.
setStatus
(
VehicleBookRecordStatus
.
LIFTED
.
getCode
());
if
(
type
==
1
)
{
vehicleBookRecord
.
setActualStartDate
(
new
Date
());
}
else
{
vehicleBookRecord
.
setActualEndDate
(
new
Date
());
}
vehicleBookRecordBiz
.
updateSelectiveByIdRe
(
vehicleBookRecord
);
vehicleBookRecordBiz
.
updateSelectiveByIdRe
(
vehicleBookRecord
);
}
else
{
}
else
{
throw
new
BaseException
(
ResCode
.
VEHICLE_BOOK_RECORD_IS_NOT_EXIST
.
getDesc
(),
throw
new
BaseException
(
ResCode
.
VEHICLE_BOOK_RECORD_IS_NOT_EXIST
.
getDesc
(),
...
...
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