Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
0e38684e
Commit
0e38684e
authored
Jan 22, 2025
by
chenyuxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 接口提示语调整+降低日志等级
parent
0283cec0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
WxConfig.java
...a/com/yifu/cloud/plus/v1/yifu/salary/config/WxConfig.java
+1
-1
TInsuranceUnpurchaseApplyController.java
...alary/controller/TInsuranceUnpurchaseApplyController.java
+4
-3
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/config/WxConfig.java
View file @
0e38684e
...
@@ -128,7 +128,7 @@ public class WxConfig {
...
@@ -128,7 +128,7 @@ public class WxConfig {
HttpEntity
<
String
>
requestEntity
=
new
HttpEntity
<>(
gson
.
toJson
(
requestMap
),
headers
);
HttpEntity
<
String
>
requestEntity
=
new
HttpEntity
<>(
gson
.
toJson
(
requestMap
),
headers
);
String
accessToken
=
getAccessToken
(
restTemplate
);
String
accessToken
=
getAccessToken
(
restTemplate
);
ResponseEntity
<
String
>
responseEntity
=
restTemplate
.
postForEntity
(
String
.
format
(
SecurityConstants
.
WX_SEND_MESSAGE
,
accessToken
),
requestEntity
,
String
.
class
);
ResponseEntity
<
String
>
responseEntity
=
restTemplate
.
postForEntity
(
String
.
format
(
SecurityConstants
.
WX_SEND_MESSAGE
,
accessToken
),
requestEntity
,
String
.
class
);
log
.
error
(
"发企业微信===返回:{}"
,
JSON
.
toJSONString
(
responseEntity
));
log
.
debug
(
"发企业微信===返回:{}"
,
JSON
.
toJSONString
(
responseEntity
));
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
responseEntity
));
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
responseEntity
));
JSONObject
jsonBody
=
jsonObject
.
getJSONObject
(
"body"
);
JSONObject
jsonBody
=
jsonObject
.
getJSONObject
(
"body"
);
if
(
jsonBody
!=
null
)
{
if
(
jsonBody
!=
null
)
{
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TInsuranceUnpurchaseApplyController.java
View file @
0e38684e
...
@@ -180,8 +180,8 @@ public class TInsuranceUnpurchaseApplyController {
...
@@ -180,8 +180,8 @@ public class TInsuranceUnpurchaseApplyController {
try
{
try
{
requestId
=
RedisDistributedLock
.
getLock
(
redisKey
,
"10"
);
requestId
=
RedisDistributedLock
.
getLock
(
redisKey
,
"10"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"
获取锁失败:{
}"
,
e
);
log
.
error
(
"
含风险项目不购买申请--提交审核--获取锁失败:{0
}"
,
e
);
return
R
.
failed
(
ResultConstants
.
NO_GETLOCK_DATA
);
return
R
.
failed
(
ResultConstants
.
NO_GETLOCK_DATA
_SEARCH
);
}
}
if
(
Common
.
isNotKong
(
requestId
))
{
if
(
Common
.
isNotKong
(
requestId
))
{
R
<
String
>
saveR
=
tInsuranceUnpurchaseApplyService
.
commitOne
(
id
,
user
);
R
<
String
>
saveR
=
tInsuranceUnpurchaseApplyService
.
commitOne
(
id
,
user
);
...
@@ -189,7 +189,7 @@ public class TInsuranceUnpurchaseApplyController {
...
@@ -189,7 +189,7 @@ public class TInsuranceUnpurchaseApplyController {
RedisDistributedLock
.
unlock
(
redisKey
,
requestId
);
RedisDistributedLock
.
unlock
(
redisKey
,
requestId
);
return
saveR
;
return
saveR
;
}
else
{
}
else
{
return
R
.
failed
(
ResultConstants
.
NO_GETLOCK_DATA
);
return
R
.
failed
(
ResultConstants
.
NO_GETLOCK_DATA
_SEARCH
);
}
}
}
else
{
}
else
{
return
R
.
failed
(
"请选择提交的记录!"
);
return
R
.
failed
(
"请选择提交的记录!"
);
...
@@ -228,6 +228,7 @@ public class TInsuranceUnpurchaseApplyController {
...
@@ -228,6 +228,7 @@ public class TInsuranceUnpurchaseApplyController {
try
{
try
{
requestId
=
RedisDistributedLock
.
tryLockAndTime
(
redisKey
,
"10"
);
requestId
=
RedisDistributedLock
.
tryLockAndTime
(
redisKey
,
"10"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"含风险项目不购买申请--审核操作--获取锁失败:{0}"
,
e
);
return
R
.
failed
(
ResultConstants
.
NO_GETLOCK_DATA
);
return
R
.
failed
(
ResultConstants
.
NO_GETLOCK_DATA
);
}
}
if
(
Common
.
isNotKong
(
requestId
))
{
if
(
Common
.
isNotKong
(
requestId
))
{
...
...
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