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
ffa8b15d
Commit
ffa8b15d
authored
Dec 26, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev
parents
41f91194
2d678a89
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
127 additions
and
74 deletions
+127
-74
IUserService.java
.../com/github/wxiaoqi/security/auth/feign/IUserService.java
+1
-1
AppShareholderDetailBiz.java
...b/wxiaoqi/security/admin/biz/AppShareholderDetailBiz.java
+109
-56
AppUserAlipayBiz.java
...m/github/wxiaoqi/security/admin/biz/AppUserAlipayBiz.java
+1
-1
AppUserPositionTempBiz.java
...ub/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
+13
-9
AppShareholderDetailController.java
...rity/admin/rest/admin/AppShareholderDetailController.java
+2
-6
AppUserRest.java
...va/com/github/wxiaoqi/security/admin/rpc/AppUserRest.java
+1
-1
No files found.
ace-auth/ace-auth-server/src/main/java/com/github/wxiaoqi/security/auth/feign/IUserService.java
View file @
ffa8b15d
...
@@ -29,7 +29,7 @@ public interface IUserService {
...
@@ -29,7 +29,7 @@ public interface IUserService {
AppUserInfo
AppValidate
(
@RequestBody
JwtAuthenticationRequest
authenticationRequest
);
AppUserInfo
AppValidate
(
@RequestBody
JwtAuthenticationRequest
authenticationRequest
);
@RequestMapping
(
value
=
"/api/app/user/sendsms"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/api/app/user/sendsms"
,
method
=
RequestMethod
.
POST
)
public
JSONObject
sendsms
(
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"0"
)
Integer
type
,
@RequestParam
(
value
=
"pointList"
,
defaultValue
=
""
)
String
pointList
);
public
JSONObject
sendsms
(
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"0"
)
Integer
type
,
@RequestParam
(
value
=
"pointList"
,
defaultValue
=
""
)
String
pointList
);
@RequestMapping
(
value
=
"/api/app/user/register"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/api/app/user/register"
,
method
=
RequestMethod
.
POST
)
public
JSONObject
register
(
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
public
JSONObject
register
(
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
@RequestParam
(
value
=
"mobilecode"
,
defaultValue
=
""
)
String
mobilecode
,
@RequestParam
(
value
=
"mobilecode"
,
defaultValue
=
""
)
String
mobilecode
,
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppShareholderDetailBiz.java
View file @
ffa8b15d
This diff is collapsed.
Click to expand it.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserAlipayBiz.java
View file @
ffa8b15d
...
@@ -111,7 +111,7 @@ public class AppUserAlipayBiz extends BaseBiz<AppUserAlipayMapper, AppUserAlipay
...
@@ -111,7 +111,7 @@ public class AppUserAlipayBiz extends BaseBiz<AppUserAlipayMapper, AppUserAlipay
public
void
save
(
AppUserAlipay
appUserAlipay
)
{
public
void
save
(
AppUserAlipay
appUserAlipay
)
{
Example
example
=
new
Example
(
AppUserAlipay
.
class
);
Example
example
=
new
Example
(
AppUserAlipay
.
class
);
example
.
createCriteria
().
andEqualTo
(
"userId"
,
appUserAlipay
.
getUserId
()).
andEqualTo
(
"isDel"
,
0
);
example
.
createCriteria
().
andEqualTo
(
"userId"
,
appUserAlipay
.
getUserId
()).
andEqualTo
(
"isDel"
,
0
)
.
andEqualTo
(
"txAlipay"
,
appUserAlipay
.
getTxAlipay
())
;
example
.
setOrderByClause
(
"is_default desc"
);
example
.
setOrderByClause
(
"is_default desc"
);
AppUserAlipay
oldValue
=
mapper
.
selectOneByExample
(
example
);
AppUserAlipay
oldValue
=
mapper
.
selectOneByExample
(
example
);
if
(
oldValue
!=
null
)
{
if
(
oldValue
!=
null
)
{
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
View file @
ffa8b15d
...
@@ -105,8 +105,11 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -105,8 +105,11 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
userPositionTemp
.
setCompanyName
(
companyName
);
userPositionTemp
.
setCompanyName
(
companyName
);
//编辑
//编辑
if
(
id
==
null
||
id
==
0
)
{
if
(
id
==
null
||
id
==
0
)
{
insertSelective
(
userPositionTemp
);
userPositionTemp
.
setIsQuit
(
0
);
int
ids
=
addUserFindId
(
userPositionTemp
).
getId
();
appUserPositionTempDTO
.
setId
(
ids
);
//记录表插入
//记录表插入
// appUserPositionTempDTO.setId();
appUserPositionChangeRecordBiz
.
addJoinJobRecord
(
appUserPositionTempDTO
,
updUserId
);
appUserPositionChangeRecordBiz
.
addJoinJobRecord
(
appUserPositionTempDTO
,
updUserId
);
}
else
{
}
else
{
updateSelectiveById
(
userPositionTemp
);
updateSelectiveById
(
userPositionTemp
);
...
@@ -194,7 +197,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -194,7 +197,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
return
dataVO
;
return
dataVO
;
}
}
public
Map
<
String
,
Object
>
importUserPostion
(
List
<
String
[]>
userPostionData
,
Integer
operatorId
)
{
public
Map
<
String
,
Object
>
importUserPostion
(
List
<
String
[]>
userPostionData
,
Integer
operatorId
)
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>(
2
);
Map
<
String
,
Object
>
result
=
new
HashMap
<>(
2
);
List
<
Map
<
String
,
Object
>>
errorResult
=
Lists
.
newArrayList
();
List
<
Map
<
String
,
Object
>>
errorResult
=
Lists
.
newArrayList
();
Map
<
String
,
Object
>
errorResultMap
;
Map
<
String
,
Object
>
errorResultMap
;
...
@@ -275,13 +278,14 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -275,13 +278,14 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
appUserPositionTemp
.
setId
(
id
);
appUserPositionTemp
.
setId
(
id
);
updateSelectiveById
(
appUserPositionTemp
);
updateSelectiveById
(
appUserPositionTemp
);
}
else
{
}
else
{
// insertSelective(appUserPositionTemp);
// insertSelective(appUserPositionTemp);
AppUserPositionTemp
appUserPositionTempNew
=
new
AppUserPositionTemp
();
AppUserPositionTemp
appUserPositionTempNew
=
new
AppUserPositionTemp
();
BeanUtils
.
copyProperties
(
appUserPositionTemp
,
appUserPositionTempNew
);
BeanUtils
.
copyProperties
(
appUserPositionTemp
,
appUserPositionTempNew
);
appUserPositionTempNew
=
addUserFindId
(
appUserPositionTemp
);
appUserPositionTempNew
=
addUserFindId
(
appUserPositionTemp
);
//记录表插入
//记录表插入
appUserPositionChangeRecordBiz
.
addJoinJobRecord
(
appUserPositionTempNew
,
operatorId
);
appUserPositionChangeRecordBiz
.
addJoinJobRecord
(
appUserPositionTempNew
,
operatorId
);
}
}
}
catch
(
BaseException
ex
)
{
}
catch
(
BaseException
ex
)
{
errorResultMap
=
new
HashMap
<>(
1
);
errorResultMap
=
new
HashMap
<>(
1
);
errorResultMap
.
put
(
"num"
,
i
);
errorResultMap
.
put
(
"num"
,
i
);
...
@@ -439,12 +443,12 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -439,12 +443,12 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
}
}
//身份变更
//身份变更
if
(
StaffChangeStatusEnum
.
IDENTITY_CHANE
.
getCode
()
==
changeStatus
)
{
if
(
StaffChangeStatusEnum
.
IDENTITY_CHANE
.
getCode
()
==
changeStatus
)
{
//不是离职状态下
//不是离职状态下
if
(
Objects
.
nonNull
(
userPositionTemp
.
getIsQuit
())
&&
userPositionTemp
.
getIsQuit
()!=
1
)
{
if
(
Objects
.
nonNull
(
userPositionTemp
.
getIsQuit
())
&&
userPositionTemp
.
getIsQuit
()
!=
1
)
{
postionId
=
Objects
.
nonNull
(
postionId
)
?
postionId
:
appUserPositionTempDTO
.
getPositionId
();
postionId
=
Objects
.
nonNull
(
postionId
)
?
postionId
:
appUserPositionTempDTO
.
getPositionId
();
//更改为股东身份
//更改为股东身份
loginBiz
.
updateUserPosition
(
appUserDetail
.
getUserid
(),
postionId
);
loginBiz
.
updateUserPosition
(
appUserDetail
.
getUserid
(),
postionId
);
}
}
}
}
}
}
}
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/admin/AppShareholderDetailController.java
View file @
ffa8b15d
...
@@ -51,12 +51,8 @@ public class AppShareholderDetailController {
...
@@ -51,12 +51,8 @@ public class AppShareholderDetailController {
return
ObjectRestResponse
.
createFailedResult
(
1001
,
"导入不能没数据!!!"
);
return
ObjectRestResponse
.
createFailedResult
(
1001
,
"导入不能没数据!!!"
);
}
}
// appShareholderData.remove(0);
// appShareholderData.remove(0);
try
{
return
ObjectRestResponse
.
succ
(
appShareholderDetailBiz
.
importShareholder
(
appShareholderData
,
operatorId
))
int
effectSize
=
appShareholderDetailBiz
.
importShareholder
(
appShareholderData
,
operatorId
);
;
return
ObjectRestResponse
.
succ
(
effectSize
);
}
catch
(
BaseException
ex
)
{
return
ObjectRestResponse
.
createDefaultFail
();
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
BaseException
(
e
);
throw
new
BaseException
(
e
);
}
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/AppUserRest.java
View file @
ffa8b15d
...
@@ -71,7 +71,7 @@ public class AppUserRest {
...
@@ -71,7 +71,7 @@ public class AppUserRest {
*/
*/
@RequestMapping
(
value
=
"/user/sendsms"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/user/sendsms"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
public
@ResponseBody
JSONObject
sendsms
(
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"0"
)
Integer
type
,
@RequestParam
(
value
=
"pointList"
)
String
pointList
){
JSONObject
sendsms
(
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"0"
)
Integer
type
,
@RequestParam
(
value
=
"pointList"
,
defaultValue
=
""
)
String
pointList
){
return
appPermissionService
.
sendSMS
(
username
,
type
,
pointList
);
return
appPermissionService
.
sendSMS
(
username
,
type
,
pointList
);
}
}
...
...
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