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
0540ec2f
Commit
0540ec2f
authored
Mar 12, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改每日考勤记录重复多条情况
parent
e8638bff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/base/system/param/service/impl/ParamServiceImpl.java
.../xhx/base/system/param/service/impl/ParamServiceImpl.java
+9
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/base/system/param/web/ParamController.java
...om/mortals/xhx/base/system/param/web/ParamController.java
+17
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/base/system/param/service/impl/ParamServiceImpl.java
View file @
0540ec2f
package
com.mortals.xhx.base.system.param.service.impl
;
package
com.mortals.xhx.base.system.param.service.impl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.IParam
;
import
com.mortals.framework.service.IParam
;
import
com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl
;
import
com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl
;
import
com.mortals.framework.util.DataUtil
;
import
com.mortals.framework.util.DataUtil
;
...
@@ -183,6 +184,14 @@ public class ParamServiceImpl extends AbstractCRUDCacheServiceImpl<ParamDao, Par
...
@@ -183,6 +184,14 @@ public class ParamServiceImpl extends AbstractCRUDCacheServiceImpl<ParamDao, Par
log
.
debug
(
"cannot conver key["
+
key
+
"]'s value["
+
value
+
"] to boolean, use default value["
+
defaultValue
+
"]"
);
log
.
debug
(
"cannot conver key["
+
key
+
"]'s value["
+
value
+
"] to boolean, use default value["
+
defaultValue
+
"]"
);
return
defaultValue
;
return
defaultValue
;
}
}
}
@Override
protected
void
saveBefore
(
ParamEntity
entity
,
Context
context
)
throws
AppException
{
super
.
saveBefore
(
entity
,
context
);
}
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/base/system/param/web/ParamController.java
View file @
0540ec2f
...
@@ -5,10 +5,12 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -5,10 +5,12 @@ 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.annotation.UnAuth
;
import
com.mortals.framework.common.code.PageDisplayType
;
import
com.mortals.framework.common.code.PageDisplayType
;
import
com.mortals.framework.exception.AppException
;
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.base.system.param.model.ParamQuery
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
...
@@ -88,6 +90,21 @@ public class ParamController extends BaseCRUDJsonBodyMappingController<ParamServ
...
@@ -88,6 +90,21 @@ public class ParamController extends BaseCRUDJsonBodyMappingController<ParamServ
return
jsonObject
.
toJSONString
();
return
jsonObject
.
toJSONString
();
}
}
@Override
protected
void
saveBefore
(
ParamEntity
entity
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
super
.
saveBefore
(
entity
,
model
,
context
);
String
paramKey
=
entity
.
getParamKey
();
ParamQuery
paramQuery
=
new
ParamQuery
();
paramQuery
.
setParamKey
(
paramKey
);
ParamEntity
paramEntity
=
this
.
service
.
selectOne
(
paramQuery
);
if
(!
ObjectUtils
.
isEmpty
(
paramEntity
))
{
entity
.
setCreateUserId
(
paramEntity
.
getId
());
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
FileUtil
.
delete
(
"E:\\pic\\1.png"
);
FileUtil
.
delete
(
"E:\\pic\\1.png"
);
}
}
...
...
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