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
2e7df8c6
Commit
2e7df8c6
authored
Apr 22, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加字段
parent
c3d8dfb2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
11 deletions
+30
-11
PersonAccountDto.java
...join/amos/boot/module/jxiop/api/dto/PersonAccountDto.java
+2
-3
PersonAccount.java
...join/amos/boot/module/jxiop/api/entity/PersonAccount.java
+6
-5
PersonBasicController.java
...ot/module/jxiop/biz/controller/PersonBasicController.java
+4
-3
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+18
-0
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 @
2e7df8c6
...
...
@@ -22,8 +22,7 @@ public class PersonAccountDto extends BaseDto {
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"数据创建时间"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"平台user_id"
)
private
Long
userId
;
...
...
@@ -60,5 +59,5 @@ public class PersonAccountDto extends BaseDto {
@ApiModelProperty
(
value
=
"生产用户分类"
)
private
String
scUserCategory
;
private
Long
personId
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/PersonAccount.java
View file @
2e7df8c6
...
...
@@ -23,11 +23,6 @@ public class PersonAccount extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
/**
* 数据创建时间
*/
@TableField
(
"create_date"
)
private
Date
createDate
;
/**
* 平台user_id
...
...
@@ -53,6 +48,12 @@ public class PersonAccount extends BaseEntity {
@TableField
(
"role_name"
)
private
String
roleName
;
/**
* 人员信息id
*/
@TableField
(
"person_id"
)
private
Long
personId
;
/**
* 应用
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/PersonBasicController.java
View file @
2e7df8c6
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.PersonDto
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
...
...
@@ -39,9 +40,9 @@ public class PersonBasicController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增人员基本信息"
,
notes
=
"新增人员基本信息"
)
public
ResponseModel
<
PersonBasicDto
>
save
(
@RequestBody
PersonBasic
Dto
model
)
{
model
=
personBasicServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
mode
l
);
public
ResponseModel
<
Object
>
save
(
@RequestBody
Person
Dto
model
)
{
personBasicServiceImpl
.
addPerson
(
model
);
return
ResponseHelper
.
buildResponse
(
nul
l
);
}
/**
...
...
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 @
2e7df8c6
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.PersonDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.PersonBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.PersonBasicMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IPersonBasicService
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.PersonBasicDto
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -30,4 +32,19 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
public
List
<
PersonBasicDto
>
queryForPersonBasicList
()
{
return
this
.
queryForList
(
""
,
false
);
}
/**
* 新增
* */
@Transactional
public
void
addPerson
(
PersonDto
model
){
}
}
\ No newline at end of file
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