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
70d905c0
Commit
70d905c0
authored
Dec 12, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
d9de7705
d4ece992
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
AuthController.java
...thub/wxiaoqi/security/auth/controller/AuthController.java
+15
-2
AppPermissionService.java
...aoqi/security/admin/rpc/service/AppPermissionService.java
+2
-1
ActivityPopularizeBiz.java
...com/xxfc/platform/activity/biz/ActivityPopularizeBiz.java
+1
-1
ActivityAttendanceRecordMapper.xml
.../main/resources/mapper/ActivityAttendanceRecordMapper.xml
+1
-1
No files found.
ace-auth/ace-auth-server/src/main/java/com/github/wxiaoqi/security/auth/controller/AuthController.java
View file @
70d905c0
...
@@ -174,6 +174,13 @@ public class AuthController {
...
@@ -174,6 +174,13 @@ public class AuthController {
return
data
;
return
data
;
}
}
@RequestMapping
(
value
=
"other/sendsms"
,
method
=
RequestMethod
.
GET
)
public
JSONObject
otherSendsms
(
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"0"
)
Integer
type
)
throws
Exception
{
log
.
info
(
username
+
"----require sendsms..."
);
return
appAuthService
.
sendsms
(
username
,
type
);
}
@RequestMapping
(
value
=
"/otherLogin"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/otherLogin"
,
method
=
RequestMethod
.
POST
)
public
JSONObject
otherLogin
(
@RequestBody
Map
<
String
,
Object
>
params
)
throws
Exception
{
public
JSONObject
otherLogin
(
@RequestBody
Map
<
String
,
Object
>
params
)
throws
Exception
{
log
.
info
(
"----require otherLogin..."
);
log
.
info
(
"----require otherLogin..."
);
...
@@ -188,8 +195,14 @@ public class AuthController {
...
@@ -188,8 +195,14 @@ public class AuthController {
if
(
result
==
null
){
if
(
result
==
null
){
data
.
put
(
"status"
,
1001
);
data
.
put
(
"status"
,
1001
);
}
else
{
}
else
{
Integer
positionId
=
result
.
getInteger
(
"positionId"
)==
null
?
0
:
result
.
getInteger
(
"positionId"
);
if
(
positionId
==
4
||
positionId
==
1
||
positionId
==
2
||
positionId
==
3
){
String
token
=
appAuthService
.
getToken
(
username
,
result
.
getInteger
(
"userId"
));
String
token
=
appAuthService
.
getToken
(
username
,
result
.
getInteger
(
"userId"
));
data
.
put
(
"token"
,
token
);
data
.
put
(
"token"
,
token
);
}
else
{
data
.
put
(
"status"
,
ResultCode
.
FAILED_CODE
);
data
.
put
(
"message"
,
"非内部员工,无法登录"
);
}
}
}
}
}
return
data
;
return
data
;
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/service/AppPermissionService.java
View file @
70d905c0
...
@@ -194,7 +194,7 @@ public class AppPermissionService {
...
@@ -194,7 +194,7 @@ public class AppPermissionService {
}
}
// String sms = PassportUtil.SendSMS(phone, SystemConfig.SENDSMS_TITLE);
// String sms = PassportUtil.SendSMS(phone, SystemConfig.SENDSMS_TITLE);
String
mobilecode
=
null
;
String
mobilecode
=
null
;
JSONObject
data
=
thirdFeign
.
send
(
"13265487972"
);
JSONObject
data
=
thirdFeign
.
send
(
phone
);
if
(
data
!=
null
&&
data
.
getInteger
(
"status"
)
==
ResultCode
.
SUCCESS_CODE
)
{
if
(
data
!=
null
&&
data
.
getInteger
(
"status"
)
==
ResultCode
.
SUCCESS_CODE
)
{
mobilecode
=
data
.
getString
(
"data"
);
mobilecode
=
data
.
getString
(
"data"
);
}
}
...
@@ -444,6 +444,7 @@ public class AppPermissionService {
...
@@ -444,6 +444,7 @@ public class AppPermissionService {
data
.
put
(
"userId"
,
userid
);
data
.
put
(
"userId"
,
userid
);
data
.
put
(
"imUserId"
,
userVo
.
getImUserid
());
data
.
put
(
"imUserId"
,
userVo
.
getImUserid
());
data
.
put
(
"code"
,
userVo
.
getCode
());
data
.
put
(
"code"
,
userVo
.
getCode
());
data
.
put
(
"positionId"
,
userVo
.
getPositionId
());
//更新登录时间 和 ip
//更新登录时间 和 ip
String
clientIp
=
getIp
();
String
clientIp
=
getIp
();
appUserLoginBiz
.
updateLoginInfo
(
userid
,
clientIp
);
appUserLoginBiz
.
updateLoginInfo
(
userid
,
clientIp
);
...
...
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/ActivityPopularizeBiz.java
View file @
70d905c0
...
@@ -106,7 +106,7 @@ public class ActivityPopularizeBiz extends BaseBiz<ActivityPopularizeMapper, Act
...
@@ -106,7 +106,7 @@ public class ActivityPopularizeBiz extends BaseBiz<ActivityPopularizeMapper, Act
if
(
jsonArray
!=
null
)
{
if
(
jsonArray
!=
null
)
{
JSONObject
jsonObject1
=
jsonArray
.
getJSONObject
(
num
-
1
);
JSONObject
jsonObject1
=
jsonArray
.
getJSONObject
(
num
-
1
);
if
(
jsonObject1
!=
null
)
{
if
(
jsonObject1
!=
null
)
{
double
amountString
=
jsonObject1
.
get
Integer
(
"amount"
);
double
amountString
=
jsonObject1
.
get
Double
(
"amount"
);
amount
=
amount
+
amountString
;
amount
=
amount
+
amountString
;
}
}
}
}
...
...
xx-activity/xx-activity-server/src/main/resources/mapper/ActivityAttendanceRecordMapper.xml
View file @
70d905c0
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
from activity_popularize_relation where `popularize_id`=#{activityId}
from activity_popularize_relation where `popularize_id`=#{activityId}
group by major_user_id) as `apr` on apr.major_user_id = apu.user_id
group by major_user_id) as `apr` on apr.major_user_id = apu.user_id
left join (select `user_id`, `activity_id`, group_concat(`prize_name`) as `prizes`
left join (select `user_id`, `activity_id`, group_concat(`prize_name`) as `prizes`
from `activity_winning_record` where `activity_id`=#{activityId}
from `activity_winning_record` where `activity_id`=#{activityId}
and `has_winning`=1
group by user_id, `activity_id`) as `awr`
group by user_id, `activity_id`) as `awr`
on awr.user_id = apu.user_id and awr.activity_id = apu.popularize_id
on awr.user_id = apu.user_id and awr.activity_id = apu.popularize_id
order by apu.current_progress desc
order by apu.current_progress desc
...
...
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