Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
fe5cad41
Commit
fe5cad41
authored
Apr 22, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
短信初始化规则调整,只要有一条记录就符合条件
parent
320b36ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
EnterpriseSmsController.java
...gic/operation/web/controller/EnterpriseSmsController.java
+8
-14
No files found.
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/EnterpriseSmsController.java
View file @
fe5cad41
...
...
@@ -64,7 +64,9 @@ public class EnterpriseSmsController {
* @return com.gic.commons.webapi.reponse.RestResponse
*/
@RequestMapping
(
"/add-sms"
)
public
RestResponse
addSms
(
Integer
enterpriseId
,
String
smsSignId
,
String
smsSignText
,
int
useType
)
{
public
RestResponse
addSms
(
Integer
enterpriseId
,
String
smsSignId
,
String
smsSignText
,
Integer
useType
)
{
//写死,没有业务,无用。
useType
=
1
;
ServiceResponse
<
Void
>
smsResult
=
smsOuterApiService
.
saveEnterpriseSmsSign
(
enterpriseId
,
smsSignId
,
smsSignText
,
useType
);
if
(
smsResult
.
isSuccess
())
{
...
...
@@ -91,7 +93,9 @@ public class EnterpriseSmsController {
}
@RequestMapping
(
"/edit-sms"
)
public
RestResponse
editSms
(
Long
signId
,
String
smsSignId
,
String
smsSignText
,
int
useType
,
Integer
enterpriseId
)
{
public
RestResponse
editSms
(
Long
signId
,
String
smsSignId
,
String
smsSignText
,
Integer
useType
,
Integer
enterpriseId
)
{
//写死,没有业务,无用。
useType
=
1
;
return
ResultControllerUtils
.
commonResult
(
smsOuterApiService
.
editEnterpriseSmsSign
(
enterpriseId
,
signId
,
smsSignId
,
smsSignText
,
useType
));
}
...
...
@@ -147,19 +151,9 @@ public class EnterpriseSmsController {
Page
<
EnterpriseSmsSignDTO
>
page1
=
result
.
getResult
();
if
(
page1
!=
null
)
{
List
<
EnterpriseSmsSignDTO
>
list
=
page1
.
getResult
();
int
chinaCount
=
0
;
int
foreignCount
=
0
;
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
for
(
EnterpriseSmsSignDTO
dto
:
list
)
{
if
(
dto
.
getUseType
().
intValue
()
==
1
)
{
chinaCount
=
chinaCount
+
1
;
}
else
if
(
dto
.
getUseType
().
intValue
()
==
2
)
{
foreignCount
=
foreignCount
+
1
;
}
if
(
chinaCount
>
0
&&
foreignCount
>
0
)
{
return
true
;
}
}
//有一条数据就符合条件
return
true
;
}
}
}
...
...
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