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
0a777559
Commit
0a777559
authored
Dec 26, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
53190c5d
989a748d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
9 deletions
+21
-9
AppShareholderDetailBiz.java
...b/wxiaoqi/security/admin/biz/AppShareholderDetailBiz.java
+17
-6
AppShareholderDetailMapper.java
...oqi/security/admin/mapper/AppShareholderDetailMapper.java
+1
-1
AppShareholderDetailController.java
...rity/admin/rest/admin/AppShareholderDetailController.java
+1
-0
AppShareholderDetailMapper.xml
.../src/main/resources/mapper/AppShareholderDetailMapper.xml
+2
-2
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppShareholderDetailBiz.java
View file @
0a777559
...
@@ -96,7 +96,7 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
...
@@ -96,7 +96,7 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
Integer
companyId
=
Integer
.
valueOf
(
company
);
Integer
companyId
=
Integer
.
valueOf
(
company
);
if
(!(
companyId
!=
null
&&
companyId
>
0
))
if
(!(
companyId
!=
null
&&
companyId
>
0
))
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"分公司不存在"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"分公司不存在"
);
CompanyDetail
branchCompany
=
vehicleFeign
.
getCompanyDetail
(
companyId
).
getData
();
CompanyDetail
branchCompany
=
vehicleFeign
.
getCompanyDetail
(
companyId
).
getData
();
if
(
branchCompany
==
null
)
{
if
(
branchCompany
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"分公司不存在"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"分公司不存在"
);
...
@@ -190,7 +190,7 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
...
@@ -190,7 +190,7 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
for
(
String
company
:
appShareholderDetailDTO
.
getCompanyList
())
{
for
(
String
company
:
appShareholderDetailDTO
.
getCompanyList
())
{
Integer
companyId
=
Integer
.
valueOf
(
company
);
Integer
companyId
=
Integer
.
valueOf
(
company
);
//更新股东表 持股状态改为已退股
//更新股东表 持股状态改为已退股
mapper
.
updShareHolderIsQuit
(
appShareholderDetailDTO
.
getPhone
(),
companyId
);
mapper
.
updShareHolderIsQuit
(
appShareholderDetailDTO
.
getPhone
(),
companyId
,
1
);
AppShareholderDetail
updAppShareholderDetail
=
selectById
(
appShareholderDetailDTO
);
AppShareholderDetail
updAppShareholderDetail
=
selectById
(
appShareholderDetailDTO
);
//查询股东表,是否为总部股东
//查询股东表,是否为总部股东
Integer
oldPositionId
=
null
;
Integer
oldPositionId
=
null
;
...
@@ -216,13 +216,16 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
...
@@ -216,13 +216,16 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
}
}
//复股操作
//复股操作
}
else
if
(
appShareholderDetailDTO
.
getChangeState
().
equals
(
3
))
{
}
else
if
(
appShareholderDetailDTO
.
getChangeState
().
equals
(
3
))
{
if
(
appShareholderDetailDTO
.
getPhone
()
==
null
)
{
if
(
appShareholderDetailDTO
.
getPhone
()
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"请输入股东号码"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"请输入股东号码"
);
}
}
if
(
appShareholderDetailDTO
.
getCompanyList
()
==
null
)
{
if
(
appShareholderDetailDTO
.
getCompanyList
()
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"请输入复股公司"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"请输入复股公司"
);
}
}
for
(
String
company
:
appShareholderDetailDTO
.
getCompanyList
())
{
for
(
String
company
:
appShareholderDetailDTO
.
getCompanyList
())
{
Integer
companyId
=
Integer
.
valueOf
(
company
);
AppShareholderDetail
updAppShareholderDetail
=
selectById
(
appShareholderDetail
);
AppShareholderDetail
updAppShareholderDetail
=
selectById
(
appShareholderDetail
);
//查询股东表,是否为总部股东
//查询股东表,是否为总部股东
Integer
oldPositionId
=
mapper
.
selectShareHolderByUserIdOrPhone
(
updAppShareholderDetail
.
getUserId
(),
updAppShareholderDetail
.
getPhone
());
Integer
oldPositionId
=
mapper
.
selectShareHolderByUserIdOrPhone
(
updAppShareholderDetail
.
getUserId
(),
updAppShareholderDetail
.
getPhone
());
...
@@ -234,18 +237,25 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
...
@@ -234,18 +237,25 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
userId
=
userLogin
.
getId
();
userId
=
userLogin
.
getId
();
//关联查询detail表 获取身份
//关联查询detail表 获取身份
AppUserDetail
appUserDetail
=
detailBiz
.
checkeIsAppUser
(
userId
);
AppUserDetail
appUserDetail
=
detailBiz
.
checkeIsAppUser
(
userId
);
CompanyDetail
branchCompany
=
vehicleFeign
.
getCompanyDetail
(
companyId
).
getData
();
Integer
positionId
=
branchCompany
.
getId
().
equals
(
1
)
?
HEADQUARTERS_SHAREHOLDER
:
BRANCH_HEADQUARTERS_SHAREHOLDER
;
if
(
oldPositionId
==
null
)
{
if
(
oldPositionId
==
null
)
{
detailBiz
.
updateUserPositionByUserId
(
userId
,
appShareholderDetail
.
getPositionId
()
);
detailBiz
.
updateUserPositionByUserId
(
userId
,
positionId
);
}
else
{
}
else
{
if
(!(
appUserDetail
.
getPositionId
().
equals
(
1
)))
{
if
(!(
appUserDetail
.
getPositionId
().
equals
(
1
)))
{
detailBiz
.
updateUserPositionByUserId
(
userId
,
appShareholderDetail
.
getPositionId
());
if
(
oldPositionId
>
positionId
)
{
detailBiz
.
updateUserPositionByUserId
(
userId
,
positionId
);
}
else
{
detailBiz
.
updateUserPositionByUserId
(
userId
,
oldPositionId
);
}
}
}
}
}
}
}
appShareholderDetail
.
setIsQuit
(
SHAREHOLDERDE_IS_TRUE
);
appShareholderDetail
.
setIsQuit
(
SHAREHOLDERDE_IS_TRUE
);
//修改
//修改
Integer
companyId
=
Integer
.
valueOf
(
company
);
mapper
.
updShareHolderIsQuit
(
appShareholderDetailDTO
.
getPhone
(),
companyId
,
0
);
updateSelectiveById
(
appShareholderDetail
);
//
updateSelectiveById(appShareholderDetail);
appShareholderDetailChangeRecordBiz
.
addAppShareholderDetailChangeRecord
(
updAppShareholderDetail
,
updUserId
,
SHAREHOLDERDE_IS_TRUE
);
appShareholderDetailChangeRecordBiz
.
addAppShareholderDetailChangeRecord
(
updAppShareholderDetail
,
updUserId
,
SHAREHOLDERDE_IS_TRUE
);
}
}
}
}
...
@@ -475,4 +485,5 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
...
@@ -475,4 +485,5 @@ public class AppShareholderDetailBiz extends BaseBiz<AppShareholderDetailMapper,
result
.
put
(
"exist"
,
exist
-
total
);
result
.
put
(
"exist"
,
exist
-
total
);
return
result
;
return
result
;
}
}
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/mapper/AppShareholderDetailMapper.java
View file @
0a777559
...
@@ -24,7 +24,7 @@ public interface AppShareholderDetailMapper extends Mapper<AppShareholderDetail>
...
@@ -24,7 +24,7 @@ public interface AppShareholderDetailMapper extends Mapper<AppShareholderDetail>
@Param
(
"companyId"
)
Integer
companyId
);
@Param
(
"companyId"
)
Integer
companyId
);
void
updShareHolderIsQuit
(
@Param
(
"phone"
)
String
phone
,
@Param
(
"companyId"
)
Integer
companyId
);
void
updShareHolderIsQuit
(
@Param
(
"phone"
)
String
phone
,
@Param
(
"companyId"
)
Integer
companyId
,
@Param
(
"isQuit"
)
Integer
isQuit
);
Integer
selectMaxShareHolderByUserIdOrPhone
(
Integer
selectMaxShareHolderByUserIdOrPhone
(
@Param
(
"phone"
)
String
phone
,
@Param
(
"phone"
)
String
phone
,
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/admin/AppShareholderDetailController.java
View file @
0a777559
...
@@ -112,4 +112,5 @@ public class AppShareholderDetailController {
...
@@ -112,4 +112,5 @@ public class AppShareholderDetailController {
}
}
}
}
ace-modules/ace-admin/src/main/resources/mapper/AppShareholderDetailMapper.xml
View file @
0a777559
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
<select
id=
"updShareHolderIsQuit"
resultType=
"com.github.wxiaoqi.security.admin.entity.AppShareholderDetail"
>
<select
id=
"updShareHolderIsQuit"
resultType=
"com.github.wxiaoqi.security.admin.entity.AppShareholderDetail"
>
UPDATE `app_shareholder_detail`
UPDATE `app_shareholder_detail`
SET
SET
<if
test=
"
phone
!=null"
>
<if
test=
"
isQuit
!=null"
>
`is_quit`=#{
phone
}
`is_quit`=#{
isQuit
}
</if>
</if>
WHERE
WHERE
1 = 1
1 = 1
...
...
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