Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
25c0e8c9
Commit
25c0e8c9
authored
Jun 10, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
解决了 Bug 导入名册页,未完成 1468
parent
502ce77f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
329 additions
and
15 deletions
+329
-15
sql/V2.3.sql
+9
-0
src/main/java/cn/timer/api/bean/yggl/YgglMainImportLog.java
+137
-0
src/main/java/cn/timer/api/dao/yggl/YgglMainImportlogMapper.java
+18
-0
src/main/java/cn/timer/api/dto/yggl/AddygdaDto.java
+21
-15
src/main/resources/mapping/yggl/YgglMainImportlogMapper.xml
+144
-0
No files found.
sql/V2.3.sql
View file @
25c0e8c9
...
...
@@ -25,3 +25,12 @@ ALTER TABLE yggl_main_emp`
ALTER TABLE `
timer_test
`.`
insure_user
`
ADD COLUMN `
create_time
` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间' AFTER `
reason
`;
CREATE TABLE `
yggl_main_importLog
` (
`
id
` int(11) NOT NULL AUTO_INCREMENT,
`
user_id
` int(11) NULL DEFAULT NULL COMMENT ''yggl_main_emp_empnum'',
`
create_time
` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT ''导入时间'',
`
success_num
` int(11) NULL DEFAULT NULL COMMENT ''成功条数'',
`
err_num
` int(11) NULL DEFAULT NULL COMMENT ''失败条数'',
`
org_code
` int(11) NULL DEFAULT NULL,
PRIMARY KEY (`
id
`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
src/main/java/cn/timer/api/bean/yggl/YgglMainImportLog.java
0 → 100644
View file @
25c0e8c9
package
cn
.
timer
.
api
.
bean
.
yggl
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Date
;
/**
*
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-06-10 17:42:53
*/
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table
(
name
=
"yggl_main_import_log"
)
@ApiModel
(
"员工导入记录"
)
public
class
YgglMainImportLog
extends
Model
<
YgglMainImportLog
>
{
private
static
final
long
serialVersionUID
=
-
1825678752247238544L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
)
private
Integer
id
;
/**
* yggl_main_emp_empnum
*/
private
Integer
userId
;
/**
* 导入时间
*/
private
Date
createTime
;
/**
* 成功条数
*/
private
Integer
successNum
;
/**
* 失败条数
*/
private
Integer
errNum
;
/**
*
*/
private
Integer
orgCode
;
/**
* 设置:
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* 获取:
*/
public
Integer
getId
()
{
return
id
;
}
/**
* 设置:yggl_main_emp_id
*/
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
/**
* 获取:yggl_main_emp_id
*/
public
Integer
getUserId
()
{
return
userId
;
}
/**
* 设置:导入时间
*/
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
* 获取:导入时间
*/
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* 设置:成功条数
*/
public
void
setSuccessNum
(
Integer
successNum
)
{
this
.
successNum
=
successNum
;
}
/**
* 获取:成功条数
*/
public
Integer
getSuccessNum
()
{
return
successNum
;
}
/**
* 设置:失败条数
*/
public
void
setErrNum
(
Integer
errNum
)
{
this
.
errNum
=
errNum
;
}
/**
* 获取:失败条数
*/
public
Integer
getErrNum
()
{
return
errNum
;
}
/**
* 设置:
*/
public
void
setOrgCode
(
Integer
orgCode
)
{
this
.
orgCode
=
orgCode
;
}
/**
* 获取:
*/
public
Integer
getOrgCode
()
{
return
orgCode
;
}
}
src/main/java/cn/timer/api/dao/yggl/YgglMainImportlogMapper.java
0 → 100644
View file @
25c0e8c9
package
cn
.
timer
.
api
.
dao
.
yggl
;
import
cn.timer.api.bean.yggl.YgglMainImportLog
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.springframework.stereotype.Repository
;
/**
*
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-06-10 17:42:53
*/
@Repository
public
interface
YgglMainImportlogMapper
extends
BaseMapper
<
YgglMainImportLog
>
{
}
src/main/java/cn/timer/api/dto/yggl/AddygdaDto.java
View file @
25c0e8c9
/**
* @date 2019年11月16日
* @date 2019年11月16日
* @author 翁东州
* @方法中文名称:
*/
...
...
@@ -24,7 +24,7 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
/**
* @date 2019年11月16日
* @date 2019年11月16日
* @author 翁东州
* @方法中文名称:
*/
...
...
@@ -33,7 +33,7 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
public
class
AddygdaDto
extends
Page
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1230023773946170942L
;
@NotBlank
(
message
=
ValidationMsg
.
NOTBLANK
)
...
...
@@ -44,38 +44,38 @@ public class AddygdaDto extends Page implements Serializable{
@Pattern
(
regexp
=
Regular
.
PHONE
,
message
=
ValidationMsg
.
PATTERN
)
@ApiModelProperty
(
value
=
"手机号"
,
example
=
"101"
)
private
String
phone
;
/*@NotNull(message = ValidationMsg.NOTNULL)*/
@ApiModelProperty
(
value
=
"证件类型 0:身份证;1:港澳居民来往内地通行证;2:台湾居民来往大陆通行证;3:外国护照;4:其他"
,
example
=
"0"
)
private
Integer
zjType
;
/*@NotBlank(message = ValidationMsg.NOTBLANK)*/
@ApiModelProperty
(
value
=
"证件号码 "
,
example
=
"证件号码"
)
private
String
zjNum
;
/*@NotNull(message = ValidationMsg.NOTNULL)*/
@ApiModelProperty
(
value
=
"工作性质 0全职、1实习生、2兼职、3劳务派遣、4劳务、5派遣、6外包、7退休返聘"
,
example
=
"0"
)
private
Integer
jobType
;
// @NotNull(message = ValidationMsg.NOTNULL)
@JSONField
(
format
=
"yyyy-MM-dd"
)
@JSONField
(
format
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"入职日期 "
,
example
=
"客户注册后的时间为入职时间"
)
private
Date
rzTime
;
/*@NotNull(message = ValidationMsg.NOTNULL)*/
@ApiModelProperty
(
value
=
"试用期 0:无试用期;1:1个月;2:2个月;3:3个月;4:4个月;5:5个月;6:6个月(有试用期显示选项)"
,
example
=
"0"
)
private
Integer
syq
;
@NotNull
(
message
=
ValidationMsg
.
NOTNULL
)
@ApiModelProperty
(
value
=
"性别 0:男;1:女"
,
example
=
"0"
)
private
Integer
sex
;
@ApiModelProperty
(
value
=
"部门岗位id"
,
example
=
"0"
)
private
Integer
bmgwId
;
@ApiModelProperty
(
value
=
"自定义工号"
,
example
=
"1001"
)
private
String
customNum
;
@ApiModelProperty
(
value
=
"考勤组id"
,
example
=
"0"
)
private
Integer
attgroupid
;
...
...
@@ -84,6 +84,12 @@ public class AddygdaDto extends Page implements Serializable{
@ApiModelProperty
(
value
=
"对应工作地点典ID"
,
example
=
"0"
)
private
Integer
zpglGzddId
;
@ApiModelProperty
(
value
=
"员工状态 0试用、1正式、2离职中、3已离职"
,
example
=
"0"
)
private
Integer
jobStatus
;
@JSONField
(
format
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"离职日期 "
,
example
=
"客户注册后的时间为入职时间"
)
private
Date
lzTime
;
}
src/main/resources/mapping/yggl/YgglMainImportlogMapper.xml
0 → 100644
View file @
25c0e8c9
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.yggl.YgglMainImportlogMapper"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"cn.timer.api.bean.yggl.YgglMainImportLog"
id=
"ygglMainImportlogMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"successNum"
column=
"success_num"
/>
<result
property=
"errNum"
column=
"err_num"
/>
<result
property=
"orgCode"
column=
"org_code"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"cn.timer.api.bean.yggl.YgglMainImportLog"
>
select *
from yggl_main_importLog
where id = #{value}
</select>
<select
id=
"queryList"
resultType=
"cn.timer.api.bean.yggl.YgglMainImportLog"
>
select * from yggl_main_importLog
<where>
<if
test=
"id != null and id != ''"
>
AND `id` = #{id}
</if>
<if
test=
"userId != null and userId != ''"
>
AND `user_id` = #{userId}
</if>
<if
test=
"createTime != null and createTime != ''"
>
AND `create_time` = #{createTime}
</if>
<if
test=
"successNum != null and successNum != ''"
>
AND `success_num` = #{successNum}
</if>
<if
test=
"errNum != null and errNum != ''"
>
AND `err_num` = #{errNum}
</if>
<if
test=
"orgCode != null and orgCode != ''"
>
AND `org_code` = #{orgCode}
</if>
</where>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
</when>
<otherwise>
order by id desc
</otherwise>
</choose>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*) from yggl_main_importLog
<where>
<if
test=
"id != null and id != ''"
>
AND `id` = #{id}
</if>
<if
test=
"userId != null and userId != ''"
>
AND `user_id` = #{userId}
</if>
<if
test=
"createTime != null and createTime != ''"
>
AND `create_time` = #{createTime}
</if>
<if
test=
"successNum != null and successNum != ''"
>
AND `success_num` = #{successNum}
</if>
<if
test=
"errNum != null and errNum != ''"
>
AND `err_num` = #{errNum}
</if>
<if
test=
"orgCode != null and orgCode != ''"
>
AND `org_code` = #{orgCode}
</if>
</where>
</select>
<insert
id=
"save"
parameterType=
"cn.timer.api.bean.yggl.YgglMainImportLog"
>
insert into yggl_main_importLog
(`id`,
`user_id`,
`create_time`,
`success_num`,
`err_num`,
`org_code`)
values (#{id},
#{userId},
#{createTime},
#{successNum},
#{errNum},
#{orgCode})
</insert>
<insert
id=
"saveSelective"
parameterType=
"cn.timer.api.bean.yggl.YgglMainImportLog"
>
insert into yggl_main_importLog
(
<if
test=
"id != null"
>
`id`
</if>
<if
test=
"userId != null"
>
,`user_id`
</if>
<if
test=
"createTime != null"
>
,`create_time`
</if>
<if
test=
"successNum != null"
>
,`success_num`
</if>
<if
test=
"errNum != null"
>
,`err_num`
</if>
<if
test=
"orgCode != null"
>
,`org_code`
</if>
)
values
(
<if
test=
"id != null"
>
#{id}
</if>
<if
test=
"userId != null"
>
,#{userId}
</if>
<if
test=
"createTime != null"
>
,#{createTime}
</if>
<if
test=
"successNum != null"
>
,#{successNum}
</if>
<if
test=
"errNum != null"
>
,#{errNum}
</if>
<if
test=
"orgCode != null"
>
,#{orgCode}
</if>
)
</insert>
<insert
id=
"saveList"
parameterType=
"cn.timer.api.bean.yggl.YgglMainImportLog"
>
insert into yggl_main_importLog
(
`id`,
`user_id`,
`create_time`,
`success_num`,
`err_num`,
`org_code`
)
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
(
#{item.id},
#{item.userId},
#{item.createTime},
#{item.successNum},
#{item.errNum},
#{item.orgCode}
)
</foreach>
</insert>
<update
id=
"update"
parameterType=
"cn.timer.api.bean.yggl.YgglMainImportLog"
>
update yggl_main_importLog
<set>
<if
test=
"userId != null"
>
`user_id` = #{userId},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"successNum != null"
>
`success_num` = #{successNum},
</if>
<if
test=
"errNum != null"
>
`err_num` = #{errNum},
</if>
<if
test=
"orgCode != null"
>
`org_code` = #{orgCode}
</if>
</set>
where id = #{id}
</update>
<delete
id=
"delete"
>
delete
from yggl_main_importLog
where id = #{value}
</delete>
<delete
id=
"deleteBatch"
>
delete from yggl_main_importLog where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</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