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
99131737
Commit
99131737
authored
Jan 31, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断存货档案是否存在,如果存在返回存货档案,否则新增并返回存货档案
parent
f1faf702
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
HPPZTools.java
src/main/java/com/baosight/hpjx/hp/pz/tools/HPPZTools.java
+13
-6
No files found.
src/main/java/com/baosight/hpjx/hp/pz/tools/HPPZTools.java
View file @
99131737
...
@@ -147,8 +147,8 @@ public class HPPZTools {
...
@@ -147,8 +147,8 @@ public class HPPZTools {
/**
/**
* 判断存货名称是否存在,如果存在返回编码,否则新增并返回编码
* 判断存货名称是否存在,如果存在返回编码,否则新增并返回编码
* @param inventType
* @param inventType
存货类型
* @param inventName
* @param inventName
存货名称
*/
*/
public
static
String
checkAndSavePZ04
(
Integer
inventType
,
String
inventName
)
{
public
static
String
checkAndSavePZ04
(
Integer
inventType
,
String
inventName
)
{
if
(
Objects
.
isNull
(
inventType
)){
if
(
Objects
.
isNull
(
inventType
)){
...
@@ -171,11 +171,17 @@ public class HPPZTools {
...
@@ -171,11 +171,17 @@ public class HPPZTools {
/**
/**
* 判断存货档案是否存在,如果存在返回存货档案,否则新增并返回存货档案
* 判断存货档案是否存在,如果存在返回存货档案,否则新增并返回存货档案
* @param inventType
* @param inventType 存货类型
* @param inventName
* @param inventName 存货名称
* @param length 长
* @param width 宽
* @param thick 厚
* @param coefficient 系数
* @param material 材质
* @param unit 单位
*/
*/
public
static
HPPZ006
checkAndSavePZ06
(
Integer
inventType
,
String
invent
Code
,
String
invent
Name
public
static
HPPZ006
checkAndSavePZ06
(
Integer
inventType
,
String
inventName
,
BigDecimal
length
,
BigDecimal
width
,
BigDecimal
thick
,
BigDecimal
coefficient
,
String
unit
)
{
,
BigDecimal
length
,
BigDecimal
width
,
BigDecimal
thick
,
BigDecimal
coefficient
,
String
material
,
String
unit
)
{
if
(
Objects
.
isNull
(
inventType
)){
if
(
Objects
.
isNull
(
inventType
)){
throw
new
PlatException
(
"存货类型不能为空!"
);
throw
new
PlatException
(
"存货类型不能为空!"
);
}
}
...
@@ -192,6 +198,7 @@ public class HPPZTools {
...
@@ -192,6 +198,7 @@ public class HPPZTools {
inInfo
.
set
(
"length"
,
length
);
inInfo
.
set
(
"length"
,
length
);
inInfo
.
set
(
"width"
,
width
);
inInfo
.
set
(
"width"
,
width
);
inInfo
.
set
(
"thick"
,
thick
);
inInfo
.
set
(
"thick"
,
thick
);
inInfo
.
set
(
"material"
,
material
);
inInfo
.
set
(
"coefficient"
,
coefficient
);
inInfo
.
set
(
"coefficient"
,
coefficient
);
inInfo
.
set
(
"unit"
,
unit
);
inInfo
.
set
(
"unit"
,
unit
);
inInfo
.
set
(
EiConstant
.
serviceName
,
"HPPZ006"
);
inInfo
.
set
(
EiConstant
.
serviceName
,
"HPPZ006"
);
...
...
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