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
4c9e28eb
Commit
4c9e28eb
authored
Dec 12, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
509d2f0f
d5ae965d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
7 deletions
+37
-7
AuthController.java
...thub/wxiaoqi/security/auth/controller/AuthController.java
+15
-2
BaseController.java
...m/github/wxiaoqi/security/common/rest/BaseController.java
+1
-1
AppStaffUserController.java
...b/wxiaoqi/security/admin/rest/AppStaffUserController.java
+18
-2
AppPermissionService.java
...aoqi/security/admin/rpc/service/AppPermissionService.java
+2
-1
ActivityPopularizeBiz.java
...com/xxfc/platform/activity/biz/ActivityPopularizeBiz.java
+1
-1
No files found.
ace-auth/ace-auth-server/src/main/java/com/github/wxiaoqi/security/auth/controller/AuthController.java
View file @
4c9e28eb
...
...
@@ -174,6 +174,13 @@ public class AuthController {
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
)
public
JSONObject
otherLogin
(
@RequestBody
Map
<
String
,
Object
>
params
)
throws
Exception
{
log
.
info
(
"----require otherLogin..."
);
...
...
@@ -188,8 +195,14 @@ public class AuthController {
if
(
result
==
null
){
data
.
put
(
"status"
,
1001
);
}
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"
));
data
.
put
(
"token"
,
token
);
}
else
{
data
.
put
(
"status"
,
ResultCode
.
FAILED_CODE
);
data
.
put
(
"message"
,
"登录失败"
);
}
}
}
return
data
;
...
...
ace-common/src/main/java/com/github/wxiaoqi/security/common/rest/BaseController.java
View file @
4c9e28eb
...
...
@@ -50,7 +50,7 @@ public class BaseController<Biz extends BaseBiz,Entity> extends CommonBaseContro
@ApiOperation
(
"修改"
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@ResponseBody
public
ObjectRestResponse
<
Entity
>
update
(
@RequestBody
Entity
entity
){
public
ObjectRestResponse
<
Entity
>
update
(
@RequestBody
Entity
entity
)
throws
Exception
{
baseBiz
.
updateSelectiveById
(
entity
);
return
new
ObjectRestResponse
<
Entity
>();
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppStaffUserController.java
View file @
4c9e28eb
...
...
@@ -6,6 +6,7 @@ import com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO;
import
com.github.wxiaoqi.security.auth.client.config.UserAuthConfig
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
...
...
@@ -13,7 +14,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
...
...
@@ -48,9 +48,12 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
@PostMapping
(
value
=
""
)
public
ObjectRestResponse
<
AppStaffUser
>
add
(
@RequestBody
AppStaffUser
appStaffUser
)
throws
Exception
{
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
if
(
appStaffUser
.
getPhone
().
equals
(
userDTO
.
getUsername
()))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"不能绑定本人为客户"
);
}
appStaffUser
.
setSuId
(
userDTO
.
getUserid
());
baseBiz
.
insertSelective
(
appStaffUser
);
return
new
ObjectRestResponse
<
AppStaffUser
>
();
return
ObjectRestResponse
.
succ
();
}
@ApiOperation
(
"查询一条"
)
...
...
@@ -74,4 +77,17 @@ public class AppStaffUserController extends BaseController<AppStaffUserBiz, AppS
return
ObjectRestResponse
.
succ
();
}
@Override
@ApiOperation
(
"修改"
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
PUT
)
@ResponseBody
public
ObjectRestResponse
update
(
@RequestBody
AppStaffUser
appStaffUser
)
throws
Exception
{
AppUserDTO
userDTO
=
(
AppUserDTO
)
publicController
.
userDetailByToken
(
authConfig
.
getToken
(
request
)).
getData
();
if
(
appStaffUser
.
getPhone
().
equals
(
userDTO
.
getUsername
()))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"不能绑定本人为客户"
);
}
baseBiz
.
updateSelectiveById
(
appStaffUser
);
return
ObjectRestResponse
.
succ
();
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/service/AppPermissionService.java
View file @
4c9e28eb
...
...
@@ -194,7 +194,7 @@ public class AppPermissionService {
}
// String sms = PassportUtil.SendSMS(phone, SystemConfig.SENDSMS_TITLE);
String
mobilecode
=
null
;
JSONObject
data
=
thirdFeign
.
send
(
"13265487972"
);
JSONObject
data
=
thirdFeign
.
send
(
phone
);
if
(
data
!=
null
&&
data
.
getInteger
(
"status"
)
==
ResultCode
.
SUCCESS_CODE
)
{
mobilecode
=
data
.
getString
(
"data"
);
}
...
...
@@ -444,6 +444,7 @@ public class AppPermissionService {
data
.
put
(
"userId"
,
userid
);
data
.
put
(
"imUserId"
,
userVo
.
getImUserid
());
data
.
put
(
"code"
,
userVo
.
getCode
());
data
.
put
(
"positionId"
,
userVo
.
getPositionId
());
//更新登录时间 和 ip
String
clientIp
=
getIp
();
appUserLoginBiz
.
updateLoginInfo
(
userid
,
clientIp
);
...
...
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/ActivityPopularizeBiz.java
View file @
4c9e28eb
...
...
@@ -150,7 +150,7 @@ public class ActivityPopularizeBiz extends BaseBiz<ActivityPopularizeMapper, Act
activityPopularizeUser
.
setCurrentProgress
(
bigDecimal
);
popularizeUserBiz
.
updateSelectiveById
(
activityPopularizeUser
);
//任务没有完成
if
(
SYS_TRUE
.
equals
(
activityPopularizeUser
.
getStatus
()))
{
if
(
!
SYS_TRUE
.
equals
(
activityPopularizeUser
.
getStatus
()))
{
// AwardDTO awardDTO = JSONUtil.toBean(activityPopularize.getValue(), AwardDTO.class);
//检查是否满足奖励
if
(
relationBiz
.
selectList
(
new
ActivityPopularizeRelation
()
{{
...
...
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