Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
郑小冰
/
orthopedics
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cd063f1e
authored
Nov 05, 2019
by
ice
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改下推采购订单是集团请配的现有量填充
parent
1efb21b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
src/main/java/orthopedics/controller/bookcity/PurOrderHeaderController.java
src/main/java/orthopedics/controller/bookcity/PurOrderHeaderController.java
View file @
cd063f1e
...
@@ -80,8 +80,10 @@ public class PurOrderHeaderController {
...
@@ -80,8 +80,10 @@ public class PurOrderHeaderController {
}
}
purOrderLine
.
setItemId
(
invItem
.
getId
());
purOrderLine
.
setItemId
(
invItem
.
getId
());
}
}
Integer
sumItemIdQuantity
=
transactionServer
.
findByOrgIdAndItemId
(
purOrderHeaderPage
.
getOrgId
(),
purOrderLine
.
getItemId
());
if
(
"000000006c60dba1016c60f588e00002"
.
equals
(
purOrderHeaderPage
.
getOrderType
()))
{
purOrderLine
.
setAttribute1
(
String
.
valueOf
(
sumItemIdQuantity
));
Integer
sumItemIdQuantity
=
transactionServer
.
findByOrgIdAndItemId
(
"2c9007626dde3f4f016deda2151f1a42"
,
purOrderLine
.
getItemId
());
purOrderLine
.
setAttribute1
(
String
.
valueOf
(
sumItemIdQuantity
));
}
}
}
PurOrderHeader
purOrderHeader
=
new
PurOrderHeader
();
PurOrderHeader
purOrderHeader
=
new
PurOrderHeader
();
BeanUtils
.
copyProperties
(
purOrderHeaderPage
,
purOrderHeader
);
BeanUtils
.
copyProperties
(
purOrderHeaderPage
,
purOrderHeader
);
...
@@ -138,7 +140,7 @@ public class PurOrderHeaderController {
...
@@ -138,7 +140,7 @@ public class PurOrderHeaderController {
List
<
PurOrderLine
>
purOrderLineList
=
purOrderLineService
.
findOrderLineByHeaderId
(
purOrderHeader
.
getId
());
List
<
PurOrderLine
>
purOrderLineList
=
purOrderLineService
.
findOrderLineByHeaderId
(
purOrderHeader
.
getId
());
for
(
PurOrderLine
purOrderLine
:
purOrderLineList
)
{
for
(
PurOrderLine
purOrderLine
:
purOrderLineList
)
{
Integer
quantity
=
Integer
.
valueOf
(
purOrderLine
.
getQuantity
());
Integer
quantity
=
Integer
.
valueOf
(
purOrderLine
.
getQuantity
());
Integer
newSumQuantity
=
transactionServer
.
findByOrgIdAndItemId
(
purOrderHeader
.
getOrgId
()
,
purOrderLine
.
getItemId
());
Integer
newSumQuantity
=
transactionServer
.
findByOrgIdAndItemId
(
"2c9007626dde3f4f016deda2151f1a42"
,
purOrderLine
.
getItemId
());
if
(
null
==
purOrderLine
.
getAttribute1
()
||
""
.
equals
(
purOrderLine
.
getAttribute1
())){
if
(
null
==
purOrderLine
.
getAttribute1
()
||
""
.
equals
(
purOrderLine
.
getAttribute1
())){
purOrderLineService
.
updateOrderLineSumQuantity
(
String
.
valueOf
(
newSumQuantity
),
purOrderLine
.
getId
());
purOrderLineService
.
updateOrderLineSumQuantity
(
String
.
valueOf
(
newSumQuantity
),
purOrderLine
.
getId
());
}
else
{
}
else
{
...
...
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