Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
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
platform
hp-smart
Commits
9a02e794
Commit
9a02e794
authored
Jan 26, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
ssh://10.70.33.7:32359/smart/hp-smart
into dev
parents
57edc4f2
24767f11
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+18
-8
DaoUtils.java
src/main/java/com/baosight/hpjx/core/dao/DaoUtils.java
+2
-2
ServiceHPSC002.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
+10
-1
HPSC002.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002.xml
+6
-5
No files found.
src/main/java/com/baosight/hpjx/core/dao/DaoUtils.java
View file @
9a02e794
...
@@ -233,7 +233,7 @@ public class DaoUtils {
...
@@ -233,7 +233,7 @@ public class DaoUtils {
String
userId
;
String
userId
;
try
{
try
{
userId
=
MapUtils
.
getString
(
map
,
"updatedBy"
);
userId
=
MapUtils
.
getString
(
map
,
"updatedBy"
);
if
(
StringUtils
.
is
Empty
(
userId
))
{
if
(
StringUtils
.
is
Blank
(
userId
))
{
userId
=
UserSession
.
getLoginName
();
userId
=
UserSession
.
getLoginName
();
userId
=
userId
==
null
||
userId
.
length
()
>
32
?
"System"
:
userId
;
userId
=
userId
==
null
||
userId
.
length
()
>
32
?
"System"
:
userId
;
}
}
...
@@ -244,7 +244,7 @@ public class DaoUtils {
...
@@ -244,7 +244,7 @@ public class DaoUtils {
// 修改人名称
// 修改人名称
String
userName
=
MapUtils
.
getString
(
map
,
"updatedName"
);
String
userName
=
MapUtils
.
getString
(
map
,
"updatedName"
);
try
{
try
{
if
(
StringUtils
.
is
Empty
(
userName
))
{
if
(
StringUtils
.
is
Blank
(
userName
))
{
userName
=
UserSession
.
getLoginCName
();
userName
=
UserSession
.
getLoginCName
();
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
View file @
9a02e794
...
@@ -117,7 +117,16 @@ public class ServiceHPSC002 extends ServiceBase {
...
@@ -117,7 +117,16 @@ public class ServiceHPSC002 extends ServiceBase {
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz002
.
fromMap
(
map
);
hppz002
.
fromMap
(
map
);
DaoUtils
.
update
(
"HPSC001.update"
,
hppz002
.
toMap
());
BigDecimal
num
=
hppz002
.
getNum
();
BigDecimal
unitWt
=
hppz002
.
getUnitWt
();
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
BigDecimal
totalWt
=
new
BigDecimal
(
decimalFormat
.
format
(
Math
.
round
(
num
.
multiply
(
unitWt
).
floatValue
())));
hppz002
.
setDelStatus
(
CommonConstant
.
YesNo
.
NO_0
.
intValue
());
hppz002
.
setTotalWt
(
totalWt
);
if
(
StringUtils
.
isNotEmpty
(
hppz002
.
getPrdtCode
())
&&
!
hppz002
.
getParentId
().
equals
(
"root"
))
{
hppz002
.
setPrdtName
(
HPPZTools
.
getPz004ByCode
(
hppz002
.
getPrdtCode
()).
getInventName
());
}
DaoUtils
.
update
(
"HPSC002.update"
,
hppz002
.
toMap
());
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"修改成功!"
);
inInfo
.
setMsg
(
"修改成功!"
);
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002.xml
View file @
9a02e794
...
@@ -95,11 +95,12 @@
...
@@ -95,11 +95,12 @@
<isNotEmpty
prepend=
" AND "
property=
"status"
>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
STATUS = #status#
</isNotEmpty>
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
ORDER BY CREATED_TIME DESC
<isEmpty
property=
"orderBy"
>
<!-- <dynamic prepend="ORDER BY">-->
CREATED_TIME DESC
<!-- <isEmpty property="orderBy">-->
</isEmpty>
<!-- CREATED_TIME DESC-->
</dynamic>
<!-- </isEmpty>-->
<!-- </dynamic>-->
</select>
</select>
...
...
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