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
47f061eb
Commit
47f061eb
authored
Jan 25, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购订单;
parent
80620a6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
ServiceHPKC001.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
+1
-1
ServiceHPKC002.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
+5
-7
No files found.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
View file @
47f061eb
...
...
@@ -92,7 +92,7 @@ public class ServiceHPKC001 extends ServiceBase {
// 设置基础信息
this
.
setBaseInfo
(
fKc001
);
// 生成入库单号
fKc001
.
setPurchaseCode
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
OTHER_ENTER_NO
));
fKc001
.
setPurchaseCode
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
HPKC001_NUMBER
));
DaoUtils
.
insert
(
HPKC001
.
INSERT
,
fKc001
);
// 修改库存
HPKCTools
.
updateStock
(
fKc001
.
getWhCode
(),
fKc001
.
getInventRecordId
(),
fKc001
.
getAmount
(),
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
View file @
47f061eb
...
...
@@ -76,11 +76,9 @@ public class ServiceHPKC002 extends ServiceBase {
List
query
=
dao
.
query
(
"HPPZ007.queryByWhCode"
,
params
);
insertEntity
.
setWhName
(((
HPPZ007
)
query
.
get
(
0
)).
getWhName
());
//存货类型
insertEntity
.
set
MaterialTypeName
(
InventTypeEnun
.
getNameByCode
(
insertEntity
.
getMaterial
Type
()));
insertEntity
.
set
InventType
(
InventTypeEnun
.
getNameByCode
(
insertEntity
.
getInvent
Type
()));
// 生成单据号
insertEntity
.
setDocumentCode
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
HPKC002_NUMBER
));
insertEntity
.
setStatus
(
1
);
insertEntity
.
setApprovalStatus
(
0
);
insertEntity
.
setReqCode
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
HPKC002_NUMBER
));
dao
.
insert
(
"HPKC002.insert"
,
insertEntity
);
}
inInfo
=
this
.
query
(
inInfo
);
...
...
@@ -107,8 +105,8 @@ public class ServiceHPKC002 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC002
entity
=
new
HPKC002
();
entity
.
fromMap
(
resultRows
.
get
(
i
));
AssertUtils
.
isEmpty
(
entity
.
get
Material
Type
(),
"存货类型不能为空"
);
AssertUtils
.
isEmpty
(
entity
.
get
Material
Code
(),
"物料不能为空"
);
AssertUtils
.
isEmpty
(
entity
.
get
Invent
Type
(),
"存货类型不能为空"
);
AssertUtils
.
isEmpty
(
entity
.
get
Invent
Code
(),
"物料不能为空"
);
AssertUtils
.
isEmpty
(
entity
.
getWhCode
(),
"仓库不能为空"
);
}
...
...
@@ -135,7 +133,7 @@ public class ServiceHPKC002 extends ServiceBase {
List
query
=
dao
.
query
(
"HPPZ007.queryByWhCode"
,
params
);
updateEntity
.
setWhName
(((
HPPZ007
)
query
.
get
(
0
)).
getWhName
());
//存货类型
updateEntity
.
set
MaterialTypeName
(
InventTypeEnun
.
getNameByCode
(
updateEntity
.
getMaterial
Type
()));
updateEntity
.
set
InventType
(
InventTypeEnun
.
getNameByCode
(
updateEntity
.
getInvent
Type
()));
dao
.
insert
(
"HPKC002.update"
,
updateEntity
);
}
inInfo
=
this
.
query
(
inInfo
);
...
...
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