Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
88511879
Commit
88511879
authored
Jul 07, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加员工登录用户名与密码
parent
b86f11f2
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
842 additions
and
41 deletions
+842
-41
attendance-performance-manager/src/main/java/com/mortals/xhx/base/framework/interceptor/AuthTokenServiceImpl.java
.../xhx/base/framework/interceptor/AuthTokenServiceImpl.java
+3
-6
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/BaseReq.java
...-manager/src/main/java/com/mortals/xhx/busiz/BaseReq.java
+24
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/req/AppealReq.java
...er/src/main/java/com/mortals/xhx/busiz/req/AppealReq.java
+29
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/req/PerformReq.java
...r/src/main/java/com/mortals/xhx/busiz/req/PerformReq.java
+23
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/rsp/PerformDetailInfo.java
...ain/java/com/mortals/xhx/busiz/rsp/PerformDetailInfo.java
+47
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/rsp/PerformInfo.java
.../src/main/java/com/mortals/xhx/busiz/rsp/PerformInfo.java
+47
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/rsp/PerformStatInfo.java
.../main/java/com/mortals/xhx/busiz/rsp/PerformStatInfo.java
+9
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/AppealApiController.java
...n/java/com/mortals/xhx/busiz/web/AppealApiController.java
+118
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/PerformApiController.java
.../java/com/mortals/xhx/busiz/web/PerformApiController.java
+149
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/PerformTypeEnum.java
...ain/java/com/mortals/xhx/common/code/PerformTypeEnum.java
+70
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffEntity.java
.../java/com/mortals/xhx/module/staff/model/StaffEntity.java
+19
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffQuery.java
...n/java/com/mortals/xhx/module/staff/model/StaffQuery.java
+152
-1
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffMapper.xml
...er/src/main/resources/sqlmap/module/staff/StaffMapper.xml
+118
-4
db/module.sql
db/module.sql
+34
-29
doc/考勤绩效管理系统.docx
doc/考勤绩效管理系统.docx
+0
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/base/framework/interceptor/AuthTokenServiceImpl.java
View file @
88511879
...
@@ -90,12 +90,9 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
...
@@ -90,12 +90,9 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
Claims
claims
=
parseToken
(
token
);
Claims
claims
=
parseToken
(
token
);
String
uuid
=
(
String
)
claims
.
get
(
SysConstains
.
LOGIN_USER_KEY
);
String
uuid
=
(
String
)
claims
.
get
(
SysConstains
.
LOGIN_USER_KEY
);
String
userKey
=
getTokenKey
(
uuid
);
String
userKey
=
getTokenKey
(
uuid
);
// Rest<String> rest = userFeign.getToken(userKey);
//cacheService.select(portalDb);
// String userStr = rest.getData();
cacheService
.
select
(
portalDb
);
String
userStr
=
cacheService
.
get
(
userKey
);
String
userStr
=
cacheService
.
get
(
userKey
);
//cacheService.select(db);
cacheService
.
select
(
db
);
if
(
StringUtils
.
isNotEmpty
(
userStr
))
{
if
(
StringUtils
.
isNotEmpty
(
userStr
))
{
UserEntity
userEntity
=
JSONObject
.
parseObject
(
userStr
,
UserEntity
.
class
);
UserEntity
userEntity
=
JSONObject
.
parseObject
(
userStr
,
UserEntity
.
class
);
userEntity
.
setToken
(
token
);
userEntity
.
setToken
(
token
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/BaseReq.java
0 → 100644
View file @
88511879
package
com.mortals.xhx.busiz
;
import
com.mortals.xhx.common.code.CommentTypeEnum
;
import
com.mortals.xhx.common.code.ProcessStatusEnum
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
abstract
class
BaseReq
implements
Serializable
{
/**
* 当前页
*/
private
Integer
page
;
/**
* 每页条数
*/
private
Integer
size
;
}
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/req/AppealReq.java
0 → 100644
View file @
88511879
package
com.mortals.xhx.busiz.req
;
import
com.mortals.xhx.busiz.BaseReq
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
@Data
public
class
AppealReq
extends
BaseReq
{
//绩效开始时间
private
String
performStartDate
;
//绩效结束时间
private
String
performEndDate
;
//绩效类型
private
String
performType
;
/**
* 当前员工id
*/
private
Long
staffId
;
private
Long
Id
;
}
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/req/PerformReq.java
0 → 100644
View file @
88511879
package
com.mortals.xhx.busiz.req
;
import
com.mortals.xhx.busiz.BaseReq
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
PerformReq
extends
BaseReq
{
//绩效开始时间
private
String
performStartDate
;
//绩效结束时间
private
String
performEndDate
;
//绩效类型
private
String
performType
;
private
Long
id
;
}
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/rsp/PerformDetailInfo.java
0 → 100644
View file @
88511879
package
com.mortals.xhx.busiz.rsp
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
@Data
public
class
PerformDetailInfo
{
/**
* id
*/
private
Long
id
;
/**
* 标题
*/
private
String
title
;
/**
* 扣分方式(1.系统自动,2.人工添加,3.大厅巡查)
*/
private
Integer
subMethod
;
/**
* 扣分时间
*/
private
Date
errorTime
;
/**
* 绩效规则id
*/
private
Long
ruleId
;
/**
* 规则名称
*/
private
String
ruleName
;
/**
* 增减类型(1.增加,2.扣除)
*/
private
Integer
subAddType
;
/**
* 扣分或增加分值
*/
private
BigDecimal
score
;
}
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/rsp/PerformInfo.java
0 → 100644
View file @
88511879
package
com.mortals.xhx.busiz.rsp
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
@Data
public
class
PerformInfo
{
/**
* id
*/
private
Long
id
;
/**
* 标题
*/
private
String
title
;
/**
* 扣分方式(1.系统自动,2.人工添加,3.大厅巡查)
*/
private
Integer
subMethod
;
/**
* 扣分时间
*/
private
Date
errorTime
;
/**
* 绩效规则id
*/
private
Long
ruleId
;
/**
* 规则名称
*/
private
String
ruleName
;
/**
* 增减类型(1.增加,2.扣除)
*/
private
Integer
subAddType
;
/**
* 扣分或增加分值
*/
private
BigDecimal
score
;
}
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/rsp/PerformStatInfo.java
0 → 100644
View file @
88511879
package
com.mortals.xhx.busiz.rsp
;
import
lombok.Data
;
@Data
public
class
PerformStatInfo
{
}
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/AppealApiController.java
0 → 100644
View file @
88511879
package
com.mortals.xhx.busiz.web
;
import
cn.hutool.core.date.DateUtil
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.web.BaseJsonBodyController
;
import
com.mortals.xhx.busiz.req.AppealReq
;
import
com.mortals.xhx.busiz.req.PerformReq
;
import
com.mortals.xhx.busiz.rsp.PerformDetailInfo
;
import
com.mortals.xhx.busiz.rsp.PerformInfo
;
import
com.mortals.xhx.busiz.rsp.PerformStatInfo
;
import
com.mortals.xhx.common.code.PerformTypeEnum
;
import
com.mortals.xhx.module.check.service.*
;
import
com.mortals.xhx.module.perform.model.PerformAttendAppealEntity
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Date
;
import
java.util.List
;
/**
* h5 申诉
*
* @author: zxfei
* @date: 2023/7/7 15:08
*/
@RestController
@Slf4j
@RequestMapping
(
"/api/v1/"
)
public
class
AppealApiController
extends
BaseJsonBodyController
{
@Autowired
private
CheckAttendRecordService
checkAttendRecordService
;
@Autowired
private
CheckReviewRecordService
checkReviewRecordService
;
@Autowired
private
CheckComplainRecordService
checkComplainRecordService
;
@Autowired
private
CheckEffectRecordService
checkEffectRecordService
;
@Autowired
private
CheckGoworkRecordService
checkGoworkRecordService
;
@Autowired
private
CheckOtherRecordService
checkOtherRecordService
;
/**
* 申诉列表
*/
@PostMapping
(
value
=
"appeal/list"
)
public
Rest
<
List
<
PerformAttendAppealEntity
>>
performList
(
@RequestBody
AppealReq
appealReq
)
{
String
busiDesc
=
"个人申诉列表"
;
Rest
<
List
<
PerformAttendAppealEntity
>>
rest
=
Rest
.
ok
(
busiDesc
+
" 【成功】"
);
try
{
if
(
ObjectUtils
.
isEmpty
(
appealReq
.
getPerformStartDate
()))
{
//未设置时间的情况,默认为当月
appealReq
.
setPerformStartDate
(
DateUtil
.
beginOfMonth
(
new
Date
()).
toDateStr
());
appealReq
.
setPerformEndDate
(
DateUtil
.
today
());
}
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
rest
=
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
/**
* 申诉详细
*/
@PostMapping
(
value
=
"appeal/detail"
)
public
Rest
<
PerformAttendAppealEntity
>
performDetail
(
@RequestBody
AppealReq
appealReq
)
{
String
busiDesc
=
"个人申诉详细"
;
Rest
<
PerformAttendAppealEntity
>
rest
=
Rest
.
ok
(
busiDesc
+
" 【成功】"
);
try
{
if
(
ObjectUtils
.
isEmpty
(
appealReq
.
getId
()))
{
throw
new
AppException
(
"详细查询id不能为空!"
);
}
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
rest
=
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
/**
* 申诉新增
*/
@PostMapping
(
value
=
"appeal/save"
)
public
Rest
<
String
>
appealSave
(
@RequestBody
PerformAttendAppealEntity
appealEntity
)
{
String
busiDesc
=
"个人申诉新增"
;
Rest
<
String
>
rest
=
Rest
.
ok
(
busiDesc
+
" 【成功】"
);
try
{
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
rest
=
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
public
static
void
main
(
String
[]
args
)
{
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/PerformApiController.java
0 → 100644
View file @
88511879
package
com.mortals.xhx.busiz.web
;
import
cn.hutool.core.date.DateUtil
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.web.BaseJsonBodyController
;
import
com.mortals.xhx.busiz.req.AppealReq
;
import
com.mortals.xhx.busiz.req.PerformReq
;
import
com.mortals.xhx.busiz.rsp.PerformDetailInfo
;
import
com.mortals.xhx.busiz.rsp.PerformInfo
;
import
com.mortals.xhx.busiz.rsp.PerformStatInfo
;
import
com.mortals.xhx.common.code.PerformTypeEnum
;
import
com.mortals.xhx.module.check.service.*
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Date
;
import
java.util.List
;
/**
* h5 绩效
* @author: zxfei
* @date: 2023/7/7 13:20
*/
@RestController
@Slf4j
@RequestMapping
(
"/api/v1/"
)
public
class
PerformApiController
extends
BaseJsonBodyController
{
@Autowired
private
CheckAttendRecordService
checkAttendRecordService
;
@Autowired
private
CheckReviewRecordService
checkReviewRecordService
;
@Autowired
private
CheckComplainRecordService
checkComplainRecordService
;
@Autowired
private
CheckEffectRecordService
checkEffectRecordService
;
@Autowired
private
CheckGoworkRecordService
checkGoworkRecordService
;
@Autowired
private
CheckOtherRecordService
checkOtherRecordService
;
/**
* 个人当天绩效统计
*/
@PostMapping
(
value
=
"perform/stat"
)
public
Rest
<
PerformStatInfo
>
performStat
()
{
String
busiDesc
=
"H5 个人绩效统计"
;
Rest
<
PerformStatInfo
>
rest
=
Rest
.
ok
(
busiDesc
+
" 【成功】"
);
try
{
//todo 查询当前登录人的绩效分数
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
rest
=
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
/**
* 个人当月绩效加分扣分列表
*/
@PostMapping
(
value
=
"perform/list"
)
public
Rest
<
List
<
PerformInfo
>>
performList
(
@RequestBody
PerformReq
performReq
)
{
String
busiDesc
=
"个人绩效列表"
;
Rest
<
List
<
PerformInfo
>>
rest
=
Rest
.
ok
(
busiDesc
+
" 【成功】"
);
try
{
if
(
ObjectUtils
.
isEmpty
(
performReq
.
getPerformStartDate
()))
{
//未设置时间的情况,默认为当月
performReq
.
setPerformStartDate
(
DateUtil
.
beginOfMonth
(
new
Date
()).
toDateStr
());
performReq
.
setPerformEndDate
(
DateUtil
.
today
());
}
//todo 查询全部扣分绩效
if
(
PerformTypeEnum
.
全部
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
评价差评绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
评价投诉绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
办件绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
效能绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
其它绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
{
throw
new
AppException
(
"不支持当前绩效类型"
);
}
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
rest
=
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
/**
* 扣分加分详细
*/
@PostMapping
(
value
=
"perform/detail"
)
public
Rest
<
PerformDetailInfo
>
performDetail
(
@RequestBody
PerformReq
performReq
)
{
String
busiDesc
=
"个人绩效增减详细"
;
Rest
<
PerformDetailInfo
>
rest
=
Rest
.
ok
(
busiDesc
+
" 【成功】"
);
try
{
if
(
ObjectUtils
.
isEmpty
(
performReq
.
getId
()))
{
throw
new
AppException
(
"详细查询id不能为空!"
);
}
//todo 查询全部扣分绩效详细
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
评价差评绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
评价投诉绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
办件绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
效能绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
其它绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
{
throw
new
AppException
(
"不支持当前绩效类型"
);
}
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
rest
=
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
public
static
void
main
(
String
[]
args
)
{
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/PerformTypeEnum.java
0 → 100644
View file @
88511879
package
com.mortals.xhx.common.code
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
/**
* @author: finegirl
* @date: 2021/7/16 11:50
* @description: 组件枚举类
**/
public
enum
PerformTypeEnum
{
全部
(
"all"
,
"全部"
),
考勤绩效
(
"attend"
,
"考勤绩效"
),
评价差评绩效
(
"review"
,
"评价好差评绩效"
),
评价投诉绩效
(
"complain"
,
"评价投诉绩效"
),
办件绩效
(
"gowork"
,
"办件绩效"
),
效能绩效
(
"effect"
,
"效能绩效"
),
其它绩效
(
"other"
,
"其它绩效"
);
private
String
value
;
private
String
desc
;
PerformTypeEnum
(
String
value
,
String
desc
)
{
this
.
value
=
value
;
this
.
desc
=
desc
;
}
public
String
getValue
()
{
return
this
.
value
;
}
public
String
getDesc
()
{
return
this
.
desc
;
}
public
static
PerformTypeEnum
getByValue
(
String
value
)
{
for
(
PerformTypeEnum
componentEnum
:
PerformTypeEnum
.
values
())
{
if
(
componentEnum
.
getValue
()
==
value
)
{
return
componentEnum
;
}
}
return
null
;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public
static
Map
<
String
,
String
>
getEnumMap
(
String
...
eItem
)
{
Map
<
String
,
String
>
resultMap
=
new
LinkedHashMap
<>();
for
(
PerformTypeEnum
item
:
PerformTypeEnum
.
values
())
{
try
{
boolean
hasE
=
false
;
for
(
String
e
:
eItem
)
{
if
(
item
.
getValue
()
==
e
)
{
hasE
=
true
;
break
;
}
}
if
(!
hasE
)
{
resultMap
.
put
(
item
.
getValue
()
+
""
,
item
.
getDesc
());
}
}
catch
(
Exception
ex
)
{
}
}
return
resultMap
;
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffEntity.java
View file @
88511879
...
@@ -12,7 +12,7 @@ import lombok.Data;
...
@@ -12,7 +12,7 @@ import lombok.Data;
* 员工基本信息实体对象
* 员工基本信息实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2023-0
5-16
* @date 2023-0
7-07
*/
*/
@Data
@Data
public
class
StaffEntity
extends
StaffVo
{
public
class
StaffEntity
extends
StaffVo
{
...
@@ -114,6 +114,18 @@ public class StaffEntity extends StaffVo {
...
@@ -114,6 +114,18 @@ public class StaffEntity extends StaffVo {
* 绩效分数
* 绩效分数
*/
*/
private
BigDecimal
score
;
private
BigDecimal
score
;
/**
* 员工登录名
*/
private
String
loginName
;
/**
* 员工登录密码
*/
private
String
loginPwd
;
/**
* 最后登录时间
*/
private
Date
lastLoginTime
;
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
return
this
.
getId
().
hashCode
();
...
@@ -179,5 +191,11 @@ public class StaffEntity extends StaffVo {
...
@@ -179,5 +191,11 @@ public class StaffEntity extends StaffVo {
this
.
serverIndexCode
=
""
;
this
.
serverIndexCode
=
""
;
this
.
score
=
new
BigDecimal
(
0
);
this
.
score
=
new
BigDecimal
(
0
);
this
.
loginName
=
""
;
this
.
loginPwd
=
""
;
this
.
lastLoginTime
=
null
;
}
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffQuery.java
View file @
88511879
...
@@ -8,7 +8,7 @@ import com.mortals.xhx.module.staff.model.StaffEntity;
...
@@ -8,7 +8,7 @@ import com.mortals.xhx.module.staff.model.StaffEntity;
* 员工基本信息查询对象
* 员工基本信息查询对象
*
*
* @author zxfei
* @author zxfei
* @date 2023-0
5-16
* @date 2023-0
7-07
*/
*/
public
class
StaffQuery
extends
StaffEntity
{
public
class
StaffQuery
extends
StaffEntity
{
/** 开始 序号,主键,自增长 */
/** 开始 序号,主键,自增长 */
...
@@ -272,6 +272,22 @@ public class StaffQuery extends StaffEntity {
...
@@ -272,6 +272,22 @@ public class StaffQuery extends StaffEntity {
/** 绩效分数排除列表 */
/** 绩效分数排除列表 */
private
List
<
BigDecimal
>
scoreNotList
;
private
List
<
BigDecimal
>
scoreNotList
;
/** 员工登录名 */
private
List
<
String
>
loginNameList
;
/** 员工登录名排除列表 */
private
List
<
String
>
loginNameNotList
;
/** 员工登录密码 */
private
List
<
String
>
loginPwdList
;
/** 员工登录密码排除列表 */
private
List
<
String
>
loginPwdNotList
;
/** 开始 最后登录时间 */
private
String
lastLoginTimeStart
;
/** 结束 最后登录时间 */
private
String
lastLoginTimeEnd
;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private
List
<
StaffQuery
>
orConditionList
;
private
List
<
StaffQuery
>
orConditionList
;
...
@@ -1747,6 +1763,102 @@ public class StaffQuery extends StaffEntity {
...
@@ -1747,6 +1763,102 @@ public class StaffQuery extends StaffEntity {
}
}
/**
* 获取 员工登录名
* @return loginNameList
*/
public
List
<
String
>
getLoginNameList
(){
return
this
.
loginNameList
;
}
/**
* 设置 员工登录名
* @param loginNameList
*/
public
void
setLoginNameList
(
List
<
String
>
loginNameList
){
this
.
loginNameList
=
loginNameList
;
}
/**
* 获取 员工登录名
* @return loginNameNotList
*/
public
List
<
String
>
getLoginNameNotList
(){
return
this
.
loginNameNotList
;
}
/**
* 设置 员工登录名
* @param loginNameNotList
*/
public
void
setLoginNameNotList
(
List
<
String
>
loginNameNotList
){
this
.
loginNameNotList
=
loginNameNotList
;
}
/**
* 获取 员工登录密码
* @return loginPwdList
*/
public
List
<
String
>
getLoginPwdList
(){
return
this
.
loginPwdList
;
}
/**
* 设置 员工登录密码
* @param loginPwdList
*/
public
void
setLoginPwdList
(
List
<
String
>
loginPwdList
){
this
.
loginPwdList
=
loginPwdList
;
}
/**
* 获取 员工登录密码
* @return loginPwdNotList
*/
public
List
<
String
>
getLoginPwdNotList
(){
return
this
.
loginPwdNotList
;
}
/**
* 设置 员工登录密码
* @param loginPwdNotList
*/
public
void
setLoginPwdNotList
(
List
<
String
>
loginPwdNotList
){
this
.
loginPwdNotList
=
loginPwdNotList
;
}
/**
* 获取 开始 最后登录时间
* @return lastLoginTimeStart
*/
public
String
getLastLoginTimeStart
(){
return
this
.
lastLoginTimeStart
;
}
/**
* 设置 开始 最后登录时间
* @param lastLoginTimeStart
*/
public
void
setLastLoginTimeStart
(
String
lastLoginTimeStart
){
this
.
lastLoginTimeStart
=
lastLoginTimeStart
;
}
/**
* 获取 结束 最后登录时间
* @return lastLoginTimeEnd
*/
public
String
getLastLoginTimeEnd
(){
return
this
.
lastLoginTimeEnd
;
}
/**
* 设置 结束 最后登录时间
* @param lastLoginTimeEnd
*/
public
void
setLastLoginTimeEnd
(
String
lastLoginTimeEnd
){
this
.
lastLoginTimeEnd
=
lastLoginTimeEnd
;
}
/**
/**
* 设置 序号,主键,自增长
* 设置 序号,主键,自增长
* @param id
* @param id
...
@@ -2575,6 +2687,45 @@ public class StaffQuery extends StaffEntity {
...
@@ -2575,6 +2687,45 @@ public class StaffQuery extends StaffEntity {
return
this
;
return
this
;
}
}
/**
* 设置 员工登录名
* @param loginName
*/
public
StaffQuery
loginName
(
String
loginName
){
setLoginName
(
loginName
);
return
this
;
}
/**
* 设置 员工登录名
* @param loginNameList
*/
public
StaffQuery
loginNameList
(
List
<
String
>
loginNameList
){
this
.
loginNameList
=
loginNameList
;
return
this
;
}
/**
* 设置 员工登录密码
* @param loginPwd
*/
public
StaffQuery
loginPwd
(
String
loginPwd
){
setLoginPwd
(
loginPwd
);
return
this
;
}
/**
* 设置 员工登录密码
* @param loginPwdList
*/
public
StaffQuery
loginPwdList
(
List
<
String
>
loginPwdList
){
this
.
loginPwdList
=
loginPwdList
;
return
this
;
}
/**
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
* @return orConditionList
...
...
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffMapper.xml
View file @
88511879
This diff is collapsed.
Click to expand it.
db/module.sql
View file @
88511879
...
@@ -43,6 +43,7 @@ CREATE TABLE mortals_xhx_staff(
...
@@ -43,6 +43,7 @@ CREATE TABLE mortals_xhx_staff(
`positionName`
varchar
(
128
)
COMMENT
'职位名称'
,
`positionName`
varchar
(
128
)
COMMENT
'职位名称'
,
`staffType`
tinyint
(
2
)
DEFAULT
'1'
COMMENT
'员工类型(1.全职,2.兼职,3.实习)'
,
`staffType`
tinyint
(
2
)
DEFAULT
'1'
COMMENT
'员工类型(1.全职,2.兼职,3.实习)'
,
`status`
tinyint
(
2
)
DEFAULT
'1'
COMMENT
'员工状态(1.正式,2.试用,3.离职)'
,
`status`
tinyint
(
2
)
DEFAULT
'1'
COMMENT
'员工状态(1.正式,2.试用,3.离职)'
,
`source`
tinyint
(
2
)
DEFAULT
'1'
COMMENT
'员工来源(1.外部,2.内部)'
,
`registerPath`
varchar
(
255
)
COMMENT
'入职登记表'
,
`registerPath`
varchar
(
255
)
COMMENT
'入职登记表'
,
`entryDate`
datetime
COMMENT
'入职时间'
,
`entryDate`
datetime
COMMENT
'入职时间'
,
`regularDate`
datetime
COMMENT
'转正时间'
,
`regularDate`
datetime
COMMENT
'转正时间'
,
...
@@ -52,16 +53,20 @@ CREATE TABLE mortals_xhx_staff(
...
@@ -52,16 +53,20 @@ CREATE TABLE mortals_xhx_staff(
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
`remarkId`
varchar
(
255
)
COMMENT
'备注id'
,
`remarkId`
varchar
(
255
)
COMMENT
'备注'
,
`source`
tinyint
(
2
)
DEFAULT
'1'
COMMENT
'员工来源(1.外部,2.内部)'
,
`picUri`
varchar
(
255
)
COMMENT
'相对图片pic'
,
`picUri`
varchar
(
255
)
COMMENT
'相对图片pic'
,
`serverIndexCode`
varchar
(
255
)
COMMENT
'图片资源唯一标识'
,
`serverIndexCode`
varchar
(
255
)
COMMENT
'图片资源唯一标识'
,
PRIMARY
KEY
(
`id`
)
`score`
decimal
(
10
,
2
)
COMMENT
'绩效分数'
,
`loginName`
varchar
(
64
)
NOT
NULL
COMMENT
'员工登录名'
,
`loginPwd`
varchar
(
64
)
NOT
NULL
COMMENT
'员工登录密码'
,
`lastLoginTime`
datetime
COMMENT
'最后登录时间'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'员工基本信息'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'员工基本信息'
;
-- ----------------------------
-- ----------------------------
-- 员工关怀信息表
-- 员工关怀信息表
-- ----------------------------
-- ----------------------------
...
...
doc/考勤绩效管理系统.docx
View file @
88511879
No preview for this file type
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