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
c047f37a
Commit
c047f37a
authored
Feb 21, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.fixBug:厂区名称修改时重新新增一条记录
parent
d423d2ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
ServiceHPPZ011.java
.../java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ011.java
+4
-3
HPPZ011.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ011.xml
+1
-1
No files found.
src/main/java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ011.java
View file @
c047f37a
...
@@ -81,16 +81,17 @@ public class ServiceHPPZ011 extends ServiceBase {
...
@@ -81,16 +81,17 @@ public class ServiceHPPZ011 extends ServiceBase {
for
(
Map
resultRow
:
resultRows
)
{
for
(
Map
resultRow
:
resultRows
)
{
HPPZ011
fPz011
=
new
HPPZ011
();
HPPZ011
fPz011
=
new
HPPZ011
();
fPz011
.
fromMap
(
resultRow
);
fPz011
.
fromMap
(
resultRow
);
// 设置生产组名称
fPz011
.
setGroupName
(
HPXSTools
.
XsOrg
.
get
(
fPz011
.
getGroupCode
()).
getOrgCname
());
// 校验厂区名是否存在
// 校验厂区名是否存在
HPPZ011
dbPz011
=
HPPZTools
.
HpPz011
.
getByName
(
fPz011
.
getFactoryName
());
HPPZ011
dbPz011
=
HPPZTools
.
HpPz011
.
getByName
(
fPz011
.
getFactoryName
());
if
(
dbPz011
!=
null
)
{
if
(
dbPz011
!=
null
)
{
fPz011
.
setFactoryCode
(
dbPz011
.
getFactoryCode
());
fPz011
.
setFactoryCode
(
dbPz011
.
getFactoryCode
());
}
else
{
}
else
{
// 生成厂区编码
// 生成厂区编码
,同时新增记录
fPz011
.
setFactoryCode
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
FACTORY_CODE
));
fPz011
.
setFactoryCode
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
FACTORY_CODE
));
fPz011
.
setId
(
null
);
}
}
// 设置生产组名称
fPz011
.
setGroupName
(
HPXSTools
.
XsOrg
.
get
(
fPz011
.
getGroupCode
()).
getOrgCname
());
if
(
fPz011
.
getId
()
==
null
||
fPz011
.
getId
()
==
0
)
{
if
(
fPz011
.
getId
()
==
null
||
fPz011
.
getId
()
==
0
)
{
this
.
add
(
fPz011
);
this
.
add
(
fPz011
);
}
else
{
}
else
{
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ011.xml
View file @
c047f37a
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<sql
id=
"order"
>
<sql
id=
"order"
>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"order"
>
<isNotEmpty
property=
"order"
>
$order
By
$
$order$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"order"
>
<isEmpty
property=
"order"
>
A.ID ASC
A.ID ASC
...
...
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