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
2bfd4bdf
Commit
2bfd4bdf
authored
Jan 29, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加权重
parent
bd411294
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
5 deletions
+72
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/base/system/param/web/ParamController.java
...om/mortals/xhx/base/system/param/web/ParamController.java
+30
-3
attendance-performance-manager/src/main/java/com/mortals/xhx/common/key/Constant.java
...er/src/main/java/com/mortals/xhx/common/key/Constant.java
+1
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/common/key/ParamKey.java
...er/src/main/java/com/mortals/xhx/common/key/ParamKey.java
+2
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/common/pdu/WeightPdu.java
...r/src/main/java/com/mortals/xhx/common/pdu/WeightPdu.java
+37
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowOwnerServiceImpl.java
...hx/module/window/service/impl/WindowOwnerServiceImpl.java
+2
-2
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/base/system/param/web/ParamController.java
View file @
2bfd4bdf
...
@@ -3,15 +3,16 @@ package com.mortals.xhx.base.system.param.web;
...
@@ -3,15 +3,16 @@ package com.mortals.xhx.base.system.param.web;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.annotation.RepeatSubmit
;
import
com.mortals.framework.annotation.RepeatSubmit
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.code.PageDisplayType
;
import
com.mortals.framework.common.code.PageDisplayType
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.util.FileUtil
;
import
com.mortals.framework.util.FileUtil
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.mortals.framework.web.BaseCRUDJsonMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonMappingController
;
import
com.mortals.xhx.base.system.param.model.ParamEntity
;
import
com.mortals.xhx.base.system.param.model.ParamEntity
;
...
@@ -24,6 +25,8 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -24,6 +25,8 @@ import javax.servlet.http.HttpServletResponse;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
ParamKey
.
SYS_PARAM_WEIGHT
;
/**
/**
* 参数信息
* 参数信息
*
*
...
@@ -59,6 +62,30 @@ public class ParamController extends BaseCRUDJsonBodyMappingController<ParamServ
...
@@ -59,6 +62,30 @@ public class ParamController extends BaseCRUDJsonBodyMappingController<ParamServ
return
result
;
return
result
;
}
}
@RequestMapping
(
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
},
value
=
"key"
)
@UnAuth
public
String
getValueByKey
(
@RequestParam
(
name
=
"key"
)
String
key
)
{
JSONObject
jsonObject
=
new
JSONObject
();
String
busiDesc
=
"通过key查询参数值"
+
this
.
getModuleDesc
();
try
{
String
value
=
this
.
service
.
getValueByKey
(
key
);
if
(
ObjectUtils
.
isEmpty
(
value
)
&&
key
.
equals
(
SYS_PARAM_WEIGHT
))
{
WeightPdu
weightPdu
=
new
WeightPdu
();
value
=
JSONObject
.
toJSONString
(
weightPdu
);
}
jsonObject
.
put
(
KEY_RESULT_DATA
,
value
);
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
jsonObject
.
put
(
KEY_RESULT_MSG
,
busiDesc
+
"成功!"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取异常"
,
e
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_FAILURE
);
jsonObject
.
put
(
KEY_RESULT_MSG
,
super
.
convertException
(
e
));
}
return
jsonObject
.
toJSONString
();
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
FileUtil
.
delete
(
"E:\\pic\\1.png"
);
FileUtil
.
delete
(
"E:\\pic\\1.png"
);
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/common/key/Constant.java
View file @
2bfd4bdf
...
@@ -114,4 +114,5 @@ public final class Constant {
...
@@ -114,4 +114,5 @@ public final class Constant {
public
static
final
String
DISTRIBUTE_PATH
=
"distribute_path"
;
public
static
final
String
DISTRIBUTE_PATH
=
"distribute_path"
;
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/common/key/ParamKey.java
View file @
2bfd4bdf
...
@@ -25,4 +25,6 @@ public class ParamKey {
...
@@ -25,4 +25,6 @@ public class ParamKey {
public
static
String
SYS_PARAM_USER_URL
=
"user_url"
;
public
static
String
SYS_PARAM_USER_URL
=
"user_url"
;
public
static
String
SYS_PARAM_WEIGHT
=
"weight"
;
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/common/pdu/WeightPdu.java
0 → 100644
View file @
2bfd4bdf
package
com.mortals.xhx.common.pdu
;
import
lombok.Data
;
/**
* 权重pdu
*/
@Data
public
class
WeightPdu
{
/**
* 自评权重
*/
private
Integer
selfWeight
=
20
;
/**
* 考勤权重
*/
private
Integer
attendWeight
=
20
;
/**
* 效能权重
*/
private
Integer
effectWeight
=
20
;
/**
* 办件权重
*/
private
Integer
goworkWeight
=
20
;
/**
* 评价权重
*/
private
Integer
reviewWeight
=
20
;
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowOwnerServiceImpl.java
View file @
2bfd4bdf
...
@@ -133,8 +133,6 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
...
@@ -133,8 +133,6 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
StaffEntity
staffEntity
=
staffService
.
selectOne
(
new
StaffQuery
().
phoneNumber
(
mobile
));
StaffEntity
staffEntity
=
staffService
.
selectOne
(
new
StaffQuery
().
phoneNumber
(
mobile
));
if
(!
ObjectUtils
.
isEmpty
(
staffEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
staffEntity
))
{
return
staffEntity
;
return
staffEntity
;
}
else
{
}
}
return
getStaffEntityByName
(
name
);
return
getStaffEntityByName
(
name
);
}
else
if
(!
ObjectUtils
.
isEmpty
(
name
))
{
}
else
if
(!
ObjectUtils
.
isEmpty
(
name
))
{
...
@@ -146,6 +144,8 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
...
@@ -146,6 +144,8 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
}
}
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
return
Rest
.
ok
(
staffEntityList
);
return
Rest
.
ok
(
staffEntityList
);
}
else
{
}
}
return
Rest
.
fail
(
"获取窗口工作人员失败"
);
return
Rest
.
fail
(
"获取窗口工作人员失败"
);
}
}
...
...
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