Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
ba9bee0d
Commit
ba9bee0d
authored
Feb 26, 2024
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
e843445c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
CbQuantitySummaryActual.java
...in/java/com/dsk/cscec/domain/CbQuantitySummaryActual.java
+2
-2
CbQuantitySummaryServiceImpl.java
.../dsk/cscec/service/impl/CbQuantitySummaryServiceImpl.java
+2
-2
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/domain/CbQuantitySummaryActual.java
View file @
ba9bee0d
...
@@ -78,9 +78,9 @@ public class CbQuantitySummaryActual implements Serializable {
...
@@ -78,9 +78,9 @@ public class CbQuantitySummaryActual implements Serializable {
*/
*/
private
Date
createTime
;
private
Date
createTime
;
/**
/**
* 更新人
id
* 更新人
*/
*/
private
Long
updateId
;
private
String
updateBy
;
/**
/**
* 更新时间
* 更新时间
*/
*/
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/service/impl/CbQuantitySummaryServiceImpl.java
View file @
ba9bee0d
...
@@ -107,13 +107,13 @@ public class CbQuantitySummaryServiceImpl extends ServiceImpl<CbQuantitySummaryM
...
@@ -107,13 +107,13 @@ public class CbQuantitySummaryServiceImpl extends ServiceImpl<CbQuantitySummaryM
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateActual
(
List
<
CbQuantitySummaryActual
>
list
)
{
public
void
updateActual
(
List
<
CbQuantitySummaryActual
>
list
)
{
if
(
ObjectUtils
.
isEmpty
(
list
))
throw
new
BeanException
(
"数据不能为空"
);
if
(
ObjectUtils
.
isEmpty
(
list
))
throw
new
BeanException
(
"数据不能为空"
);
Long
userId
=
LoginHelper
.
getUserId
();
String
nickName
=
LoginHelper
.
getLoginUser
().
getNickname
();
for
(
CbQuantitySummaryActual
actual
:
list
)
{
for
(
CbQuantitySummaryActual
actual
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
actual
.
getCbQuantitySummaryId
()))
throw
new
BeanException
(
"基础数据id不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
actual
.
getCbQuantitySummaryId
()))
throw
new
BeanException
(
"基础数据id不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
actual
.
getQuantities
()))
throw
new
BeanException
(
"工程量(本月用料)不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
actual
.
getQuantities
()))
throw
new
BeanException
(
"工程量(本月用料)不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
actual
.
getRecordDate
()))
throw
new
BeanException
(
"填写月份不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
actual
.
getRecordDate
()))
throw
new
BeanException
(
"填写月份不能为空!"
);
actual
.
setId
(
ObjectUtils
.
isEmpty
(
actual
.
getId
())
?
SecureUtil
.
md5
(
actual
.
getCbQuantitySummaryId
()
+
actual
.
getRecordDate
())
:
actual
.
getId
());
actual
.
setId
(
ObjectUtils
.
isEmpty
(
actual
.
getId
())
?
SecureUtil
.
md5
(
actual
.
getCbQuantitySummaryId
()
+
actual
.
getRecordDate
())
:
actual
.
getId
());
actual
.
setUpdate
Id
(
userId
);
actual
.
setUpdate
By
(
nickName
);
boolean
b
=
baseActualService
.
saveOrUpdate
(
actual
);
boolean
b
=
baseActualService
.
saveOrUpdate
(
actual
);
if
(!
b
)
{
if
(!
b
)
{
log
.
error
(
"CbQuantitySummaryServiceImpl.updateActual() data insert error! data:"
+
JSONUtil
.
toJsonStr
(
actual
));
log
.
error
(
"CbQuantitySummaryServiceImpl.updateActual() data insert error! data:"
+
JSONUtil
.
toJsonStr
(
actual
));
...
...
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