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
9297151e
Commit
9297151e
authored
Aug 14, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
c8172f12
c3092e75
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
48 additions
and
80 deletions
+48
-80
attendance-performance-manager-ui/admin/src/views/SSO.vue
attendance-performance-manager-ui/admin/src/views/SSO.vue
+8
-60
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/list.vue
...nager-ui/admin/src/views/attendance/leave/record/list.vue
+1
-1
attendance-performance-manager-ui/admin/src/views/attendance/record/error/list.vue
...nager-ui/admin/src/views/attendance/record/error/list.vue
+2
-2
attendance-performance-manager-ui/admin/vue.config.js
attendance-performance-manager-ui/admin/vue.config.js
+1
-1
attendance-performance-manager/pom.xml
attendance-performance-manager/pom.xml
+1
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/base/framework/interceptor/AuthTokenServiceImpl.java
.../xhx/base/framework/interceptor/AuthTokenServiceImpl.java
+2
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/base/login/web/LoginController.java
.../java/com/mortals/xhx/base/login/web/LoginController.java
+19
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceStatEntity.java
...als/xhx/module/attendance/model/AttendanceStatEntity.java
+1
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/vo/AttendanceStatVo.java
...tals/xhx/module/attendance/model/vo/AttendanceStatVo.java
+4
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceRecordErrorServiceImpl.java
...ndance/service/impl/AttendanceRecordErrorServiceImpl.java
+7
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordErrorController.java
...odule/attendance/web/AttendanceRecordErrorController.java
+1
-1
common-lib/src/main/java/com/mortals/xhx/feign/user/IUserFeign.java
.../src/main/java/com/mortals/xhx/feign/user/IUserFeign.java
+1
-1
No files found.
attendance-performance-manager-ui/admin/src/views/SSO.vue
View file @
9297151e
...
...
@@ -5,80 +5,28 @@
</
template
>
<
script
>
import
jwt_decode
from
"
jwt-decode
"
;
export
default
{
name
:
"
sso
"
,
created
()
{},
mounted
()
{
let
token
=
this
.
$route
.
query
.
token
;
console
.
log
(
"
token:
"
+
token
);
console
.
log
(
"
解析后的token:
"
,
jwt_decode
(
token
));
//const decode = jwt_decode(data.normal_login_token).accountId; // 解析
let
siteid
=
this
.
$route
.
query
.
siteid
;
if
(
token
)
{
//本地登录后跳转
this
.
form
.
loginName
=
jwt_decode
(
token
).
userInfo
.
account
;
this
.
form
.
password
=
jwt_decode
(
token
).
userInfo
.
password
;
this
.
$route
.
query
.
sysName
?
localStorage
.
setItem
(
"
sysName
"
,
this
.
$route
.
query
.
sysName
)
:
""
;
this
.
$route
.
query
.
sysLogo
?
localStorage
.
setItem
(
"
sysLogo
"
,
this
.
$route
.
query
.
sysLogo
)
:
""
;
this
.
$route
.
query
.
sysName
?
(
document
.
title
=
this
.
$route
.
query
.
sysName
)
:
""
;
/* this.form.loginName="admin"
this.form.password="scsmile"*/
this
.
login
();
//window.sessionStorage.setItem("token", token);
// this.$router.push('/index') // 有token直接跳转首页
window
.
sessionStorage
.
setItem
(
"
token
"
,
token
);
window
.
sessionStorage
.
setItem
(
"
siteid
"
,
siteid
);
this
.
$router
.
push
(
"
/index
"
);
// 有token直接跳转首页
}
else
{
this
.
$message
({
message
:
"
没有权限,正在跳转登录页面...
"
,
center
:
true
,
});
setTimeout
(
function
()
{
setTimeout
(
function
()
{
window
.
location
.
href
=
process
.
env
.
VUE_APP_PORTAL_URL
==
"
undefined
"
?
"
http://192.168.0.98:11072
"
:
process
.
env
.
VUE_APP_PORTAL_URL
;
process
.
env
.
VUE_APP_PORTAL_URL
==
"
undefined
"
?
"
http://192.168.0.98:11072
"
:
process
.
env
.
VUE_APP_PORTAL_URL
;
//this.$router.push('/login')
},
1000
);
}
},
methods
:
{
login
()
{
this
.
loading
=
true
;
this
.
$post
(
"
/login/login
"
,
this
.
form
)
.
then
(
this
.
loginSuccess
)
.
catch
(
this
.
loginFail
);
},
loginSuccess
({
data
})
{
console
.
log
(
"
userData
"
,
data
);
this
.
$store
.
commit
(
"
setUserData
"
,
data
);
this
.
$router
.
push
(
"
/index
"
);
// 有token直接跳转首页
/* this.$router.replace({
path: this.redirect,
});*/
},
loginFail
(
error
)
{
this
.
loading
=
false
;
this
.
$message
.
error
(
error
.
message
);
},
},
data
()
{
return
{
form
:
{
loginName
:
""
,
password
:
""
,
securityCode
:
""
,
},
redirect
:
this
.
$route
.
query
.
redirect
,
loading
:
true
,
};
},
};
</
script
>
...
...
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/list.vue
View file @
9297151e
...
...
@@ -116,7 +116,7 @@ export default {
// {label: "所属部门id", prop: "deptId", formatter: this.formatter},
{
label
:
"
所属部门
"
,
prop
:
"
dept
Name
"
},
{
label
:
"
所属部门
"
,
prop
:
"
dept
Id
"
,
formatter
:
this
.
formatter
},
{
label
:
"
电话号码
"
,
prop
:
"
phoneNumber
"
},
...
...
attendance-performance-manager-ui/admin/src/views/attendance/record/error/list.vue
View file @
9297151e
...
...
@@ -124,9 +124,9 @@ export default {
label
:
"
异常开始时间
"
,
},
{
name
:
"
attendanceDat
eEnd
"
,
name
:
"
errorDateTim
eEnd
"
,
type
:
"
date
"
,
label
:
"
errorDateTimeEnd
"
,
label
:
"
异常结束时间
"
,
},
{
name
:
"
staffName
"
,
...
...
attendance-performance-manager-ui/admin/vue.config.js
View file @
9297151e
...
...
@@ -13,7 +13,7 @@ module.exports = {
devServer
:
{
inline
:
true
,
disableHostCheck
:
true
,
port
:
808
6
,
port
:
808
7
,
hot
:
true
,
//自动保存
proxy
:
{
'
/attendance
'
:
{
...
...
attendance-performance-manager/pom.xml
View file @
9297151e
...
...
@@ -61,7 +61,7 @@
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
-dev
</profiles.nacos.namespace>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.sms.smsSendUrl>
http://127.0.0.1:8089/api/index/index
</profiles.sms.smsSendUrl>
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/base/framework/interceptor/AuthTokenServiceImpl.java
View file @
9297151e
...
...
@@ -91,8 +91,9 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
String
uuid
=
(
String
)
claims
.
get
(
SysConstains
.
LOGIN_USER_KEY
);
String
userKey
=
getTokenKey
(
uuid
);
//cacheService.select(portalDb);
cacheService
.
select
(
0
);
String
userStr
=
cacheService
.
get
(
userKey
);
//
cacheService.select(db);
cacheService
.
select
(
db
);
if
(
StringUtils
.
isNotEmpty
(
userStr
))
{
UserEntity
userEntity
=
JSONObject
.
parseObject
(
userStr
,
UserEntity
.
class
);
userEntity
.
setToken
(
token
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/base/login/web/LoginController.java
View file @
9297151e
...
...
@@ -25,6 +25,8 @@ import com.mortals.xhx.common.code.GoWorkResultEnum;
import
com.mortals.xhx.common.code.OffWorkResultEnum
;
import
com.mortals.xhx.common.key.RedisKey
;
import
com.mortals.xhx.common.pdu.HomeStatInfo
;
import
com.mortals.xhx.common.pdu.user.UserPdu
;
import
com.mortals.xhx.feign.user.IUserFeign
;
import
com.mortals.xhx.module.attendance.model.AttendanceRecordEntity
;
import
com.mortals.xhx.module.attendance.model.AttendanceRecordQuery
;
import
com.mortals.xhx.module.attendance.model.AttendanceVacationBalanceQuery
;
...
...
@@ -80,10 +82,26 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
@Autowired
private
DeptService
deptService
;
@Autowired
private
IUserFeign
userFeign
;
@RequestMapping
(
"login"
)
public
String
login
(
@RequestBody
LoginForm
loginForm
)
throws
Exception
{
String
loginName
=
loginForm
.
getLoginName
();
String
password
=
loginForm
.
getPassword
();
UserPdu
userPdu
=
new
UserPdu
();
userPdu
.
setLoginName
(
loginName
);
userPdu
.
setPassword
(
password
);
userPdu
.
setSecurityCode
(
"admin"
);
String
resp
=
userFeign
.
portalLogin
(
userPdu
);
return
resp
;
/*
JSONObject ret = new JSONObject();
String loginName = loginForm.getLoginName();
String password = loginForm.getPassword();
...
...
@@ -137,7 +155,7 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
ret.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE);
ret.put(KEY_RESULT_MSG, super.convertException(e));
return ret.toJSONString();
}
}
*/
}
@RequestMapping
(
"logout"
)
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceStatEntity.java
View file @
9297151e
...
...
@@ -136,7 +136,7 @@ public class AttendanceStatEntity extends AttendanceStatVo {
/**
* 考勤汇总-出勤率(%)
*/
@Excel
(
name
=
"考勤汇总-出勤率"
)
@Excel
(
name
=
"考勤汇总-出勤率"
,
percentEnabled
=
true
,
suffix
=
"%"
,
scale
=
4
)
private
BigDecimal
attendanceRate
;
/**
* 考勤汇总-未按规定打卡(含忘记打卡)
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/vo/AttendanceStatVo.java
View file @
9297151e
package
com.mortals.xhx.module.attendance.model.vo
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.attendance.model.AttendanceStaffStatEntity
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
* 考勤汇总信息视图对象
...
...
@@ -19,4 +21,6 @@ public class AttendanceStatVo extends BaseEntityLong {
private
String
startTime
;
private
String
endTime
;
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceRecordErrorServiceImpl.java
View file @
9297151e
...
...
@@ -83,11 +83,6 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At
//判断后打绩效
String
ruleCode
=
""
;
if
(
ErrorStatusEnum
.
早退
.
getValue
()
==
DataUtil
.
converStr2Int
(
entity
.
getProcessResult
(),
3
))
{
if
(
ObjectUtils
.
isEmpty
(
entity
.
getErrorDateTime
())
||
ObjectUtils
.
isEmpty
(
entity
.
getGoOffDateTime
()))
{
//早退5分钟内
ruleCode
=
"ATTEND1002"
;
}
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getErrorDateTime
())
&&
!
ObjectUtils
.
isEmpty
(
entity
.
getGoOffDateTime
()))
{
//判断时间差定义
Long
earlyMin
=
DateUtil
.
between
(
entity
.
getErrorDateTime
(),
entity
.
getGoOffDateTime
(),
DateUnit
.
MINUTE
);
...
...
@@ -104,12 +99,11 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At
//早退5分钟内
ruleCode
=
"ATTEND1006"
;
}
}
else
{
ruleCode
=
"ATTEND1002"
;
}
}
else
if
(
ErrorStatusEnum
.
迟到
.
getValue
()
==
DataUtil
.
converStr2Int
(
entity
.
getProcessResult
(),
3
))
{
if
(
ObjectUtils
.
isEmpty
(
entity
.
getErrorDateTime
())
||
ObjectUtils
.
isEmpty
(
entity
.
getGoOffDateTime
()))
{
//早退5分钟内
ruleCode
=
"ATTEND1001"
;
}
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getErrorDateTime
())
&&
!
ObjectUtils
.
isEmpty
(
entity
.
getGoOffDateTime
()))
{
Long
lateMin
=
DateUtil
.
between
(
entity
.
getErrorDateTime
(),
entity
.
getGoOffDateTime
(),
DateUnit
.
MINUTE
);
...
...
@@ -125,6 +119,9 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At
//迟到60分钟以上
ruleCode
=
"ATTEND1005"
;
}
}
else
{
//早退5分钟内
ruleCode
=
"ATTEND1001"
;
}
}
else
if
(
ErrorStatusEnum
.
缺卡
.
getValue
()
==
DataUtil
.
converStr2Int
(
entity
.
getProcessResult
(),
3
))
{
ruleCode
=
"ATTEND1007"
;
...
...
@@ -139,7 +136,7 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At
attendSaveReq
.
setActualAttendTime
(
entity
.
getActualAttendanceDateTime
());
attendSaveReq
.
setErrorResult
(
entity
.
getRemark
());
attendSaveReq
.
setTitle
(
"考勤
:"
+
ErrorStatusEnum
.
getByValue
(
entity
.
getErrorStatus
()).
getDesc
()
);
attendSaveReq
.
setTitle
(
"考勤
"
);
attendSaveReq
.
setHappenTime
(
entity
.
getErrorDateTime
());
attendSaveReq
.
setRuleCode
(
ruleCode
);
attendSaveReq
.
setStaffId
(
entity
.
getStaffId
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordErrorController.java
View file @
9297151e
...
...
@@ -234,7 +234,7 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont
@Override
protected
void
doListBefore
(
AttendanceRecordErrorEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
query
.
getOrderColList
()))
{
if
(
ObjectUtils
.
isEmpty
(
query
.
getOrderColList
()))
{
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"errorDateTime"
,
OrderCol
.
DESCENDING
),
new
OrderCol
(
"staffName"
,
OrderCol
.
DESCENDING
)));
}
else
{
query
.
getOrderColList
().
add
(
new
OrderCol
(
"errorDateTime"
,
OrderCol
.
DESCENDING
));
...
...
common-lib/src/main/java/com/mortals/xhx/feign/user/IUserFeign.java
View file @
9297151e
...
...
@@ -18,7 +18,7 @@ import java.util.List;
* @author zxfei
* @date 2022-07-06
*/
//
@FeignClient(name = "portal-manager", path = "/zwfw", fallbackFactory = UserFeignFallbackFactory.class)
@FeignClient
(
name
=
"portal-manager"
,
path
=
"/zwfw"
,
fallbackFactory
=
UserFeignFallbackFactory
.
class
)
public
interface
IUserFeign
extends
IFeign
{
...
...
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