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
cd6a62f6
Commit
cd6a62f6
authored
Dec 23, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/saff_update_feature' into saff_update_feature
parents
d75cae77
86362a22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
AppShareholderDetailBiz.java
...b/wxiaoqi/security/admin/biz/AppShareholderDetailBiz.java
+19
-6
AppUserPositionTempBiz.java
...ub/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
+4
-5
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppShareholderDetailBiz.java
View file @
cd6a62f6
...
@@ -45,12 +45,12 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
...
@@ -45,12 +45,12 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
public
static
int
BRANCH_HEADQUARTERS_SHAREHOLDER
=
2
;
public
static
int
BRANCH_HEADQUARTERS_SHAREHOLDER
=
2
;
public
Integer
findShareholderByUserIdOrPhone
(
Integer
userId
,
String
phone
)
{
public
Integer
findShareholderByUserIdOrPhone
(
Integer
userId
,
String
phone
)
{
return
mapper
.
selectShareHolderByUserIdOrPhone
(
userId
,
phone
);
return
mapper
.
selectShareHolderByUserIdOrPhone
(
userId
,
phone
);
}
}
/**
/**
* 新增股东
* 新增股东
*
*
zuoyh
* @param appShareholderDetailDTO
* @param appShareholderDetailDTO
* @param updUserId
* @param updUserId
* @return
* @return
...
@@ -87,12 +87,17 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
...
@@ -87,12 +87,17 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
}
}
}
}
}
}
Integer
id
=
appShareholderDetailDTO
.
getId
()==
null
?
0
:
appShareholderDetailDTO
.
getId
();
Integer
id
=
appShareholderDetailDTO
.
getId
()
==
null
?
0
:
appShareholderDetailDTO
.
getId
();
//插入
BeanUtils
.
copyProperties
(
appShareholderDetailDTO
,
appShareholderDetail
);
BeanUtils
.
copyProperties
(
appShareholderDetailDTO
,
appShareholderDetail
);
appShareholderDetail
.
setPositionId
(
positionId
);
appShareholderDetail
.
setPositionId
(
positionId
);
insertSelective
(
appShareholderDetail
);
appShareholderDetailDTO
.
setUserId
(
userId
);
//插入
if
(
id
==
null
||
id
==
0
)
{
insertSelective
(
appShareholderDetail
);
//編輯
}
else
{
updateSelectiveById
(
appShareholderDetail
);
}
}
}
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
...
@@ -146,5 +151,13 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
...
@@ -146,5 +151,13 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
return
dataVO
;
return
dataVO
;
}
}
/**
* 批量导入
*/
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
View file @
cd6a62f6
...
@@ -112,7 +112,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -112,7 +112,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
updateSelectiveById
(
userPositionTemp
);
updateSelectiveById
(
userPositionTemp
);
}
}
if
(
userId
!=
0
)
{
if
(
userId
!=
0
)
{
//更改用户身份信息
//更改用户身份信息
detailBiz
.
updateUserPositionByUserId
(
userId
,
appUserPositionTempDTO
.
getPositionId
());
detailBiz
.
updateUserPositionByUserId
(
userId
,
appUserPositionTempDTO
.
getPositionId
());
}
}
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
...
@@ -324,7 +324,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -324,7 +324,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
return
;
return
;
}
}
Integer
postionId
=
appShareholderDetailBiz
.
findShareholderByUserIdOrPhone
(
null
,
phone
);
Integer
postionId
=
appShareholderDetailBiz
.
findShareholderByUserIdOrPhone
(
null
,
phone
);
if
(
Objects
.
isNull
(
postionId
))
{
if
(
Objects
.
isNull
(
postionId
))
{
Example
example
=
new
Example
(
AppUserPositionTemp
.
class
);
Example
example
=
new
Example
(
AppUserPositionTemp
.
class
);
example
.
createCriteria
().
andEqualTo
(
"phone"
,
phone
).
andEqualTo
(
"isDel"
,
0
);
example
.
createCriteria
().
andEqualTo
(
"phone"
,
phone
).
andEqualTo
(
"isDel"
,
0
);
List
<
AppUserPositionTemp
>
list
=
selectByExample
(
example
);
List
<
AppUserPositionTemp
>
list
=
selectByExample
(
example
);
...
@@ -344,8 +344,8 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -344,8 +344,8 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
log
.
info
(
"----用户---postionId===="
+
postionId
+
"----phone==="
+
phone
);
log
.
info
(
"----用户---postionId===="
+
postionId
+
"----phone==="
+
phone
);
detailBiz
.
updateUserPositionByUserId
(
userId
,
postionId
);
detailBiz
.
updateUserPositionByUserId
(
userId
,
postionId
);
}
}
}
else
{
}
else
{
detailBiz
.
updateUserPositionByUserId
(
userId
,
postionId
);
detailBiz
.
updateUserPositionByUserId
(
userId
,
postionId
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
...
@@ -460,7 +460,6 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
...
@@ -460,7 +460,6 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
/**
/**
* 查询员工信息变更记录表
* 查询员工信息变更记录表
*/
*/
...
...
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