Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
3304f86e
Commit
3304f86e
authored
Jul 04, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加好友数限制
parent
61fcd493
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
QwFriendLimitCountUtil.java
...ic/haoban/manage/service/util/QwFriendLimitCountUtil.java
+42
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/util/QwFriendLimitCountUtil.java
0 → 100644
View file @
3304f86e
package
com
.
gic
.
haoban
.
manage
.
service
.
util
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.enterprise.service.CustomSettingApiService
;
@Component
public
class
QwFriendLimitCountUtil
{
private
static
CustomSettingApiService
customSettingApiService
;
@Autowired
public
void
setCustomSettingApiService
(
CustomSettingApiService
customSettingApiService
)
{
QwFriendLimitCountUtil
.
customSettingApiService
=
customSettingApiService
;
}
// 是否认证
public
static
int
getLimit
(
boolean
regFlag
)
{
String
tableName
=
"tab_gic_map"
;
JSONObject
searchParamMap
=
new
JSONObject
();
int
defaultCount
=
200
;
String
key
=
"hm_add_limit_count_1"
;
if
(
regFlag
)
{
key
=
"hm_add_limit_count_2"
;
defaultCount
=
500
;
}
searchParamMap
.
put
(
"key"
,
key
);
ServiceResponse
<
Map
<
String
,
Object
>>
resp
=
customSettingApiService
.
getDetail
(
tableName
,
searchParamMap
.
toJSONString
());
if
(
resp
.
isSuccess
()
&&
null
!=
resp
.
getResult
())
{
int
count
=
Integer
.
valueOf
(
resp
.
getResult
().
get
(
"value"
).
toString
());
return
count
;
}
return
defaultCount
;
}
}
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