Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
9999e5fd
Commit
9999e5fd
authored
Mar 26, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加短信通知
parent
185c63bd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
UserEmpowerInterceptor.java
...s/boot/module/hygf/api/config/UserEmpowerInterceptor.java
+4
-1
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+1
-1
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+8
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/config/UserEmpowerInterceptor.java
View file @
9999e5fd
...
...
@@ -234,11 +234,14 @@ public class UserEmpowerInterceptor implements Interceptor {
}
}
else
{
List
<
String
>
data
=
stdUserEmpower
.
getAmosOrgCode
();
List
<
String
>
notdata
=
stdUserEmpower
.
getEliminateAmosOrgCode
();
List
<
String
>
wnotdata
=
stdUserEmpower
.
getNOeliminateAmosOrgCode
();
if
(
filed
!=
null
&&
filed
.
length
>
0
){
for
(
int
i
=
0
;
i
<
filed
.
length
;
i
++)
{
String
sq
=
" "
;
sq
=
getCondition
(
filed
[
i
],
fileCondition
[
i
],
data
);
sq
=
getCondition
td
(
filed
[
i
],
fileCondition
[
i
],
data
,
notdata
,
wnot
data
);
sql
.
add
(
sq
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
9999e5fd
...
...
@@ -654,7 +654,7 @@ public class JpStationController extends BaseController {
map
.
put
(
"id"
,
jpStation
.
getSequenceNbr
());
map
.
put
(
"name"
,
jpStation
.
getName
());
map
.
put
(
"address"
,
jpStation
.
getAddress
());
map
.
put
(
"fullhour"
,
format2
.
format
(
dayGenerate
.
getFullhour
())
);
map
.
put
(
"fullhour"
,
dayGenerate
.
getFullhour
()!=
null
?
format2
.
format
(
dayGenerate
.
getFullhour
()):
0
);
li
.
add
(
map
);
break
;
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
View file @
9999e5fd
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
...
@@ -578,6 +579,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
params
.
put
(
"smsCode"
,
SMSTEMPCODENO
);
approvalStatue
=
"任务明细:"
+
DealerReviewEnum
.
经销商管理员审核
.
getName
()+
"审核不通过"
;
FeignClientResult
<
SmsRecordModel
>
date
=
Systemctl
.
smsClient
.
sendCommonSms
(
params
);
System
.
out
.
println
(
"短信通知============================"
+
JSON
.
toJSONString
(
date
));
}
else
{
// 1. 更新经销商状态
unitInfo
.
setAuditStatus
(
2
);
...
...
@@ -623,6 +625,12 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
// Privilege.agencyUserClient.unlockUsers(unitInfo.getAdminUserId());
approvalStatue
=
"任务明细:"
+
DealerReviewEnum
.
经销商管理员审核
.
getName
()+
"审核通过"
;
HashMap
<
String
,
String
>
params
=
new
HashMap
<>(
3
);
params
.
put
(
"code"
,
"通过"
);
params
.
put
(
"mobile"
,
unitInfo
.
getAdminPhone
());
params
.
put
(
"smsCode"
,
SMSTEMPCODEYES
);
FeignClientResult
<
SmsRecordModel
>
date
=
Systemctl
.
smsClient
.
sendCommonSms
(
params
);
System
.
out
.
println
(
"短信通知============================"
+
JSON
.
toJSONString
(
date
));
}
}
...
...
@@ -649,11 +657,6 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
this
.
saveOrUpdate
(
unitInfo
);
HashMap
<
String
,
String
>
params
=
new
HashMap
<>(
3
);
params
.
put
(
"code"
,
"通过"
);
params
.
put
(
"mobile"
,
unitInfo
.
getAdminPhone
());
params
.
put
(
"smsCode"
,
SMSTEMPCODEYES
);
FeignClientResult
<
SmsRecordModel
>
date
=
Systemctl
.
smsClient
.
sendCommonSms
(
params
);
...
...
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