Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
37932601
Commit
37932601
authored
Apr 23, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug'
parent
cb886096
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
13 deletions
+36
-13
PersonAccountDto.java
...join/amos/boot/module/jxiop/api/dto/PersonAccountDto.java
+1
-1
UserMapperDto.java
...yeejoin/amos/boot/module/jxiop/api/dto/UserMapperDto.java
+28
-1
PersonAccount.java
...join/amos/boot/module/jxiop/api/entity/PersonAccount.java
+2
-2
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+5
-9
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/PersonAccountDto.java
View file @
37932601
...
@@ -25,7 +25,7 @@ public class PersonAccountDto extends BaseDto {
...
@@ -25,7 +25,7 @@ public class PersonAccountDto extends BaseDto {
@ApiModelProperty
(
value
=
"平台user_id"
)
@ApiModelProperty
(
value
=
"平台user_id"
)
private
String
userId
;
private
String
p
userId
;
@ApiModelProperty
(
value
=
"平台账号名称"
)
@ApiModelProperty
(
value
=
"平台账号名称"
)
private
String
accountName
;
private
String
accountName
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/UserMapperDto.java
View file @
37932601
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.CommonFile
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
/**
/**
* @description:
* @description:
* @author: tw
* @author: tw
...
@@ -12,7 +19,8 @@ public class UserMapperDto {
...
@@ -12,7 +19,8 @@ public class UserMapperDto {
private
String
sequenceNbr
;
private
String
sequenceNbr
;
//头像
//头像
private
String
headphoto
;
private
List
<
CommonFile
>
photo
;
private
String
headPhoto
;
//姓名
//姓名
private
String
name
;
private
String
name
;
//性别
//性别
...
@@ -25,4 +33,23 @@ public class UserMapperDto {
...
@@ -25,4 +33,23 @@ public class UserMapperDto {
private
String
postName
;
private
String
postName
;
//系统账户
//系统账户
private
String
accountName
;
private
String
accountName
;
public
String
getHeadPhoto
()
{
return
headPhoto
;
}
public
void
setHeadPhoto
(
String
headPhoto
)
{
this
.
headPhoto
=
headPhoto
;
this
.
photo
=
headPhoto
!=
null
?
JSON
.
parseArray
(
headPhoto
,
CommonFile
.
class
):
null
;
}
public
List
<
CommonFile
>
getPhoto
()
{
return
headPhoto
!=
null
?
JSON
.
parseArray
(
headPhoto
,
CommonFile
.
class
):
null
;
}
public
void
setPhoto
(
List
<
CommonFile
>
photo
)
{
this
.
photo
=
headPhoto
!=
null
?
JSON
.
parseArray
(
headPhoto
,
CommonFile
.
class
):
null
;
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/PersonAccount.java
View file @
37932601
...
@@ -29,8 +29,8 @@ public class PersonAccount extends BaseEntity {
...
@@ -29,8 +29,8 @@ public class PersonAccount extends BaseEntity {
/**
/**
* 平台user_id
* 平台user_id
*/
*/
@TableField
(
"user_id"
)
@TableField
(
"
p
user_id"
)
private
String
userId
;
private
String
p
userId
;
/**
/**
* 平台账号名称
* 平台账号名称
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
37932601
...
@@ -73,9 +73,6 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -73,9 +73,6 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
* */
* */
@Transactional
@Transactional
public
void
addPerson
(
PersonDto
model
,
HttpServletRequest
httpServletRequest
){
public
void
addPerson
(
PersonDto
model
,
HttpServletRequest
httpServletRequest
){
String
appKey
=
httpServletRequest
.
getHeader
(
"appKey"
);
String
product
=
httpServletRequest
.
getHeader
(
"product"
);
String
token
=
httpServletRequest
.
getHeader
(
"token"
);
//获取人员基本信息数据
//获取人员基本信息数据
PersonUser
personUser
=
model
.
getPersonUser
();
PersonUser
personUser
=
model
.
getPersonUser
();
...
@@ -146,16 +143,14 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -146,16 +143,14 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
personCertificateService
.
save
(
personCertificate
);
personCertificateService
.
save
(
personCertificate
);
//人员账号信息
//人员账号信息
personAccount
.
setPersonId
(
personBasic
.
getSequenceNbr
());
personAccount
.
setPersonId
(
personBasic
.
getSequenceNbr
());
personAccount
.
set
U
serId
(
agencyUserModel
.
getUserId
());
personAccount
.
set
Pu
serId
(
agencyUserModel
.
getUserId
());
personAccountService
.
save
(
personAccount
);
personAccountService
.
save
(
personAccount
);
}
}
@Transactional
@Transactional
public
PersonDto
updatePerson
(
PersonDto
model
,
HttpServletRequest
httpServletRequest
,
Long
sequenceNbr
)
{
public
PersonDto
updatePerson
(
PersonDto
model
,
HttpServletRequest
httpServletRequest
,
Long
sequenceNbr
)
{
String
appKey
=
httpServletRequest
.
getHeader
(
"appKey"
);
String
product
=
httpServletRequest
.
getHeader
(
"product"
);
String
token
=
httpServletRequest
.
getHeader
(
"token"
);
//获取人员基本信息数据
//获取人员基本信息数据
PersonUser
personUser
=
model
.
getPersonUser
();
PersonUser
personUser
=
model
.
getPersonUser
();
...
@@ -190,8 +185,9 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -190,8 +185,9 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
//账号
//账号
usd
.
setUserName
(
personAccount
.
getAccountName
());
usd
.
setUserName
(
personAccount
.
getAccountName
());
usd
.
setLockStatus
(
"UNLOCK"
);
usd
.
setLockStatus
(
"UNLOCK"
);
usd
.
setUserId
(
personAccount
.
getPuserId
());
//新增平台用户
//新增平台用户
AgencyUserModel
agencyUserModel
=
this
.
updateuser
(
personAccount
.
get
U
serId
(),
usd
);
AgencyUserModel
agencyUserModel
=
this
.
updateuser
(
personAccount
.
get
Pu
serId
(),
usd
);
//查询部门
//查询部门
DepartmentModel
departmentModel
=
null
;
DepartmentModel
departmentModel
=
null
;
if
(
personUser
.
getDepartmentId
()!=
null
){
if
(
personUser
.
getDepartmentId
()!=
null
){
...
@@ -278,7 +274,7 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -278,7 +274,7 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
List
<
PersonAccount
>
list
=
personAccountService
.
list
(
wrapper
);
List
<
PersonAccount
>
list
=
personAccountService
.
list
(
wrapper
);
List
<
String
>
userid
=
new
ArrayList
<>();
List
<
String
>
userid
=
new
ArrayList
<>();
for
(
PersonAccount
personAccount
:
list
)
{
for
(
PersonAccount
personAccount
:
list
)
{
userid
.
add
(
personAccount
.
get
U
serId
());
userid
.
add
(
personAccount
.
get
Pu
serId
());
}
}
//删除平台
//删除平台
this
.
deleuser
(
String
.
join
(
","
,
userid
));
this
.
deleuser
(
String
.
join
(
","
,
userid
));
...
...
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