Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
dea166a6
Commit
dea166a6
authored
Jun 25, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
证明开具
parent
646c7906
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
506 additions
and
0 deletions
+506
-0
TCertRecord.java
.../yifu/cloud/plus/v1/yifu/archives/entity/TCertRecord.java
+226
-0
TCertRecordController.java
...us/v1/yifu/archives/controller/TCertRecordController.java
+128
-0
TCertRecordMapper.java
...cloud/plus/v1/yifu/archives/mapper/TCertRecordMapper.java
+33
-0
TCertRecordService.java
...oud/plus/v1/yifu/archives/service/TCertRecordService.java
+31
-0
TCertRecordServiceImpl.java
...v1/yifu/archives/service/impl/TCertRecordServiceImpl.java
+34
-0
TCertRecordMapper.xml
...hives-biz/src/main/resources/mapper/TCertRecordMapper.xml
+54
-0
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TCertRecord.java
0 → 100644
View file @
dea166a6
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.time.LocalDateTime
;
/**
* 证明开具记录表
*
* @author fxj
* @date 2022-06-25 11:05:11
*/
@Data
@TableName
(
"t_cert_record"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"证明开具记录表"
)
public
class
TCertRecord
extends
BaseEntity
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelAttribute
(
name
=
"主键"
)
@Schema
(
description
=
"主键"
)
private
String
id
;
/**
* 员工ID
*/
@ExcelAttribute
(
name
=
"员工ID"
)
@Schema
(
description
=
"员工ID"
)
private
String
empId
;
/**
* 员工姓名
*/
@ExcelAttribute
(
name
=
"员工姓名"
)
@Schema
(
description
=
"员工姓名"
)
private
String
empName
;
/**
* 员工身份证
*/
@ExcelAttribute
(
name
=
"员工身份证"
)
@Schema
(
description
=
"员工身份证"
)
private
String
empIdcard
;
/**
* 项目名称
*/
@ExcelAttribute
(
name
=
"项目名称"
)
@Schema
(
description
=
"项目名称"
)
private
String
projectName
;
/**
* 项目编码
*/
@ExcelAttribute
(
name
=
"项目编码"
)
@Schema
(
description
=
"项目编码"
)
private
String
projectCode
;
/**
* 岗位
*/
@ExcelAttribute
(
name
=
"岗位"
)
@Schema
(
description
=
"岗位"
)
private
String
post
;
/**
* 合同开始时间
*/
@ExcelAttribute
(
name
=
"合同开始时间"
)
@Schema
(
description
=
"合同开始时间"
)
private
LocalDateTime
contractStart
;
/**
* 合同截止时间
*/
@ExcelAttribute
(
name
=
"合同截止时间"
)
@Schema
(
description
=
"合同截止时间"
)
private
LocalDateTime
contractEnd
;
/**
* 开具当天时间
*/
@ExcelAttribute
(
name
=
"开具当天时间"
)
@Schema
(
description
=
"开具当天时间"
)
private
LocalDateTime
openCurTime
;
/**
* 印章名称
*/
@ExcelAttribute
(
name
=
"印章名称"
)
@Schema
(
description
=
"印章名称"
)
private
String
seal
;
/**
* 创建者
*/
@ExcelAttribute
(
name
=
"创建者"
)
@Schema
(
description
=
"创建者"
)
private
String
createBy
;
/**
* 更新人
*/
@ExcelAttribute
(
name
=
"更新人"
)
@Schema
(
description
=
"更新人"
)
private
String
updateBy
;
/**
* 创建人姓名
*/
@ExcelAttribute
(
name
=
"创建人姓名"
)
@Schema
(
description
=
"创建人姓名"
)
private
String
createName
;
/**
* 创建时间
*/
@ExcelAttribute
(
name
=
"创建时间"
)
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
createTime
;
/**
* 更新时间
*/
@ExcelAttribute
(
name
=
"更新时间"
)
@Schema
(
description
=
"更新时间"
)
private
LocalDateTime
updateTime
;
/**
* 证明类型:0 在职 1 离职2劳动合同解除 3调档函4.代缴证明
*/
@ExcelAttribute
(
name
=
"证明类型:0 在职 1 离职2劳动合同解除 3调档函4.代缴证明"
)
@Schema
(
description
=
"证明类型:0 在职 1 离职2劳动合同解除 3调档函4.代缴证明"
)
private
String
type
;
/**
* 离职时间
*/
@ExcelAttribute
(
name
=
"离职时间"
)
@Schema
(
description
=
"离职时间"
)
private
LocalDateTime
leaveTime
;
/**
* 派减原因
*/
@ExcelAttribute
(
name
=
"派减原因"
)
@Schema
(
description
=
"派减原因"
)
private
String
leaveReason
;
/**
* 性别:0男 1女
*/
@ExcelAttribute
(
name
=
"性别:0男 1女"
)
@Schema
(
description
=
"性别:0男 1女"
)
private
String
sex
;
/**
* 入职时间(来我单位时间)
*/
@ExcelAttribute
(
name
=
"入职时间(来我单位时间)"
)
@Schema
(
description
=
"入职时间(来我单位时间)"
)
private
LocalDateTime
entryTime
;
/**
* 签订合同时间-第一次
*/
@ExcelAttribute
(
name
=
"签订合同时间-第一次"
)
@Schema
(
description
=
"签订合同时间-第一次"
)
private
LocalDateTime
firstContractTime
;
/**
* 开具人
*/
@ExcelAttribute
(
name
=
"开具人"
)
@Schema
(
description
=
"开具人"
)
private
String
opener
;
/**
* 开具时间
*/
@ExcelAttribute
(
name
=
"开具时间"
)
@Schema
(
description
=
"开具时间"
)
private
LocalDateTime
openTime
;
/**
* 介绍单位
*/
@ExcelAttribute
(
name
=
"介绍单位"
)
@Schema
(
description
=
"介绍单位"
)
private
String
introductionUnit
;
/**
* 参保时间
*/
@ExcelAttribute
(
name
=
"参保时间"
)
@Schema
(
description
=
"参保时间"
)
private
LocalDateTime
socialTime
;
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TCertRecordController.java
0 → 100644
View file @
dea166a6
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCertRecord
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TCertRecordService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.security.SecurityRequirement
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 证明开具记录表
*
* @author fxj
* @date 2022-06-25 11:05:11
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/tcertrecord"
)
@Tag
(
name
=
"证明开具记录表管理"
)
@SecurityRequirement
(
name
=
HttpHeaders
.
AUTHORIZATION
)
public
class
TCertRecordController
{
private
final
TCertRecordService
tCertRecordService
;
/**
* 分页查询
* @param page 分页对象
* @param tCertRecord 证明开具记录表
* @return
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
//@PreAuthorize("@pms.hasPermission('demo_tcertrecord_get')" )
public
R
<
IPage
<
TCertRecord
>>
getTCertRecordPage
(
Page
page
,
TCertRecord
tCertRecord
)
{
return
R
.
ok
(
tCertRecordService
.
page
(
page
,
Wrappers
.
query
(
tCertRecord
)));
}
/**
* 不分页查询
* @param tCertRecord 证明开具记录表
* @return
*/
@Operation
(
summary
=
"不分页查询"
,
description
=
"不分页查询"
)
@GetMapping
(
"/noPage"
)
//@PreAuthorize("@pms.hasPermission('demo_tcertrecord_get')" )
public
R
<
List
<
TCertRecord
>>
getTCertRecordNoPage
(
TCertRecord
tCertRecord
)
{
return
R
.
ok
(
tCertRecordService
.
list
(
Wrappers
.
query
(
tCertRecord
)));
}
/**
* 通过id查询证明开具记录表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('demo_tcertrecord_get')"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tcertrecord_get')"
)
public
R
<
TCertRecord
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tCertRecordService
.
getById
(
id
));
}
/**
* 新增证明开具记录表
* @param tCertRecord 证明开具记录表
* @return R
*/
@Operation
(
summary
=
"新增证明开具记录表"
,
description
=
"新增证明开具记录表:hasPermission('demo_tcertrecord_add')"
)
@SysLog
(
"新增证明开具记录表"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('demo_tcertrecord_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TCertRecord
tCertRecord
)
{
return
R
.
ok
(
tCertRecordService
.
save
(
tCertRecord
));
}
/**
* 修改证明开具记录表
* @param tCertRecord 证明开具记录表
* @return R
*/
@Operation
(
summary
=
"修改证明开具记录表"
,
description
=
"修改证明开具记录表:hasPermission('demo_tcertrecord_edit')"
)
@SysLog
(
"修改证明开具记录表"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('demo_tcertrecord_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
TCertRecord
tCertRecord
)
{
return
R
.
ok
(
tCertRecordService
.
updateById
(
tCertRecord
));
}
/**
* 通过id删除证明开具记录表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除证明开具记录表"
,
description
=
"通过id删除证明开具记录表:hasPermission('demo_tcertrecord_del')"
)
@SysLog
(
"通过id删除证明开具记录表"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tcertrecord_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
tCertRecordService
.
removeById
(
id
));
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TCertRecordMapper.java
0 → 100644
View file @
dea166a6
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCertRecord
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 证明开具记录表
*
* @author fxj
* @date 2022-06-25 11:05:11
*/
@Mapper
public
interface
TCertRecordMapper
extends
BaseMapper
<
TCertRecord
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TCertRecordService.java
0 → 100644
View file @
dea166a6
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCertRecord
;
/**
* 证明开具记录表
*
* @author fxj
* @date 2022-06-25 11:05:11
*/
public
interface
TCertRecordService
extends
IService
<
TCertRecord
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TCertRecordServiceImpl.java
0 → 100644
View file @
dea166a6
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCertRecord
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TCertRecordMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TCertRecordService
;
import
org.springframework.stereotype.Service
;
/**
* 证明开具记录表
*
* @author fxj
* @date 2022-06-25 11:05:11
*/
@Service
public
class
TCertRecordServiceImpl
extends
ServiceImpl
<
TCertRecordMapper
,
TCertRecord
>
implements
TCertRecordService
{
}
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TCertRecordMapper.xml
0 → 100644
View file @
dea166a6
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.archives.mapper.TCertRecordMapper"
>
<resultMap
id=
"tCertRecordMap"
type=
"com.yifu.cloud.plus.v1.yifu.archives.entity.TCertRecord"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"empId"
column=
"EMP_ID"
/>
<result
property=
"empName"
column=
"EMP_NAME"
/>
<result
property=
"empIdcard"
column=
"EMP_IDCARD"
/>
<result
property=
"projectName"
column=
"PROJECT_NAME"
/>
<result
property=
"projectCode"
column=
"PROJECT_CODE"
/>
<result
property=
"post"
column=
"POST"
/>
<result
property=
"contractStart"
column=
"CONTRACT_START"
/>
<result
property=
"contractEnd"
column=
"CONTRACT_END"
/>
<result
property=
"openCurTime"
column=
"OPEN_CUR_TIME"
/>
<result
property=
"seal"
column=
"SEAL"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"type"
column=
"TYPE"
/>
<result
property=
"leaveTime"
column=
"LEAVE_TIME"
/>
<result
property=
"leaveReason"
column=
"LEAVE_REASON"
/>
<result
property=
"sex"
column=
"SEX"
/>
<result
property=
"entryTime"
column=
"ENTRY_TIME"
/>
<result
property=
"firstContractTime"
column=
"FIRST_CONTRACT_TIME"
/>
<result
property=
"opener"
column=
"OPENER"
/>
<result
property=
"openTime"
column=
"OPEN_TIME"
/>
<result
property=
"introductionUnit"
column=
"INTRODUCTION_UNIT"
/>
<result
property=
"socialTime"
column=
"SOCIAL_TIME"
/>
</resultMap>
</mapper>
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