Commit 2e7df8c6 authored by tangwei's avatar tangwei

增加字段

parent c3d8dfb2
...@@ -22,8 +22,7 @@ public class PersonAccountDto extends BaseDto { ...@@ -22,8 +22,7 @@ public class PersonAccountDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "数据创建时间")
private Date createDate;
@ApiModelProperty(value = "平台user_id") @ApiModelProperty(value = "平台user_id")
private Long userId; private Long userId;
...@@ -60,5 +59,5 @@ public class PersonAccountDto extends BaseDto { ...@@ -60,5 +59,5 @@ public class PersonAccountDto extends BaseDto {
@ApiModelProperty(value = "生产用户分类") @ApiModelProperty(value = "生产用户分类")
private String scUserCategory; private String scUserCategory;
private Long personId;
} }
...@@ -23,11 +23,6 @@ public class PersonAccount extends BaseEntity { ...@@ -23,11 +23,6 @@ public class PersonAccount extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 数据创建时间
*/
@TableField("create_date")
private Date createDate;
/** /**
* 平台user_id * 平台user_id
...@@ -53,6 +48,12 @@ public class PersonAccount extends BaseEntity { ...@@ -53,6 +48,12 @@ public class PersonAccount extends BaseEntity {
@TableField("role_name") @TableField("role_name")
private String roleName; private String roleName;
/**
* 人员信息id
*/
@TableField("person_id")
private Long personId;
/** /**
* 应用 * 应用
......
package com.yeejoin.amos.boot.module.jxiop.biz.controller; 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 org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -39,9 +40,9 @@ public class PersonBasicController extends BaseController { ...@@ -39,9 +40,9 @@ public class PersonBasicController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/save") @PostMapping(value = "/save")
@ApiOperation(httpMethod = "POST", value = "新增人员基本信息", notes = "新增人员基本信息") @ApiOperation(httpMethod = "POST", value = "新增人员基本信息", notes = "新增人员基本信息")
public ResponseModel<PersonBasicDto> save(@RequestBody PersonBasicDto model) { public ResponseModel<Object> save(@RequestBody PersonDto model) {
model = personBasicServiceImpl.createWithModel(model); personBasicServiceImpl.addPerson(model);
return ResponseHelper.buildResponse(model); return ResponseHelper.buildResponse(null);
} }
/** /**
......
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl; 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.entity.PersonBasic;
import com.yeejoin.amos.boot.module.jxiop.api.mapper.PersonBasicMapper; 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.service.IPersonBasicService;
import com.yeejoin.amos.boot.module.jxiop.api.dto.PersonBasicDto; 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.typroject.tyboot.core.rdbms.service.BaseService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...@@ -30,4 +32,19 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas ...@@ -30,4 +32,19 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
public List<PersonBasicDto> queryForPersonBasicList() { public List<PersonBasicDto> queryForPersonBasicList() {
return this.queryForList("" , false); return this.queryForList("" , false);
} }
/**
* 新增
* */
@Transactional
public void addPerson(PersonDto model){
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment