Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
cd55601a
Commit
cd55601a
authored
Jun 28, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改生产入库单的字段信息,增加质检单的部分信息
parent
682fc1de
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
367 additions
and
2031 deletions
+367
-2031
HGKC003.java
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC003.java
+237
-135
HGKC003A.java
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC003A.java
+0
-1294
ServiceHGKC003.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC003.java
+5
-5
ServiceHGKC003B.java
...java/com/baosight/hggp/hg/kc/service/ServiceHGKC003B.java
+0
-107
HGKC003.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003.xml
+105
-63
HGKC003A.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003A.xml
+0
-348
HGKCTools.java
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
+8
-62
HGKC003.jsp
src/main/webapp/HG/KC/HGKC003.jsp
+8
-10
HGKC003A.jsp
src/main/webapp/HG/KC/HGKC003A.jsp
+4
-7
No files found.
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC003.java
View file @
cd55601a
...
...
@@ -50,22 +50,29 @@ public class HGKC003 extends DaoEPBase {
public
static
final
String
FIELD_PROD_TASK_NO
=
"prodTaskNo"
;
/* 生产任务号*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_P
ART_TYPE
=
"partType"
;
/* 物料
类型*/
public
static
final
String
FIELD_P
ART_CODE
=
"partCode"
;
/* 物料
编码*/
public
static
final
String
FIELD_P
ART_NAME
=
"partName"
;
/* 物料
名称*/
public
static
final
String
FIELD_P
ART_LENGTH
=
"partLength"
;
/* 物料
-长*/
public
static
final
String
FIELD_P
ART_WIDTH
=
"partWidth"
;
/* 物料
-宽*/
public
static
final
String
FIELD_P
ART_THICK
=
"partThick"
;
/* 物料
-厚*/
public
static
final
String
FIELD_P
ART_SPEC
=
"partSpec"
;
/* 物料
规格*/
public
static
final
String
FIELD_P
RDT_TYPE
=
"prdtType"
;
/* 产品
类型*/
public
static
final
String
FIELD_P
RDT_CODE
=
"prdtCode"
;
/* 产品
编码*/
public
static
final
String
FIELD_P
RDT_NAME
=
"prdtName"
;
/* 产品
名称*/
public
static
final
String
FIELD_P
RDT_LENGTH
=
"prdtLength"
;
/* 产品
-长*/
public
static
final
String
FIELD_P
RDT_WIDTH
=
"prdtWidth"
;
/* 产品
-宽*/
public
static
final
String
FIELD_P
RDT_THICK
=
"prdtThick"
;
/* 产品
-厚*/
public
static
final
String
FIELD_P
RDT_SPEC
=
"prdtSpec"
;
/* 产品
规格*/
public
static
final
String
FIELD_SUBMIT_STATUS
=
"submitStatus"
;
/* 提交状态 0未提交,1已提交*/
public
static
final
String
FIELD_PART_SPEC_ID
=
"partSpecId"
;
/* 物料规格ID*/
public
static
final
String
FIELD_RECTIFICATION_ID
=
"rectificationId"
;
/* 整改通知单ID*/
public
static
final
String
FIELD_P
ART_COEFFICIENT
=
"partCoefficient"
;
/* 物料
系数*/
public
static
final
String
FIELD_P
RDT_COEFFICIENT
=
"prdtCoefficient"
;
/* 产品
系数*/
public
static
final
String
FIELD_PRICE
=
"price"
;
/* 单价*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 金额*/
public
static
final
String
FIELD_STORAGE_TYPE
=
"storageType"
;
/* 入库类型:1:入库 2:退回*/
public
static
final
String
FIELD_IS_RETURN
=
"isReturn"
;
/* 是否退回*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/*存货类型明细*/
public
static
final
String
FIELD_MAT_ID
=
"matId"
;
/* 物料清单ID*/
public
static
final
String
FIELD_WORK_ID
=
"workId"
;
/* 报工单ID*/
public
static
final
String
FIELD_TECH_FLOW_ID
=
"techFlowId"
;
/* 工艺流程ID*/
public
static
final
String
FIELD_TECH_FLOW_NAME
=
"techFlowName"
;
/* 工艺流程名称*/
public
static
final
String
FIELD_INVENT_PROCESS_ID
=
"inventProcessId"
;
/* 存货工序ID,对应HGPZ005A.id*/
public
static
final
String
FIELD_PROCESS_CODE
=
"processCode"
;
/* 工序编码*/
public
static
final
String
FIELD_PROCESS_NAME
=
"processName"
;
/* 工序名称*/
public
static
final
String
FIELD_PROCESS_ORDER
=
"processOrder"
;
/* 加工顺序*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_QUALITY_ID
=
"QUALITY_ID"
;
/* 质检单ID*/
...
...
@@ -101,17 +108,8 @@ public class HGKC003 extends DaoEPBase {
public
static
final
String
COL_PRDT_WIDTH
=
"PRDT_WIDTH"
;
/* 产品-宽*/
public
static
final
String
COL_PRDT_THICK
=
"PRDT_THICK"
;
/* 产品-厚*/
public
static
final
String
COL_PRDT_SPEC
=
"PRDT_SPEC"
;
/* 产品规格*/
public
static
final
String
COL_PART_TYPE
=
"PART_TYPE"
;
/* 物料类型*/
public
static
final
String
COL_PART_CODE
=
"PART_CODE"
;
/* 物料编码*/
public
static
final
String
COL_PART_NAME
=
"PART_NAME"
;
/* 物料名称*/
public
static
final
String
COL_PART_LENGTH
=
"PART_LENGTH"
;
/* 物料-长*/
public
static
final
String
COL_PART_WIDTH
=
"PART_WIDTH"
;
/* 物料-宽*/
public
static
final
String
COL_PART_THICK
=
"PART_THICK"
;
/* 物料-厚*/
public
static
final
String
COL_PART_SPEC
=
"PART_SPEC"
;
/* 物料规格*/
public
static
final
String
COL_SUBMIT_STATUS
=
"SUBMIT_STATUS"
;
/* 提交状态 0未提交,1已提交*/
public
static
final
String
COL_PART_SPEC_ID
=
"PART_SPEC_ID"
;
/* 物料规格ID*/
public
static
final
String
COL_RECTIFICATION_ID
=
"RECTIFICATION_ID"
;
/* 整改通知单ID*/
public
static
final
String
COL_PART_COEFFICIENT
=
"PART_COEFFICIENT"
;
/* 物料系数*/
public
static
final
String
COL_PRICE
=
"PRICE"
;
/* 单价*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 金额*/
public
static
final
String
COL_STORAGE_TYPE
=
"STORAGE_TYPE"
;
/* 入库类型:1:入库 2:退回*/
...
...
@@ -153,22 +151,29 @@ public class HGKC003 extends DaoEPBase {
private
String
prodTaskNo
=
" "
;
/* 生产任务号*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
p
artType
;
/* 物料
类型*/
private
String
p
artCode
=
" "
;
/* 物料
编码*/
private
String
p
artName
=
" "
;
/* 物料
名称*/
private
BigDecimal
p
artLength
=
new
BigDecimal
(
0.000
);
/* 物料
-长*/
private
BigDecimal
p
artWidth
=
new
BigDecimal
(
0.000
);
/* 物料
-宽*/
private
BigDecimal
p
artThick
=
new
BigDecimal
(
0.000
);
/* 物料
-厚*/
private
String
p
artSpec
=
" "
;
/* 物料
规格*/
private
String
p
rdtType
;
/* 产品
类型*/
private
String
p
rdtCode
=
" "
;
/* 产品
编码*/
private
String
p
rdtName
=
" "
;
/* 产品
名称*/
private
BigDecimal
p
rdtLength
=
new
BigDecimal
(
0.000
);
/* 产品
-长*/
private
BigDecimal
p
rdtWidth
=
new
BigDecimal
(
0.000
);
/* 产品
-宽*/
private
BigDecimal
p
rdtThick
=
new
BigDecimal
(
0.000
);
/* 产品
-厚*/
private
String
p
rdtSpec
=
" "
;
/* 产品
规格*/
private
Integer
submitStatus
;
/* 提交状态 0未提交,1已提交*/
private
Long
partSpecId
=
new
Long
(
0
);
/* 规格id*/
private
Long
rectificationId
=
new
Long
(
0
);
/* 整改通知单id*/
private
BigDecimal
p
artCoefficient
=
new
BigDecimal
(
0.000
);
/* 物料
-系数*/
private
BigDecimal
p
rdtCoefficient
=
new
BigDecimal
(
0.000
);
/* 产品
-系数*/
private
BigDecimal
price
=
new
BigDecimal
(
"0"
);
/* 单价*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 金额*/
private
Integer
storageType
;
/* 入库类型:1:入库 2:退回*/
private
Integer
isReturn
;
/* 是否退回:0:否 1:是*/
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:物料*/
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:零件*/
private
Long
matId
=
new
Long
(
0
);
/* 物料清单ID*/
private
Long
workId
=
new
Long
(
0
);
/* 报工单ID*/
private
Long
techFlowId
=
new
Long
(
0
);
/* 工艺流程ID*/
private
Long
techFlowName
=
new
Long
(
0
);
/* 工艺流程名称*/
private
Long
inventProcessId
=
new
Long
(
0
);
/* 存货工序ID,对应HGPZ005A.id*/
private
String
processCode
=
" "
;
/* 工序编码*/
private
String
processName
=
" "
;
/* 工序名称*/
private
Long
processOrder
=
new
Long
(
0
);
/* 加工顺序*/
/**
* initialize the metadata.
...
...
@@ -294,60 +299,56 @@ public class HGKC003 extends DaoEPBase {
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_P
AR
T_TYPE
);
eiColumn
.
setDescName
(
"
物料
类型"
);
eiColumn
=
new
EiColumn
(
FIELD_P
RD
T_TYPE
);
eiColumn
.
setDescName
(
"
产品
类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_P
AR
T_CODE
);
eiColumn
.
setDescName
(
"
物料
编码"
);
eiColumn
=
new
EiColumn
(
FIELD_P
RD
T_CODE
);
eiColumn
.
setDescName
(
"
产品
编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_P
AR
T_NAME
);
eiColumn
.
setDescName
(
"
物料
名称"
);
eiColumn
=
new
EiColumn
(
FIELD_P
RD
T_NAME
);
eiColumn
.
setDescName
(
"
产品
名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_P
AR
T_LENGTH
);
eiColumn
=
new
EiColumn
(
FIELD_P
RD
T_LENGTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"
物料
-长"
);
eiColumn
.
setDescName
(
"
产品
-长"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_P
AR
T_WIDTH
);
eiColumn
=
new
EiColumn
(
FIELD_P
RD
T_WIDTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"
物料
-宽"
);
eiColumn
.
setDescName
(
"
产品
-宽"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_P
AR
T_THICK
);
eiColumn
=
new
EiColumn
(
FIELD_P
RD
T_THICK
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"
物料
-厚"
);
eiColumn
.
setDescName
(
"
产品
-厚"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_P
AR
T_SPEC
);
eiColumn
.
setDescName
(
"
物料
规格"
);
eiColumn
=
new
EiColumn
(
FIELD_P
RD
T_SPEC
);
eiColumn
.
setDescName
(
"
产品
规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SUBMIT_STATUS
);
eiColumn
.
setDescName
(
"提交状态"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_SPEC_ID
);
eiColumn
.
setDescName
(
"物料规格ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECTIFICATION_ID
);
eiColumn
.
setDescName
(
"整改通知单ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_P
AR
T_COEFFICIENT
);
eiColumn
=
new
EiColumn
(
FIELD_P
RD
T_COEFFICIENT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"
物料
-系数"
);
eiColumn
.
setDescName
(
"
产品
-系数"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRICE
);
...
...
@@ -375,6 +376,38 @@ public class HGKC003 extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE_DETAIL
);
eiColumn
.
setDescName
(
"存货类型明细"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_MAT_ID
);
eiColumn
.
setDescName
(
"物料清单ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_WORK_ID
);
eiColumn
.
setDescName
(
"报工单ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TECH_FLOW_ID
);
eiColumn
.
setDescName
(
"工艺流程ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TECH_FLOW_NAME
);
eiColumn
.
setDescName
(
"工艺流程名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_PROCESS_ID
);
eiColumn
.
setDescName
(
"存货工序ID,对应HGPZ005A.id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROCESS_CODE
);
eiColumn
.
setDescName
(
"工序编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROCESS_NAME
);
eiColumn
.
setDescName
(
"工序名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROCESS_ORDER
);
eiColumn
.
setDescName
(
"加工顺序"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
...
...
@@ -801,116 +834,116 @@ public class HGKC003 extends DaoEPBase {
this
.
projName
=
projName
;
}
/**
* get the p
artType - 物料
类型.
* @return the p
ar
tType
* get the p
rdtType - 产品
类型.
* @return the p
rd
tType
*/
public
String
getP
ar
tType
()
{
return
this
.
p
ar
tType
;
public
String
getP
rd
tType
()
{
return
this
.
p
rd
tType
;
}
/**
* set the p
artType - 物料
类型.
* set the p
rdtType - 产品
类型.
*
* @param p
artType - 物料
类型
* @param p
rdtType - 产品
类型
*/
public
void
setP
artType
(
String
par
tType
)
{
this
.
p
artType
=
par
tType
;
public
void
setP
rdtType
(
String
prd
tType
)
{
this
.
p
rdtType
=
prd
tType
;
}
/**
* get the p
artCode - 物料
编码.
* @return the p
ar
tCode
* get the p
rdtCode - 产品
编码.
* @return the p
rd
tCode
*/
public
String
getP
ar
tCode
()
{
return
this
.
p
ar
tCode
;
public
String
getP
rd
tCode
()
{
return
this
.
p
rd
tCode
;
}
/**
* set the p
artCode - 物料
编码.
* set the p
rdtCode - 产品
编码.
*
* @param p
artCode - 物料
编码
* @param p
rdtCode - 产品
编码
*/
public
void
setP
artCode
(
String
par
tCode
)
{
this
.
p
artCode
=
par
tCode
;
public
void
setP
rdtCode
(
String
prd
tCode
)
{
this
.
p
rdtCode
=
prd
tCode
;
}
/**
* get the p
artName - 物料
名称.
* @return the p
ar
tName
* get the p
rdtName - 产品
名称.
* @return the p
rd
tName
*/
public
String
getP
ar
tName
()
{
return
this
.
p
ar
tName
;
public
String
getP
rd
tName
()
{
return
this
.
p
rd
tName
;
}
/**
* set the p
artName - 物料
名称.
* set the p
rdtName - 产品
名称.
*
* @param p
artName - 物料
名称
* @param p
rdtName - 产品
名称
*/
public
void
setP
artName
(
String
par
tName
)
{
this
.
p
artName
=
par
tName
;
public
void
setP
rdtName
(
String
prd
tName
)
{
this
.
p
rdtName
=
prd
tName
;
}
/**
* get the p
artLength - 物料
-长.
* @return the p
ar
tLength
* get the p
rdtLength - 产品
-长.
* @return the p
rd
tLength
*/
public
BigDecimal
getP
ar
tLength
()
{
return
this
.
p
ar
tLength
;
public
BigDecimal
getP
rd
tLength
()
{
return
this
.
p
rd
tLength
;
}
/**
* set the p
artLength - 物料
-长.
* set the p
rdtLength - 产品
-长.
*
* @param p
artLength - 物料
-长
* @param p
rdtLength - 产品
-长
*/
public
void
setP
artLength
(
BigDecimal
par
tLength
)
{
this
.
p
artLength
=
par
tLength
;
public
void
setP
rdtLength
(
BigDecimal
prd
tLength
)
{
this
.
p
rdtLength
=
prd
tLength
;
}
/**
* get the p
artWidth - 物料
-宽.
* @return the p
ar
tWidth
* get the p
rdtWidth - 产品
-宽.
* @return the p
rd
tWidth
*/
public
BigDecimal
getP
ar
tWidth
()
{
return
this
.
p
ar
tWidth
;
public
BigDecimal
getP
rd
tWidth
()
{
return
this
.
p
rd
tWidth
;
}
/**
* set the p
artWidth - 物料
-宽.
* set the p
rdtWidth - 产品
-宽.
*
* @param p
artWidth - 物料
-宽
* @param p
rdtWidth - 产品
-宽
*/
public
void
setP
artWidth
(
BigDecimal
par
tWidth
)
{
this
.
p
artWidth
=
par
tWidth
;
public
void
setP
rdtWidth
(
BigDecimal
prd
tWidth
)
{
this
.
p
rdtWidth
=
prd
tWidth
;
}
/**
* get the p
artThick - 物料
-厚.
* @return the p
ar
tThick
* get the p
rdtThick - 产品
-厚.
* @return the p
rd
tThick
*/
public
BigDecimal
getP
ar
tThick
()
{
return
this
.
p
ar
tThick
;
public
BigDecimal
getP
rd
tThick
()
{
return
this
.
p
rd
tThick
;
}
/**
* set the p
artThick - 物料
-厚.
* set the p
rdtThick - 产品
-厚.
*
* @param p
artThick - 物料
-厚
* @param p
rdtThick - 产品
-厚
*/
public
void
setP
artThick
(
BigDecimal
par
tThick
)
{
this
.
p
artThick
=
par
tThick
;
public
void
setP
rdtThick
(
BigDecimal
prd
tThick
)
{
this
.
p
rdtThick
=
prd
tThick
;
}
/**
* get the p
artSpec - 物料
规格.
* @return the p
ar
tSpec
* get the p
rdtSpec - 产品
规格.
* @return the p
rd
tSpec
*/
public
String
getP
ar
tSpec
()
{
return
this
.
p
ar
tSpec
;
public
String
getP
rd
tSpec
()
{
return
this
.
p
rd
tSpec
;
}
/**
* set the p
artSpec - 物料
规格.
* set the p
rdtSpec - 产品
规格.
*
* @param p
artSpec - 物料
规格
* @param p
rdtSpec - 产品
规格
*/
public
void
setP
artSpec
(
String
par
tSpec
)
{
this
.
p
artSpec
=
par
tSpec
;
public
void
setP
rdtSpec
(
String
prd
tSpec
)
{
this
.
p
rdtSpec
=
prd
tSpec
;
}
public
Integer
getSubmitStatus
()
{
...
...
@@ -929,14 +962,6 @@ public class HGKC003 extends DaoEPBase {
this
.
qualityId
=
qualityId
;
}
public
Long
getPartSpecId
()
{
return
partSpecId
;
}
public
void
setPartSpecId
(
Long
partSpecId
)
{
this
.
partSpecId
=
partSpecId
;
}
public
Long
getRectificationId
()
{
return
rectificationId
;
}
...
...
@@ -945,12 +970,12 @@ public class HGKC003 extends DaoEPBase {
this
.
rectificationId
=
rectificationId
;
}
public
BigDecimal
getP
ar
tCoefficient
()
{
return
p
ar
tCoefficient
;
public
BigDecimal
getP
rd
tCoefficient
()
{
return
p
rd
tCoefficient
;
}
public
void
setP
artCoefficient
(
BigDecimal
par
tCoefficient
)
{
this
.
p
artCoefficient
=
par
tCoefficient
;
public
void
setP
rdtCoefficient
(
BigDecimal
prd
tCoefficient
)
{
this
.
p
rdtCoefficient
=
prd
tCoefficient
;
}
public
BigDecimal
getPrice
()
{
...
...
@@ -992,6 +1017,71 @@ public class HGKC003 extends DaoEPBase {
public
void
setInventTypeDetail
(
Integer
inventTypeDetail
)
{
this
.
inventTypeDetail
=
inventTypeDetail
;
}
public
Long
getMatId
()
{
return
matId
;
}
public
void
setMatId
(
Long
matId
)
{
this
.
matId
=
matId
;
}
public
Long
getWorkId
()
{
return
workId
;
}
public
void
setWorkId
(
Long
workId
)
{
this
.
workId
=
workId
;
}
public
Long
getTechFlowId
()
{
return
techFlowId
;
}
public
void
setTechFlowId
(
Long
techFlowId
)
{
this
.
techFlowId
=
techFlowId
;
}
public
Long
getTechFlowName
()
{
return
techFlowName
;
}
public
void
setTechFlowName
(
Long
techFlowName
)
{
this
.
techFlowName
=
techFlowName
;
}
public
Long
getInventProcessId
()
{
return
inventProcessId
;
}
public
void
setInventProcessId
(
Long
inventProcessId
)
{
this
.
inventProcessId
=
inventProcessId
;
}
public
String
getProcessCode
()
{
return
processCode
;
}
public
void
setProcessCode
(
String
processCode
)
{
this
.
processCode
=
processCode
;
}
public
String
getProcessName
()
{
return
processName
;
}
public
void
setProcessName
(
String
processName
)
{
this
.
processName
=
processName
;
}
public
Long
getProcessOrder
()
{
return
processOrder
;
}
public
void
setProcessOrder
(
Long
processOrder
)
{
this
.
processOrder
=
processOrder
;
}
/**
* get the value from Map.
*
...
...
@@ -1027,22 +1117,29 @@ public class HGKC003 extends DaoEPBase {
setProdTaskNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROD_TASK_NO
)),
prodTaskNo
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setP
artType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_TYPE
)),
par
tType
));
setP
artCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_CODE
)),
par
tCode
));
setP
artName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_NAME
)),
par
tName
));
setP
artLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_LENGTH
)),
par
tLength
));
setP
artWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_WIDTH
)),
par
tWidth
));
setP
artThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_THICK
)),
par
tThick
));
setP
artSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_SPEC
)),
par
tSpec
));
setP
rdtType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_TYPE
)),
prd
tType
));
setP
rdtCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_CODE
)),
prd
tCode
));
setP
rdtName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_NAME
)),
prd
tName
));
setP
rdtLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_LENGTH
)),
prd
tLength
));
setP
rdtWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_WIDTH
)),
prd
tWidth
));
setP
rdtThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_THICK
)),
prd
tThick
));
setP
rdtSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_SPEC
)),
prd
tSpec
));
setSubmitStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SUBMIT_STATUS
)),
submitStatus
));
setPartSpecId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_SPEC_ID
)),
partSpecId
));
setRectificationId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECTIFICATION_ID
)),
rectificationId
));
setP
artCoefficient
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_COEFFICIENT
)),
par
tCoefficient
));
setP
rdtCoefficient
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_COEFFICIENT
)),
prd
tCoefficient
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setStorageType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STORAGE_TYPE
)),
storageType
));
setIsReturn
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_RETURN
)),
isReturn
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
setMatId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MAT_ID
)),
matId
));
setWorkId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WORK_ID
)),
workId
));
setTechFlowId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TECH_FLOW_ID
)),
techFlowId
));
setTechFlowName
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TECH_FLOW_NAME
)),
techFlowName
));
setInventProcessId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_PROCESS_ID
)),
inventProcessId
));
setProcessCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROCESS_CODE
)),
processCode
));
setProcessName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROCESS_NAME
)),
processName
));
setProcessOrder
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROCESS_ORDER
)),
processOrder
));
}
/**
...
...
@@ -1079,23 +1176,28 @@ public class HGKC003 extends DaoEPBase {
map
.
put
(
FIELD_PROD_TASK_NO
,
StringUtils
.
toString
(
prodTaskNo
,
eiMetadata
.
getMeta
(
FIELD_PROD_TASK_NO
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
map
.
put
(
FIELD_PART_TYPE
,
StringUtils
.
toString
(
partType
,
eiMetadata
.
getMeta
(
FIELD_PART_TYPE
)));
map
.
put
(
FIELD_PART_CODE
,
StringUtils
.
toString
(
partCode
,
eiMetadata
.
getMeta
(
FIELD_PART_CODE
)));
map
.
put
(
FIELD_PART_NAME
,
StringUtils
.
toString
(
partName
,
eiMetadata
.
getMeta
(
FIELD_PART_NAME
)));
map
.
put
(
FIELD_PART_LENGTH
,
StringUtils
.
toString
(
partLength
,
eiMetadata
.
getMeta
(
FIELD_PART_LENGTH
)));
map
.
put
(
FIELD_PART_WIDTH
,
StringUtils
.
toString
(
partWidth
,
eiMetadata
.
getMeta
(
FIELD_PART_WIDTH
)));
map
.
put
(
FIELD_PART_THICK
,
StringUtils
.
toString
(
partThick
,
eiMetadata
.
getMeta
(
FIELD_PART_THICK
)));
map
.
put
(
FIELD_PART_SPEC
,
StringUtils
.
toString
(
partSpec
,
eiMetadata
.
getMeta
(
FIELD_PART_SPEC
)));
map
.
put
(
FIELD_PRDT_TYPE
,
StringUtils
.
toString
(
prdtType
,
eiMetadata
.
getMeta
(
FIELD_PRDT_TYPE
)));
map
.
put
(
FIELD_PRDT_CODE
,
StringUtils
.
toString
(
prdtCode
,
eiMetadata
.
getMeta
(
FIELD_PRDT_CODE
)));
map
.
put
(
FIELD_PRDT_NAME
,
StringUtils
.
toString
(
prdtName
,
eiMetadata
.
getMeta
(
FIELD_PRDT_NAME
)));
map
.
put
(
FIELD_PRDT_LENGTH
,
StringUtils
.
toString
(
prdtLength
,
eiMetadata
.
getMeta
(
FIELD_PRDT_LENGTH
)));
map
.
put
(
FIELD_PRDT_WIDTH
,
StringUtils
.
toString
(
prdtWidth
,
eiMetadata
.
getMeta
(
FIELD_PRDT_WIDTH
)));
map
.
put
(
FIELD_PRDT_THICK
,
StringUtils
.
toString
(
prdtThick
,
eiMetadata
.
getMeta
(
FIELD_PRDT_THICK
)));
map
.
put
(
FIELD_PRDT_SPEC
,
StringUtils
.
toString
(
prdtSpec
,
eiMetadata
.
getMeta
(
FIELD_PRDT_SPEC
)));
map
.
put
(
FIELD_PRDT_COEFFICIENT
,
StringUtils
.
toString
(
prdtCoefficient
,
eiMetadata
.
getMeta
(
FIELD_PRDT_COEFFICIENT
)));
map
.
put
(
FIELD_SUBMIT_STATUS
,
StringUtils
.
toString
(
submitStatus
,
eiMetadata
.
getMeta
(
FIELD_SUBMIT_STATUS
)));
map
.
put
(
FIELD_PART_SPEC_ID
,
StringUtils
.
toString
(
partSpecId
,
eiMetadata
.
getMeta
(
FIELD_PART_SPEC_ID
)));
map
.
put
(
FIELD_RECTIFICATION_ID
,
StringUtils
.
toString
(
rectificationId
,
eiMetadata
.
getMeta
(
FIELD_RECTIFICATION_ID
)));
map
.
put
(
FIELD_PART_COEFFICIENT
,
StringUtils
.
toString
(
partCoefficient
,
eiMetadata
.
getMeta
(
FIELD_PART_COEFFICIENT
)));
map
.
put
(
FIELD_PRICE
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
FIELD_PRICE
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_STORAGE_TYPE
,
StringUtils
.
toString
(
storageType
,
eiMetadata
.
getMeta
(
FIELD_STORAGE_TYPE
)));
map
.
put
(
FIELD_IS_RETURN
,
StringUtils
.
toString
(
isReturn
,
eiMetadata
.
getMeta
(
FIELD_IS_RETURN
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
map
.
put
(
FIELD_MAT_ID
,
StringUtils
.
toString
(
matId
,
eiMetadata
.
getMeta
(
FIELD_MAT_ID
)));
map
.
put
(
FIELD_WORK_ID
,
StringUtils
.
toString
(
workId
,
eiMetadata
.
getMeta
(
FIELD_WORK_ID
)));
map
.
put
(
FIELD_TECH_FLOW_ID
,
StringUtils
.
toString
(
techFlowId
,
eiMetadata
.
getMeta
(
FIELD_TECH_FLOW_ID
)));
map
.
put
(
FIELD_TECH_FLOW_NAME
,
StringUtils
.
toString
(
techFlowName
,
eiMetadata
.
getMeta
(
FIELD_TECH_FLOW_NAME
)));
map
.
put
(
FIELD_INVENT_PROCESS_ID
,
StringUtils
.
toString
(
inventProcessId
,
eiMetadata
.
getMeta
(
FIELD_INVENT_PROCESS_ID
)));
map
.
put
(
FIELD_PROCESS_CODE
,
StringUtils
.
toString
(
processCode
,
eiMetadata
.
getMeta
(
FIELD_PROCESS_CODE
)));
map
.
put
(
FIELD_PROCESS_NAME
,
StringUtils
.
toString
(
processName
,
eiMetadata
.
getMeta
(
FIELD_PROCESS_NAME
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC003A.java
deleted
100644 → 0
View file @
682fc1de
package
com
.
baosight
.
hggp
.
hg
.
kc
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
* Project: <br>
* Title:HGKC003A.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-05-23 18:28:15 create
*/
public
class
HGKC003A
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 企业编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 记录修改者*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 记录修改名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 记录修改时间*/
public
static
final
String
FIELD_DELETE_FLAG
=
"deleteFlag"
;
/* 0-未删除,1-已删除*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 公司编码*/
public
static
final
String
FIELD_COMPANY_NAME
=
"companyName"
;
/* 公司名称*/
public
static
final
String
FIELD_DEPOSIT_DATE
=
"depositDate"
;
/* 入库日期*/
public
static
final
String
FIELD_DEPOSIT_NO
=
"depositNo"
;
/* 入库单号*/
public
static
final
String
FIELD_WH_CODE
=
"whCode"
;
/* 仓库编码*/
public
static
final
String
FIELD_WH_NAME
=
"whName"
;
/* 仓库名称*/
public
static
final
String
FIELD_INV_QTY
=
"invQty"
;
/* 数量*/
public
static
final
String
FIELD_INV_UNIT_WEIGHT
=
"invUnitWeight"
;
/* 单重*/
public
static
final
String
FIELD_INV_WEIGHT
=
"invWeight"
;
/* 重量*/
public
static
final
String
FIELD_DEPOSIT_NO_OLD
=
"depositNoOld"
;
/* 入库单号(旧)*/
public
static
final
String
FIELD_REMARK
=
"remark"
;
/* 备注*/
public
static
final
String
FIELD_FACTORY_CODE
=
"factoryCode"
;
/* 工厂代码*/
public
static
final
String
FIELD_PROD_ORDER_NO
=
"prodOrderNo"
;
/* 生产订单号*/
public
static
final
String
FIELD_PROD_TASK_NO
=
"prodTaskNo"
;
/* 生产任务号*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_PRDT_TYPE
=
"prdtType"
;
/* 产品类型*/
public
static
final
String
FIELD_PRDT_CODE
=
"prdtCode"
;
/* 产品编码*/
public
static
final
String
FIELD_PRDT_NAME
=
"prdtName"
;
/* 产品名称*/
public
static
final
String
FIELD_PRDT_LENGTH
=
"prdtLength"
;
/* 产品-长*/
public
static
final
String
FIELD_PRDT_WIDTH
=
"prdtWidth"
;
/* 产品-宽*/
public
static
final
String
FIELD_PRDT_THICK
=
"prdtThick"
;
/* 产品-厚*/
public
static
final
String
FIELD_PRDT_SPEC
=
"prdtSpec"
;
/* 产品规格*/
public
static
final
String
FIELD_PART_TYPE
=
"partType"
;
/* 零件类型*/
public
static
final
String
FIELD_PART_CODE
=
"partCode"
;
/* 零件编码*/
public
static
final
String
FIELD_PART_NAME
=
"partName"
;
/* 零件名称*/
public
static
final
String
FIELD_PART_LENGTH
=
"partLength"
;
/* 零件-长*/
public
static
final
String
FIELD_PART_WIDTH
=
"partWidth"
;
/* 零件-宽*/
public
static
final
String
FIELD_PART_THICK
=
"partThick"
;
/* 零件-厚*/
public
static
final
String
FIELD_PART_SPEC
=
"partSpec"
;
/* 零件规格*/
public
static
final
String
FIELD_PRIMARY_ID
=
"primaryId"
;
/* 主表id*/
public
static
final
String
FIELD_PRICE
=
"price"
;
/* 单价*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 金额*/
public
static
final
String
FIELD_STORAGE_TYPE
=
"storageType"
;
/* 入库类型:1:入库 2:退回*/
public
static
final
String
FIELD_QUALITY_ID
=
"qualityId"
;
/* 质检单ID*/
public
static
final
String
FIELD_PART_SPEC_ID
=
"partSpecId"
;
/* 零件规格ID*/
public
static
final
String
FIELD_RECTIFICATION_ID
=
"rectificationId"
;
/* 整改通知单ID*/
public
static
final
String
FIELD_PART_COEFFICIENT
=
"partCoefficient"
;
/* 零件系数*/
public
static
final
String
FIELD_INVENT_TYPE_DETAIL
=
"inventTypeDetail"
;
/*存货类型明细*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_QUALITY_ID
=
"QUALITY_ID"
;
/* 质检单ID*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 记录修改者*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 记录修改名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 记录修改时间*/
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 0-未删除,1-已删除*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 公司编码*/
public
static
final
String
COL_COMPANY_NAME
=
"COMPANY_NAME"
;
/* 公司名称*/
public
static
final
String
COL_DEPOSIT_DATE
=
"DEPOSIT_DATE"
;
/* 入库日期*/
public
static
final
String
COL_DEPOSIT_NO
=
"DEPOSIT_NO"
;
/* 入库单号*/
public
static
final
String
COL_WH_CODE
=
"WH_CODE"
;
/* 仓库编码*/
public
static
final
String
COL_WH_NAME
=
"WH_NAME"
;
/* 仓库名称*/
public
static
final
String
COL_INV_QTY
=
"INV_QTY"
;
/* 数量*/
public
static
final
String
COL_INV_UNIT_WEIGHT
=
"INV_UNIT_WEIGHT"
;
/* 单重*/
public
static
final
String
COL_INV_WEIGHT
=
"INV_WEIGHT"
;
/* 重量*/
public
static
final
String
COL_DEPOSIT_NO_OLD
=
"DEPOSIT_NO_OLD"
;
/* 入库单号(旧)*/
public
static
final
String
COL_REMARK
=
"REMARK"
;
/* 备注*/
public
static
final
String
COL_FACTORY_CODE
=
"FACTORY_CODE"
;
/* 工厂代码*/
public
static
final
String
COL_PROD_ORDER_NO
=
"PROD_ORDER_NO"
;
/* 生产订单号*/
public
static
final
String
COL_PROD_TASK_NO
=
"PROD_TASK_NO"
;
/* 生产任务号*/
public
static
final
String
COL_PROJ_CODE
=
"PROJ_CODE"
;
/* 项目编码*/
public
static
final
String
COL_PROJ_NAME
=
"PROJ_NAME"
;
/* 项目名称*/
public
static
final
String
COL_PRDT_TYPE
=
"PRDT_TYPE"
;
/* 产品类型*/
public
static
final
String
COL_PRDT_CODE
=
"PRDT_CODE"
;
/* 产品编码*/
public
static
final
String
COL_PRDT_NAME
=
"PRDT_NAME"
;
/* 产品名称*/
public
static
final
String
COL_PRDT_LENGTH
=
"PRDT_LENGTH"
;
/* 产品-长*/
public
static
final
String
COL_PRDT_WIDTH
=
"PRDT_WIDTH"
;
/* 产品-宽*/
public
static
final
String
COL_PRDT_THICK
=
"PRDT_THICK"
;
/* 产品-厚*/
public
static
final
String
COL_PRDT_SPEC
=
"PRDT_SPEC"
;
/* 产品规格*/
public
static
final
String
COL_PART_TYPE
=
"PART_TYPE"
;
/* 零件类型*/
public
static
final
String
COL_PART_CODE
=
"PART_CODE"
;
/* 零件编码*/
public
static
final
String
COL_PART_NAME
=
"PART_NAME"
;
/* 零件名称*/
public
static
final
String
COL_PART_LENGTH
=
"PART_LENGTH"
;
/* 零件-长*/
public
static
final
String
COL_PART_WIDTH
=
"PART_WIDTH"
;
/* 零件-宽*/
public
static
final
String
COL_PART_THICK
=
"PART_THICK"
;
/* 零件-厚*/
public
static
final
String
COL_PART_SPEC
=
"PART_SPEC"
;
/* 零件规格*/
public
static
final
String
COL_PRIMARY_ID
=
"PRIMARY_ID"
;
/* 主表id*/
public
static
final
String
COL_PRICE
=
"PRICE"
;
/* 单价*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 金额*/
public
static
final
String
COL_STORAGE_TYPE
=
"STORAGE_TYPE"
;
/* 入库类型:1:入库 2:退回*/
public
static
final
String
COL_PART_SPEC_ID
=
"PART_SPEC_ID"
;
/* 零件规格ID*/
public
static
final
String
COL_RECTIFICATION_ID
=
"RECTIFICATION_ID"
;
/* 整改通知单ID*/
public
static
final
String
COL_PART_COEFFICIENT
=
"PART_COEFFICIENT"
;
/* 零件系数*/
public
static
final
String
QUERY
=
"HGKC003A.query"
;
public
static
final
String
COUNT
=
"HGKC003A.count"
;
public
static
final
String
INSERT
=
"HGKC003A.insert"
;
public
static
final
String
UPDATE
=
"HGKC003A.update"
;
public
static
final
String
DELETE
=
"HGKC003A.delete"
;
public
static
final
String
BATCH_DELETE
=
"HGKC003A.batchDelete"
;
private
Long
id
=
new
Long
(
0
);
private
Long
qualityId
=
new
Long
(
0
);
/* 质检单ID*/
private
String
accountCode
=
" "
;
/* 企业编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
Boolean
deleteFlag
;
/* 0-未删除,1-已删除*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
depositDate
=
" "
;
/* 入库日期*/
private
String
depositNo
=
" "
;
/* 入库单号*/
private
String
whCode
=
" "
;
/* 仓库编码*/
private
String
whName
=
" "
;
/* 仓库名称*/
private
BigDecimal
invQty
=
new
BigDecimal
(
0.000
);
/* 数量*/
private
BigDecimal
invUnitWeight
=
new
BigDecimal
(
0.000
);
/* 单重*/
private
BigDecimal
invWeight
=
new
BigDecimal
(
0.000
);
/* 重量*/
private
String
depositNoOld
=
" "
;
/* 入库单号(旧)*/
private
String
remark
=
" "
;
/* 备注*/
private
String
factoryCode
=
" "
;
/* 工厂代码*/
private
String
prodOrderNo
=
" "
;
/* 生产订单号*/
private
String
prodTaskNo
=
" "
;
/* 生产任务号*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
Boolean
prdtType
;
/* 产品类型*/
private
String
prdtCode
=
" "
;
/* 产品编码*/
private
String
prdtName
=
" "
;
/* 产品名称*/
private
BigDecimal
prdtLength
=
new
BigDecimal
(
0.000
);
/* 产品-长*/
private
BigDecimal
prdtWidth
=
new
BigDecimal
(
0.000
);
/* 产品-宽*/
private
BigDecimal
prdtThick
=
new
BigDecimal
(
0.000
);
/* 产品-厚*/
private
String
prdtSpec
=
" "
;
/* 产品规格*/
private
Boolean
partType
;
/* 零件类型*/
private
String
partCode
=
" "
;
/* 零件编码*/
private
String
partName
=
" "
;
/* 零件名称*/
private
BigDecimal
partLength
=
new
BigDecimal
(
0.000
);
/* 零件-长*/
private
BigDecimal
partWidth
=
new
BigDecimal
(
0.000
);
/* 零件-宽*/
private
BigDecimal
partThick
=
new
BigDecimal
(
0.000
);
/* 零件-厚*/
private
String
partSpec
=
" "
;
/* 零件规格*/
private
Long
primaryId
=
new
Long
(
0
);
/* 主表id*/
private
BigDecimal
price
=
new
BigDecimal
(
"0"
);
/* 单价*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 金额*/
private
Boolean
storageType
;
/* 入库类型:1:入库 2:退回*/
private
Long
partSpecId
=
new
Long
(
0
);
/* 规格id*/
private
Long
rectificationId
=
new
Long
(
0
);
/* 整改通知单id*/
private
BigDecimal
partCoefficient
=
new
BigDecimal
(
0.000
);
/* 零件-系数*/
private
Integer
inventTypeDetail
;
/*存货类型明细 1:构建 2:零件*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_QUALITY_ID
);
eiColumn
.
setDescName
(
"质检单ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
.
setDescName
(
"0-未删除,1-已删除"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"公司编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_NAME
);
eiColumn
.
setDescName
(
"公司名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEPOSIT_DATE
);
eiColumn
.
setDescName
(
"入库日期"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEPOSIT_NO
);
eiColumn
.
setDescName
(
"入库单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_WH_CODE
);
eiColumn
.
setDescName
(
"仓库编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_WH_NAME
);
eiColumn
.
setDescName
(
"仓库名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INV_QTY
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INV_UNIT_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"单重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INV_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEPOSIT_NO_OLD
);
eiColumn
.
setDescName
(
"入库单号(旧)"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_REMARK
);
eiColumn
.
setDescName
(
"备注"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_FACTORY_CODE
);
eiColumn
.
setDescName
(
"工厂代码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROD_ORDER_NO
);
eiColumn
.
setDescName
(
"生产订单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROD_TASK_NO
);
eiColumn
.
setDescName
(
"生产任务号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_CODE
);
eiColumn
.
setDescName
(
"项目编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_NAME
);
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRDT_TYPE
);
eiColumn
.
setDescName
(
"产品类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRDT_CODE
);
eiColumn
.
setDescName
(
"产品编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRDT_NAME
);
eiColumn
.
setDescName
(
"产品名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRDT_LENGTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"产品-长"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRDT_WIDTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"产品-宽"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRDT_THICK
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"产品-厚"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRDT_SPEC
);
eiColumn
.
setDescName
(
"产品规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_TYPE
);
eiColumn
.
setDescName
(
"零件类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_CODE
);
eiColumn
.
setDescName
(
"零件编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_NAME
);
eiColumn
.
setDescName
(
"零件名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_LENGTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"零件-长"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_WIDTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"零件-宽"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_THICK
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"零件-厚"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_SPEC
);
eiColumn
.
setDescName
(
"零件规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRIMARY_ID
);
eiColumn
.
setDescName
(
"主表id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRICE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"单价"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_STORAGE_TYPE
);
eiColumn
.
setDescName
(
"入库类型:1:入库 2:退回"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_SPEC_ID
);
eiColumn
.
setDescName
(
"零件规格ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECTIFICATION_ID
);
eiColumn
.
setDescName
(
"整改通知单ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_COEFFICIENT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"零件-系数"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_TYPE_DETAIL
);
eiColumn
.
setDescName
(
"存货类型明细"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HGKC003A
()
{
initMetaData
();
}
/**
* get the id .
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id .
*
* @param id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* get the accountCode - 企业编码.
* @return the accountCode
*/
public
String
getAccountCode
()
{
return
this
.
accountCode
;
}
/**
* set the accountCode - 企业编码.
*
* @param accountCode - 企业编码
*/
public
void
setAccountCode
(
String
accountCode
)
{
this
.
accountCode
=
accountCode
;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 记录创建名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the deleteFlag - 0-未删除,1-已删除.
* @return the deleteFlag
*/
public
Boolean
getDeleteFlag
()
{
return
this
.
deleteFlag
;
}
/**
* set the deleteFlag - 0-未删除,1-已删除.
*
* @param deleteFlag - 0-未删除,1-已删除
*/
public
void
setDeleteFlag
(
Boolean
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
/**
* get the companyCode - 公司编码.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 公司编码.
*
* @param companyCode - 公司编码
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the companyName - 公司名称.
* @return the companyName
*/
public
String
getCompanyName
()
{
return
this
.
companyName
;
}
/**
* set the companyName - 公司名称.
*
* @param companyName - 公司名称
*/
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
/**
* get the depositDate - 入库日期.
* @return the depositDate
*/
public
String
getDepositDate
()
{
return
this
.
depositDate
;
}
/**
* set the depositDate - 入库日期.
*
* @param depositDate - 入库日期
*/
public
void
setDepositDate
(
String
depositDate
)
{
this
.
depositDate
=
depositDate
;
}
/**
* get the depositNo - 入库单号.
* @return the depositNo
*/
public
String
getDepositNo
()
{
return
this
.
depositNo
;
}
/**
* set the depositNo - 入库单号.
*
* @param depositNo - 入库单号
*/
public
void
setDepositNo
(
String
depositNo
)
{
this
.
depositNo
=
depositNo
;
}
/**
* get the whCode - 仓库编码.
* @return the whCode
*/
public
String
getWhCode
()
{
return
this
.
whCode
;
}
/**
* set the whCode - 仓库编码.
*
* @param whCode - 仓库编码
*/
public
void
setWhCode
(
String
whCode
)
{
this
.
whCode
=
whCode
;
}
/**
* get the whName - 仓库名称.
* @return the whName
*/
public
String
getWhName
()
{
return
this
.
whName
;
}
/**
* set the whName - 仓库名称.
*
* @param whName - 仓库名称
*/
public
void
setWhName
(
String
whName
)
{
this
.
whName
=
whName
;
}
/**
* get the invQty - 数量.
* @return the invQty
*/
public
BigDecimal
getInvQty
()
{
return
this
.
invQty
;
}
/**
* set the invQty - 数量.
*
* @param invQty - 数量
*/
public
void
setInvQty
(
BigDecimal
invQty
)
{
this
.
invQty
=
invQty
;
}
/**
* get the invUnitWeight - 单重.
* @return the invUnitWeight
*/
public
BigDecimal
getInvUnitWeight
()
{
return
this
.
invUnitWeight
;
}
/**
* set the invUnitWeight - 单重.
*
* @param invUnitWeight - 单重
*/
public
void
setInvUnitWeight
(
BigDecimal
invUnitWeight
)
{
this
.
invUnitWeight
=
invUnitWeight
;
}
/**
* get the invWeight - 重量.
* @return the invWeight
*/
public
BigDecimal
getInvWeight
()
{
return
this
.
invWeight
;
}
/**
* set the invWeight - 重量.
*
* @param invWeight - 重量
*/
public
void
setInvWeight
(
BigDecimal
invWeight
)
{
this
.
invWeight
=
invWeight
;
}
/**
* get the depositNoOld - 入库单号(旧).
* @return the depositNoOld
*/
public
String
getDepositNoOld
()
{
return
this
.
depositNoOld
;
}
/**
* set the depositNoOld - 入库单号(旧).
*
* @param depositNoOld - 入库单号(旧)
*/
public
void
setDepositNoOld
(
String
depositNoOld
)
{
this
.
depositNoOld
=
depositNoOld
;
}
/**
* get the remark - 备注.
* @return the remark
*/
public
String
getRemark
()
{
return
this
.
remark
;
}
/**
* set the remark - 备注.
*
* @param remark - 备注
*/
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
/**
* get the factoryCode - 工厂代码.
* @return the factoryCode
*/
public
String
getFactoryCode
()
{
return
this
.
factoryCode
;
}
/**
* set the factoryCode - 工厂代码.
*
* @param factoryCode - 工厂代码
*/
public
void
setFactoryCode
(
String
factoryCode
)
{
this
.
factoryCode
=
factoryCode
;
}
/**
* get the prodOrderNo - 生产订单号.
* @return the prodOrderNo
*/
public
String
getProdOrderNo
()
{
return
this
.
prodOrderNo
;
}
/**
* set the prodOrderNo - 生产订单号.
*
* @param prodOrderNo - 生产订单号
*/
public
void
setProdOrderNo
(
String
prodOrderNo
)
{
this
.
prodOrderNo
=
prodOrderNo
;
}
/**
* get the prodTaskNo - 生产任务号.
* @return the prodTaskNo
*/
public
String
getProdTaskNo
()
{
return
this
.
prodTaskNo
;
}
/**
* set the prodTaskNo - 生产任务号.
*
* @param prodTaskNo - 生产任务号
*/
public
void
setProdTaskNo
(
String
prodTaskNo
)
{
this
.
prodTaskNo
=
prodTaskNo
;
}
/**
* get the projCode - 项目编码.
* @return the projCode
*/
public
String
getProjCode
()
{
return
this
.
projCode
;
}
/**
* set the projCode - 项目编码.
*
* @param projCode - 项目编码
*/
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
/**
* get the projName - 项目名称.
* @return the projName
*/
public
String
getProjName
()
{
return
this
.
projName
;
}
/**
* set the projName - 项目名称.
*
* @param projName - 项目名称
*/
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
* get the prdtType - 产品类型.
* @return the prdtType
*/
public
Boolean
getPrdtType
()
{
return
this
.
prdtType
;
}
/**
* set the prdtType - 产品类型.
*
* @param prdtType - 产品类型
*/
public
void
setPrdtType
(
Boolean
prdtType
)
{
this
.
prdtType
=
prdtType
;
}
/**
* get the prdtCode - 产品编码.
* @return the prdtCode
*/
public
String
getPrdtCode
()
{
return
this
.
prdtCode
;
}
/**
* set the prdtCode - 产品编码.
*
* @param prdtCode - 产品编码
*/
public
void
setPrdtCode
(
String
prdtCode
)
{
this
.
prdtCode
=
prdtCode
;
}
/**
* get the prdtName - 产品名称.
* @return the prdtName
*/
public
String
getPrdtName
()
{
return
this
.
prdtName
;
}
/**
* set the prdtName - 产品名称.
*
* @param prdtName - 产品名称
*/
public
void
setPrdtName
(
String
prdtName
)
{
this
.
prdtName
=
prdtName
;
}
/**
* get the prdtLength - 产品-长.
* @return the prdtLength
*/
public
BigDecimal
getPrdtLength
()
{
return
this
.
prdtLength
;
}
/**
* set the prdtLength - 产品-长.
*
* @param prdtLength - 产品-长
*/
public
void
setPrdtLength
(
BigDecimal
prdtLength
)
{
this
.
prdtLength
=
prdtLength
;
}
/**
* get the prdtWidth - 产品-宽.
* @return the prdtWidth
*/
public
BigDecimal
getPrdtWidth
()
{
return
this
.
prdtWidth
;
}
/**
* set the prdtWidth - 产品-宽.
*
* @param prdtWidth - 产品-宽
*/
public
void
setPrdtWidth
(
BigDecimal
prdtWidth
)
{
this
.
prdtWidth
=
prdtWidth
;
}
/**
* get the prdtThick - 产品-厚.
* @return the prdtThick
*/
public
BigDecimal
getPrdtThick
()
{
return
this
.
prdtThick
;
}
/**
* set the prdtThick - 产品-厚.
*
* @param prdtThick - 产品-厚
*/
public
void
setPrdtThick
(
BigDecimal
prdtThick
)
{
this
.
prdtThick
=
prdtThick
;
}
/**
* get the prdtSpec - 产品规格.
* @return the prdtSpec
*/
public
String
getPrdtSpec
()
{
return
this
.
prdtSpec
;
}
/**
* set the prdtSpec - 产品规格.
*
* @param prdtSpec - 产品规格
*/
public
void
setPrdtSpec
(
String
prdtSpec
)
{
this
.
prdtSpec
=
prdtSpec
;
}
/**
* get the partType - 零件类型.
* @return the partType
*/
public
Boolean
getPartType
()
{
return
this
.
partType
;
}
/**
* set the partType - 零件类型.
*
* @param partType - 零件类型
*/
public
void
setPartType
(
Boolean
partType
)
{
this
.
partType
=
partType
;
}
/**
* get the partCode - 零件编码.
* @return the partCode
*/
public
String
getPartCode
()
{
return
this
.
partCode
;
}
/**
* set the partCode - 零件编码.
*
* @param partCode - 零件编码
*/
public
void
setPartCode
(
String
partCode
)
{
this
.
partCode
=
partCode
;
}
/**
* get the partName - 零件名称.
* @return the partName
*/
public
String
getPartName
()
{
return
this
.
partName
;
}
/**
* set the partName - 零件名称.
*
* @param partName - 零件名称
*/
public
void
setPartName
(
String
partName
)
{
this
.
partName
=
partName
;
}
/**
* get the partLength - 零件-长.
* @return the partLength
*/
public
BigDecimal
getPartLength
()
{
return
this
.
partLength
;
}
/**
* set the partLength - 零件-长.
*
* @param partLength - 零件-长
*/
public
void
setPartLength
(
BigDecimal
partLength
)
{
this
.
partLength
=
partLength
;
}
/**
* get the partWidth - 零件-宽.
* @return the partWidth
*/
public
BigDecimal
getPartWidth
()
{
return
this
.
partWidth
;
}
/**
* set the partWidth - 零件-宽.
*
* @param partWidth - 零件-宽
*/
public
void
setPartWidth
(
BigDecimal
partWidth
)
{
this
.
partWidth
=
partWidth
;
}
/**
* get the partThick - 零件-厚.
* @return the partThick
*/
public
BigDecimal
getPartThick
()
{
return
this
.
partThick
;
}
/**
* set the partThick - 零件-厚.
*
* @param partThick - 零件-厚
*/
public
void
setPartThick
(
BigDecimal
partThick
)
{
this
.
partThick
=
partThick
;
}
/**
* get the partSpec - 零件规格.
* @return the partSpec
*/
public
String
getPartSpec
()
{
return
this
.
partSpec
;
}
/**
* set the partSpec - 零件规格.
*
* @param partSpec - 零件规格
*/
public
void
setPartSpec
(
String
partSpec
)
{
this
.
partSpec
=
partSpec
;
}
/**
* get the primaryId - 主表id.
* @return the primaryId
*/
public
Long
getPrimaryId
()
{
return
this
.
primaryId
;
}
/**
* set the primaryId - 主表id.
*
* @param primaryId - 主表id
*/
public
void
setPrimaryId
(
Long
primaryId
)
{
this
.
primaryId
=
primaryId
;
}
/**
* get the price - 单价.
* @return the price
*/
public
BigDecimal
getPrice
()
{
return
this
.
price
;
}
/**
* set the price - 单价.
*
* @param price - 单价
*/
public
void
setPrice
(
BigDecimal
price
)
{
this
.
price
=
price
;
}
/**
* get the amount - 金额.
* @return the amount
*/
public
BigDecimal
getAmount
()
{
return
this
.
amount
;
}
/**
* set the amount - 金额.
*
* @param amount - 金额
*/
public
void
setAmount
(
BigDecimal
amount
)
{
this
.
amount
=
amount
;
}
/**
* get the storageType - 入库类型:1:入库 2:退回.
* @return the storageType
*/
public
Boolean
getStorageType
()
{
return
this
.
storageType
;
}
/**
* set the storageType - 入库类型:1:入库 2:退回.
*
* @param storageType - 入库类型:1:入库 2:退回
*/
public
void
setStorageType
(
Boolean
storageType
)
{
this
.
storageType
=
storageType
;
}
public
Long
getQualityId
()
{
return
qualityId
;
}
public
void
setQualityId
(
Long
qualityId
)
{
this
.
qualityId
=
qualityId
;
}
public
Long
getPartSpecId
()
{
return
partSpecId
;
}
public
void
setPartSpecId
(
Long
partSpecId
)
{
this
.
partSpecId
=
partSpecId
;
}
public
Long
getRectificationId
()
{
return
rectificationId
;
}
public
void
setRectificationId
(
Long
rectificationId
)
{
this
.
rectificationId
=
rectificationId
;
}
public
BigDecimal
getPartCoefficient
()
{
return
partCoefficient
;
}
public
void
setPartCoefficient
(
BigDecimal
partCoefficient
)
{
this
.
partCoefficient
=
partCoefficient
;
}
public
Integer
getInventTypeDetail
()
{
return
inventTypeDetail
;
}
public
void
setInventTypeDetail
(
Integer
inventTypeDetail
)
{
this
.
inventTypeDetail
=
inventTypeDetail
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setQualityId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_QUALITY_ID
)),
qualityId
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setDeleteFlag
(
NumberUtils
.
toBoolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setDepositDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEPOSIT_DATE
)),
depositDate
));
setDepositNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEPOSIT_NO
)),
depositNo
));
setWhCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_CODE
)),
whCode
));
setWhName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_NAME
)),
whName
));
setInvQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INV_QTY
)),
invQty
));
setInvUnitWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INV_UNIT_WEIGHT
)),
invUnitWeight
));
setInvWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INV_WEIGHT
)),
invWeight
));
setDepositNoOld
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEPOSIT_NO_OLD
)),
depositNoOld
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMARK
)),
remark
));
setFactoryCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FACTORY_CODE
)),
factoryCode
));
setProdOrderNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROD_ORDER_NO
)),
prodOrderNo
));
setProdTaskNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROD_TASK_NO
)),
prodTaskNo
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setPrdtType
(
NumberUtils
.
toBoolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_TYPE
)),
prdtType
));
setPrdtCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_CODE
)),
prdtCode
));
setPrdtName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_NAME
)),
prdtName
));
setPrdtLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_LENGTH
)),
prdtLength
));
setPrdtWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_WIDTH
)),
prdtWidth
));
setPrdtThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_THICK
)),
prdtThick
));
setPrdtSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_SPEC
)),
prdtSpec
));
setPartType
(
NumberUtils
.
toBoolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_TYPE
)),
partType
));
setPartCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_CODE
)),
partCode
));
setPartName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_NAME
)),
partName
));
setPartLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_LENGTH
)),
partLength
));
setPartWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_WIDTH
)),
partWidth
));
setPartThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_THICK
)),
partThick
));
setPartSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_SPEC
)),
partSpec
));
setPrimaryId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRIMARY_ID
)),
primaryId
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRICE
)),
price
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setStorageType
(
NumberUtils
.
toBoolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STORAGE_TYPE
)),
storageType
));
setPartSpecId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_SPEC_ID
)),
partSpecId
));
setRectificationId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECTIFICATION_ID
)),
rectificationId
));
setPartCoefficient
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_COEFFICIENT
)),
partCoefficient
));
setInventTypeDetail
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE_DETAIL
)),
inventTypeDetail
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
FIELD_QUALITY_ID
,
StringUtils
.
toString
(
qualityId
,
eiMetadata
.
getMeta
(
FIELD_QUALITY_ID
)));
map
.
put
(
FIELD_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_UPDATED_BY
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_BY
)));
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
map
.
put
(
FIELD_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_COMPANY_NAME
,
StringUtils
.
toString
(
companyName
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_NAME
)));
map
.
put
(
FIELD_DEPOSIT_DATE
,
StringUtils
.
toString
(
depositDate
,
eiMetadata
.
getMeta
(
FIELD_DEPOSIT_DATE
)));
map
.
put
(
FIELD_DEPOSIT_NO
,
StringUtils
.
toString
(
depositNo
,
eiMetadata
.
getMeta
(
FIELD_DEPOSIT_NO
)));
map
.
put
(
FIELD_WH_CODE
,
StringUtils
.
toString
(
whCode
,
eiMetadata
.
getMeta
(
FIELD_WH_CODE
)));
map
.
put
(
FIELD_WH_NAME
,
StringUtils
.
toString
(
whName
,
eiMetadata
.
getMeta
(
FIELD_WH_NAME
)));
map
.
put
(
FIELD_INV_QTY
,
StringUtils
.
toString
(
invQty
,
eiMetadata
.
getMeta
(
FIELD_INV_QTY
)));
map
.
put
(
FIELD_INV_UNIT_WEIGHT
,
StringUtils
.
toString
(
invUnitWeight
,
eiMetadata
.
getMeta
(
FIELD_INV_UNIT_WEIGHT
)));
map
.
put
(
FIELD_INV_WEIGHT
,
StringUtils
.
toString
(
invWeight
,
eiMetadata
.
getMeta
(
FIELD_INV_WEIGHT
)));
map
.
put
(
FIELD_DEPOSIT_NO_OLD
,
StringUtils
.
toString
(
depositNoOld
,
eiMetadata
.
getMeta
(
FIELD_DEPOSIT_NO_OLD
)));
map
.
put
(
FIELD_REMARK
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
FIELD_REMARK
)));
map
.
put
(
FIELD_FACTORY_CODE
,
StringUtils
.
toString
(
factoryCode
,
eiMetadata
.
getMeta
(
FIELD_FACTORY_CODE
)));
map
.
put
(
FIELD_PROD_ORDER_NO
,
StringUtils
.
toString
(
prodOrderNo
,
eiMetadata
.
getMeta
(
FIELD_PROD_ORDER_NO
)));
map
.
put
(
FIELD_PROD_TASK_NO
,
StringUtils
.
toString
(
prodTaskNo
,
eiMetadata
.
getMeta
(
FIELD_PROD_TASK_NO
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
map
.
put
(
FIELD_PRDT_TYPE
,
StringUtils
.
toString
(
prdtType
,
eiMetadata
.
getMeta
(
FIELD_PRDT_TYPE
)));
map
.
put
(
FIELD_PRDT_CODE
,
StringUtils
.
toString
(
prdtCode
,
eiMetadata
.
getMeta
(
FIELD_PRDT_CODE
)));
map
.
put
(
FIELD_PRDT_NAME
,
StringUtils
.
toString
(
prdtName
,
eiMetadata
.
getMeta
(
FIELD_PRDT_NAME
)));
map
.
put
(
FIELD_PRDT_LENGTH
,
StringUtils
.
toString
(
prdtLength
,
eiMetadata
.
getMeta
(
FIELD_PRDT_LENGTH
)));
map
.
put
(
FIELD_PRDT_WIDTH
,
StringUtils
.
toString
(
prdtWidth
,
eiMetadata
.
getMeta
(
FIELD_PRDT_WIDTH
)));
map
.
put
(
FIELD_PRDT_THICK
,
StringUtils
.
toString
(
prdtThick
,
eiMetadata
.
getMeta
(
FIELD_PRDT_THICK
)));
map
.
put
(
FIELD_PRDT_SPEC
,
StringUtils
.
toString
(
prdtSpec
,
eiMetadata
.
getMeta
(
FIELD_PRDT_SPEC
)));
map
.
put
(
FIELD_PART_TYPE
,
StringUtils
.
toString
(
partType
,
eiMetadata
.
getMeta
(
FIELD_PART_TYPE
)));
map
.
put
(
FIELD_PART_CODE
,
StringUtils
.
toString
(
partCode
,
eiMetadata
.
getMeta
(
FIELD_PART_CODE
)));
map
.
put
(
FIELD_PART_NAME
,
StringUtils
.
toString
(
partName
,
eiMetadata
.
getMeta
(
FIELD_PART_NAME
)));
map
.
put
(
FIELD_PART_LENGTH
,
StringUtils
.
toString
(
partLength
,
eiMetadata
.
getMeta
(
FIELD_PART_LENGTH
)));
map
.
put
(
FIELD_PART_WIDTH
,
StringUtils
.
toString
(
partWidth
,
eiMetadata
.
getMeta
(
FIELD_PART_WIDTH
)));
map
.
put
(
FIELD_PART_THICK
,
StringUtils
.
toString
(
partThick
,
eiMetadata
.
getMeta
(
FIELD_PART_THICK
)));
map
.
put
(
FIELD_PART_SPEC
,
StringUtils
.
toString
(
partSpec
,
eiMetadata
.
getMeta
(
FIELD_PART_SPEC
)));
map
.
put
(
FIELD_PRIMARY_ID
,
StringUtils
.
toString
(
primaryId
,
eiMetadata
.
getMeta
(
FIELD_PRIMARY_ID
)));
map
.
put
(
FIELD_PRICE
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
FIELD_PRICE
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_STORAGE_TYPE
,
StringUtils
.
toString
(
storageType
,
eiMetadata
.
getMeta
(
FIELD_STORAGE_TYPE
)));
map
.
put
(
FIELD_PART_SPEC_ID
,
StringUtils
.
toString
(
partSpecId
,
eiMetadata
.
getMeta
(
FIELD_PART_SPEC_ID
)));
map
.
put
(
FIELD_RECTIFICATION_ID
,
StringUtils
.
toString
(
rectificationId
,
eiMetadata
.
getMeta
(
FIELD_RECTIFICATION_ID
)));
map
.
put
(
FIELD_PART_COEFFICIENT
,
StringUtils
.
toString
(
partCoefficient
,
eiMetadata
.
getMeta
(
FIELD_PART_COEFFICIENT
)));
map
.
put
(
FIELD_INVENT_TYPE_DETAIL
,
StringUtils
.
toString
(
inventTypeDetail
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE_DETAIL
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC003.java
View file @
cd55601a
...
...
@@ -160,7 +160,7 @@ public class ServiceHGKC003 extends ServiceBase {
//修改计划生产任务完工数量
HGSCTools
.
complete
(
hgkc003
.
getQualityId
(),
hgkc003
.
getInvQty
().
intValue
(),
hgkc003
.
getRectificationId
(),
HGConstant
.
StorageType
.
RK
);
// 修改库存
HGKCUtils
.
HgKc010
.
updateInv
(
hgkc003
.
getCompanyCode
(),
hgkc003
.
getWhCode
(),
hgkc003
.
getP
ar
tCode
(),
HGKCUtils
.
HgKc010
.
updateInv
(
hgkc003
.
getCompanyCode
(),
hgkc003
.
getWhCode
(),
hgkc003
.
getP
rd
tCode
(),
hgkc003
.
getInvQty
(),
hgkc003
.
getInvWeight
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
...
...
@@ -181,15 +181,15 @@ public class ServiceHGKC003 extends ServiceBase {
AssertUtils
.
isEmpty
(
hgkc003
.
getWhName
(),
"仓库名称不能为空!"
);
AssertUtils
.
isNull
(
hgkc003
.
getPrice
(),
"单价不能为空!"
);
//判断是不是最前工序,如果不是得提示
List
<
HGPZ005A
>
hgpz005AList
=
HGPZTools
.
HgPz005A
.
queryByInventCode
(
hgkc003
.
getP
ar
tCode
());
List
<
HGPZ005A
>
hgpz005AList
=
HGPZTools
.
HgPz005A
.
queryByInventCode
(
hgkc003
.
getP
rd
tCode
());
List
<
HGKC003
>
hgkc003List
=
HGKCTools
.
HgKc003
.
getByQualityId
(
hgkc003
.
getQualityId
());
//当前提交的工序信息
HGPZ005A
hgpz005AFilter
=
hgpz005AList
.
stream
().
filter
(
o
->
o
.
getInventCode
().
equals
(
hgkc003
.
getP
ar
tCode
())).
findAny
().
orElse
(
null
);
HGPZ005A
hgpz005AFilter
=
hgpz005AList
.
stream
().
filter
(
o
->
o
.
getInventCode
().
equals
(
hgkc003
.
getP
rd
tCode
())).
findAny
().
orElse
(
null
);
AssertUtils
.
isNull
(
hgpz005AFilter
,
"此物料没有配置工序!"
);
for
(
HGKC003
entity
:
hgkc003List
){
if
(
entity
.
getId
().
intValue
()
!=
hgkc003
.
getId
().
intValue
()){
//遍历相同质检单的工序
HGPZ005A
hgpz005A
=
hgpz005AList
.
stream
().
filter
(
o
->
o
.
getInventCode
().
equals
(
entity
.
getP
ar
tCode
())).
findAny
().
orElse
(
null
);
HGPZ005A
hgpz005A
=
hgpz005AList
.
stream
().
filter
(
o
->
o
.
getInventCode
().
equals
(
entity
.
getP
rd
tCode
())).
findAny
().
orElse
(
null
);
//如果未提交的生产单有比当前更靠前的工序,则需要提示
AssertUtils
.
isTrue
(
hgpz005A
.
getProcessOrder
().
compareTo
(
hgpz005AFilter
.
getProcessOrder
())
<
0
,
hgpz005A
.
getInventCode
()+
"的工序“"
+
hgpz005A
.
getProcessName
()+
"“未提交,生产入库号为:"
+
entity
.
getDepositNo
());
}
...
...
@@ -246,7 +246,7 @@ public class ServiceHGKC003 extends ServiceBase {
//修改计划生产任务完工数量
HGSCTools
.
complete
(
fKc003
.
getQualityId
(),
newKc003
.
getInvQty
().
intValue
(),
fKc003
.
getRectificationId
(),
HGConstant
.
StorageType
.
TH
);
// 修改库存
HGKCUtils
.
HgKc010
.
updateInv
(
newKc003
.
getCompanyCode
(),
newKc003
.
getWhCode
(),
newKc003
.
getP
ar
tCode
(),
HGKCUtils
.
HgKc010
.
updateInv
(
newKc003
.
getCompanyCode
(),
newKc003
.
getWhCode
(),
newKc003
.
getP
rd
tCode
(),
newKc003
.
getInvQty
(),
newKc003
.
getInvWeight
());
}
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC003B.java
deleted
100644 → 0
View file @
682fc1de
package
com
.
baosight
.
hggp
.
hg
.
kc
.
service
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.kc.domain.HGKC003
;
import
com.baosight.hggp.hg.kc.domain.HGKC003A
;
import
com.baosight.hggp.util.*
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
java.util.*
;
/**
* 生产入库明细
*
* @author:jhs
* @date:2024/5/24,11:08
*/
public
class
ServiceHGKC003B
extends
ServiceEPBase
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGKC003A
.
QUERY
,
new
HGKC003A
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
));
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGKC003A
.
QUERY
,
new
HGKC003A
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
));
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 蓝图ids
List
<
Long
>
ids
=
ObjectUtils
.
listKey
(
resultRows
,
HGKC003A
.
FIELD_ID
);
DaoUtils
.
update
(
HGKC003A
.
BATCH_DELETE
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"删除失败"
);
}
return
inInfo
;
}
public
EiInfo
save
(
EiInfo
inInfo
){
try
{
Map
resultMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
,
EiConstant
.
resultBlock
);
HGKC003A
hgkc003a
=
new
HGKC003A
();
hgkc003a
.
fromMap
(
resultMap
);
//查询蓝图
HGKC003
hgkc003
=
(
HGKC003
)
super
.
dao
.
get
(
HGKC003
.
QUERY
,
HGKC003
.
FIELD_ID
,
hgkc003a
.
getPrimaryId
());
//复制蓝图基本信息
hgkc003a
.
setCompanyCode
(
hgkc003
.
getCompanyCode
());
hgkc003a
.
setCompanyName
(
hgkc003
.
getCompanyName
());
hgkc003a
.
setDepCode
(
hgkc003
.
getDepCode
());
// hgkc003a.setDepName(hgkc003.getDepName());
hgkc003a
.
setProjCode
(
hgkc003
.
getProjCode
());
hgkc003a
.
setProjName
(
hgkc003
.
getProjName
());
this
.
checkSaveData
(
hgkc003a
,
hgkc003
);
if
(
Objects
.
nonNull
(
hgkc003a
.
getId
())&&
hgkc003a
.
getId
()!=
0
){
DaoUtils
.
update
(
HGKC003A
.
UPDATE
,
hgkc003a
);
}
else
{
DaoUtils
.
insert
(
HGKC003A
.
INSERT
,
hgkc003a
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
}
return
inInfo
;
}
/**
* 校验保存的数据
*
* @param hgkc003a
*/
private
void
checkSaveData
(
HGKC003A
hgkc003a
,
HGKC003
hgkc003
)
{
if
(
Objects
.
nonNull
(
hgkc003a
.
getId
())&&
hgkc003a
.
getId
()>
0
){
AssertUtils
.
isTrue
(
hgkc003
.
getSubmitStatus
().
compareTo
(
HGConstant
.
ProductStatus
.
YTJ
)
==
0
,
"入库单已提交,不能修改!"
);
}
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getAccountCode
(),
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getOrgId
(),
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getCompanyCode
(),
"请选择公司!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getProjCode
(),
"请填写项目编号!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getProjName
(),
"请填写项目名称!"
);
}
}
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003.xml
View file @
cd55601a
...
...
@@ -81,26 +81,26 @@
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"p
ar
tType"
>
P
ART_TYPE = #par
tType#
<isNotEmpty
prepend=
" AND "
property=
"p
rd
tType"
>
P
RDT_TYPE = #prd
tType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"p
ar
tCode"
>
P
ART_CODE = #par
tCode#
<isNotEmpty
prepend=
" AND "
property=
"p
rd
tCode"
>
P
RDT_CODE = #prd
tCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"p
ar
tName"
>
P
ART_NAME = #par
tName#
<isNotEmpty
prepend=
" AND "
property=
"p
rd
tName"
>
P
RDT_NAME = #prd
tName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"p
ar
tLength"
>
P
ART_LENGTH = #par
tLength#
<isNotEmpty
prepend=
" AND "
property=
"p
rd
tLength"
>
P
RDT_LENGTH = #prd
tLength#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"p
ar
tWidth"
>
P
ART_WIDTH = #par
tWidth#
<isNotEmpty
prepend=
" AND "
property=
"p
rd
tWidth"
>
P
RDT_WIDTH = #prd
tWidth#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"p
ar
tThick"
>
P
ART_THICK = #par
tThick#
<isNotEmpty
prepend=
" AND "
property=
"p
rd
tThick"
>
P
RDT_THICK = #prd
tThick#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"p
ar
tSpec"
>
P
ART_SPEC = #par
tSpec#
<isNotEmpty
prepend=
" AND "
property=
"p
rd
tSpec"
>
P
RDT_SPEC = #prd
tSpec#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"price"
>
PRICE = #price#
...
...
@@ -114,14 +114,11 @@
<isNotEmpty
prepend=
" AND "
property=
"qualityId"
>
QUALITY_ID = #qualityId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partSpecId"
>
PART_SPEC_ID = #partSpecId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"rectificationId"
>
RECTIFICATION_ID = #rectificationId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"p
ar
tCoefficient"
>
P
ART_COEFFICIENT = #par
tCoefficient#
<isNotEmpty
prepend=
" AND "
property=
"p
rd
tCoefficient"
>
P
RDT_COEFFICIENT = #prd
tCoefficient#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"submitStatus"
>
SUBMIT_STATUS = #submitStatus#
...
...
@@ -135,6 +132,30 @@
<isNotEmpty
prepend=
" AND "
property=
"inventTypeDetails"
>
INVENT_TYPE_DETAIL IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"inventTypeDetails"
>
#inventTypeDetails[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"matId"
>
MAT_ID = #matId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"workId"
>
WORK_ID = #workId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"techFlowId"
>
TECH_FLOW_ID = #techFlowId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"techFlowName"
>
TECH_FLOW_NAME = #techFlowName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventProcessId"
>
INVENT_PROCESS_ID = #inventProcessId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processCode"
>
PROCESS_CODE = #processCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processName"
>
PROCESS_NAME = #processName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processOrder"
>
PROCESS_ORDER = #processOrder#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
...
...
@@ -143,8 +164,7 @@
ID as "id",
QUALITY_ID as "qualityId",
<!-- 质检单明细ID -->
RECTIFICATION_ID as "rectificationId",
<!-- 整改通知单ID -->
PART_SPEC_ID as "partSpecId",
<!-- 零件规格ID -->
PART_COEFFICIENT as "partCoefficient",
<!-- 零件系数 -->
PRDT_COEFFICIENT as "prdtCoefficient",
<!-- 零件系数 -->
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
...
...
@@ -170,19 +190,27 @@
PROD_TASK_NO as "prodTaskNo",
<!-- 生产任务号 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
P
ART_TYPE as "partType",
<!-- 零件
类型 -->
P
ART_CODE as "partCode",
<!-- 零件
编码 -->
P
ART_NAME as "partName",
<!-- 零件
名称 -->
P
ART_LENGTH as "partLength",
<!-- 零件
-长 -->
P
ART_WIDTH as "partWidth",
<!-- 零件
-宽 -->
P
ART_THICK as "partThick",
<!-- 零件
-厚 -->
P
ART_SPEC as "partSpec",
<!-- 零件
规格 -->
P
RDT_TYPE as "prdtType",
<!-- 产品
类型 -->
P
RDT_CODE as "prdtCode",
<!-- 产品
编码 -->
P
RDT_NAME as "prdtName",
<!-- 产品
名称 -->
P
RDT_LENGTH as "prdtLength",
<!-- 产品
-长 -->
P
RDT_WIDTH as "prdtWidth",
<!-- 产品
-宽 -->
P
RDT_THICK as "prdtThick",
<!-- 产品
-厚 -->
P
RDT_SPEC as "prdtSpec",
<!-- 产品
规格 -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额 -->
STORAGE_TYPE as "storageType",
<!-- 入库类型:1:入库 2:退回 -->
IS_RETURN as "isReturn",
<!-- 是否退回:0:否 1:是 -->
SUBMIT_STATUS as "submitStatus",
<!-- 提交状态 -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
INVENT_TYPE_DETAIL as "inventTypeDetail",
MAT_ID as "matId",
<!-- 物料清单ID -->
WORK_ID as "workId",
<!-- 报工单ID -->
TECH_FLOW_ID as "techFlowId",
<!-- 工艺流程ID -->
TECH_FLOW_NAME as "techFlowName",
<!-- 工艺流程名称 -->
INVENT_PROCESS_ID as "inventProcessId",
<!-- 存货工序ID,对应HGPZ005A.id -->
PROCESS_CODE as "processCode",
<!-- 工序编码 -->
PROCESS_NAME as "processName",
<!-- 工序名称 -->
PROCESS_ORDER as "processOrder"
<!-- 加工顺序 -->
FROM ${hggpSchema}.HGKC003 WHERE 1=1 AND DELETE_FLAG = 0
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
...
...
@@ -205,9 +233,8 @@
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGKC003 (
QUALITY_ID,
<!-- 质检单ID -->
PART_SPEC_ID,
<!-- 零件规格ID -->
RECTIFICATION_ID,
<!-- 整改通知单ID -->
P
AR
T_COEFFICIENT,
<!-- 零件系数 -->
P
RD
T_COEFFICIENT,
<!-- 零件系数 -->
ACCOUNT_CODE,
<!-- 企业编码 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 记录创建者 -->
...
...
@@ -233,28 +260,37 @@
PROD_TASK_NO,
<!-- 生产任务号 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
P
ART_TYPE,
<!-- 零件
类型 -->
P
ART_CODE,
<!-- 零件
编码 -->
P
ART_NAME,
<!-- 零件
名称 -->
P
ART_LENGTH,
<!-- 零件
-长 -->
P
ART_WIDTH,
<!-- 零件
-宽 -->
P
ART_THICK,
<!-- 零件
-厚 -->
P
ART_SPEC,
<!-- 零件
规格 -->
P
RDT_TYPE,
<!-- 产品
类型 -->
P
RDT_CODE,
<!-- 产品
编码 -->
P
RDT_NAME,
<!-- 产品
名称 -->
P
RDT_LENGTH,
<!-- 产品
-长 -->
P
RDT_WIDTH,
<!-- 产品
-宽 -->
P
RDT_THICK,
<!-- 产品
-厚 -->
P
RDT_SPEC,
<!-- 产品
规格 -->
PRICE,
<!-- 单价 -->
AMOUNT,
<!-- 金额 -->
STORAGE_TYPE,
<!-- 入库类型:1:入库 2:退回 -->
IS_RETURN,
<!-- 是否退回:0:否 1:是 -->
SUBMIT_STATUS,
INVENT_TYPE_DETAIL
INVENT_TYPE_DETAIL,
MAT_ID,
<!-- 物料清单ID -->
WORK_ID,
<!-- 报工单ID -->
TECH_FLOW_ID,
<!-- 工艺流程ID -->
TECH_FLOW_NAME,
<!-- 工艺流程名称 -->
INVENT_PROCESS_ID,
<!-- 存货工序ID,对应HGPZ005A.id -->
PROCESS_CODE,
<!-- 工序编码 -->
PROCESS_NAME,
<!-- 工序名称 -->
PROCESS_ORDER
<!-- 加工顺序 -->
)
VALUES (#qualityId#,#
partSpecId#,#rectificationId#,#par
tCoefficient#,#accountCode#,
VALUES (#qualityId#,#
rectificationId#,#prd
tCoefficient#,#accountCode#,
#depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#,
#updatedName#, #updatedTime#, #deleteFlag#, #companyCode#,
#companyName#, #depositDate#, #depositNo#, #whCode#, #whName#,
#invQty#, #invUnitWeight#, #invWeight#, #depositNoOld#, #remark#,
#factoryCode#, #prodOrderNo#, #prodTaskNo#, #projCode#, #projName#,
#partType#, #partCode#, #partName#, #partLength#, #partWidth#,
#partThick#, #partSpec#, #price#, #amount#, #storageType#, #isReturn#,#submitStatus#,#inventTypeDetail#)
#prdtType#, #prdtCode#, #prdtName#, #prdtLength#, #prdtWidth#, #prdtThick#,
#prdtSpec#, #price#, #amount#, #storageType#, #isReturn#,#submitStatus#,#inventTypeDetail#,
#matId#, #workId#, #techFlowId#, #techFlowName#, #inventProcessId#, #processCode#, #processName#, #processOrder#)
</insert>
<delete
id=
"delete"
>
...
...
@@ -271,8 +307,7 @@
SET
QUALITY_ID = #qualityId#,
<!-- 质检单ID -->
RECTIFICATION_ID = #rectificationId#,
<!-- 整改通知单ID -->
PART_SPEC_ID = #partSpecId#,
<!-- 零件规格ID -->
PART_COEFFICIENT = #partCoefficient#,
<!-- 零件系数 -->
PRDT_COEFFICIENT = #prdtCoefficient#,
<!-- 零件系数 -->
ACCOUNT_CODE = #accountCode#,
<!-- 企业编码 -->
DEP_CODE = #depCode#,
<!-- 部门编码 -->
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
...
...
@@ -298,13 +333,13 @@
PROD_TASK_NO = #prodTaskNo#,
<!-- 生产任务号 -->
PROJ_CODE = #projCode#,
<!-- 项目编码 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
P
ART_TYPE = #partType#,
<!-- 零件
类型 -->
P
ART_CODE = #partCode#,
<!-- 零件
编码 -->
P
ART_NAME = #partName#,
<!-- 零件
名称 -->
P
ART_LENGTH = #partLength#,
<!-- 零件
-长 -->
P
ART_WIDTH = #partWidth#,
<!-- 零件
-宽 -->
P
ART_THICK = #partThick#,
<!-- 零件
-厚 -->
P
ART_SPEC = #partSpec#,
<!-- 零件
规格 -->
P
RDT_TYPE = #prdtType#,
<!-- 产品
类型 -->
P
RDT_CODE = #prdtCode#,
<!-- 产品
编码 -->
P
RDT_NAME = #prdtName#,
<!-- 产品
名称 -->
P
RDT_LENGTH = #prdtLength#,
<!-- 产品
-长 -->
P
RDT_WIDTH = #prdtWidth#,
<!-- 产品
-宽 -->
P
RDT_THICK = #prdtThick#,
<!-- 产品
-厚 -->
P
RDT_SPEC = #prdtSpec#,
<!-- 产品
规格 -->
PRICE = #price#,
<!-- 单价 -->
AMOUNT = #amount#,
<!-- 金额 -->
STORAGE_TYPE = #storageType#,
<!-- 入库类型:1:入库 2:退回 -->
...
...
@@ -337,7 +372,7 @@
DEP_CODE AS "depCode",
WH_CODE AS "whCode",
PROJ_CODE AS "projCode",
P
ART_CODE AS "par
tCode",
P
RDT_CODE AS "prd
tCode",
COALESCE(SUM(INV_QTY), 0) AS "invQty",
COALESCE(SUM(INV_WEIGHT), 0) AS "invWeight"
FROM ${hggpSchema}.HGKC003
...
...
@@ -345,7 +380,7 @@
<isNotEmpty
prepend=
" AND "
property=
"createdTimeFrom"
>
CREATED_TIME BETWEEN #createdTimeFrom# AND #createdTimeTo#
</isNotEmpty>
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE, PROJ_CODE, P
AR
T_CODE
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE, PROJ_CODE, P
RD
T_CODE
</select>
<select
id=
"queryCheckList"
parameterClass=
"java.util.HashMap"
...
...
@@ -354,8 +389,7 @@
ID as "id",
QUALITY_ID as "qualityId",
<!-- 质检单明细ID -->
RECTIFICATION_ID as "rectificationId",
<!-- 整改通知单ID -->
PART_SPEC_ID as "partSpecId",
<!-- 零件规格ID -->
PART_COEFFICIENT as "partCoefficient",
<!-- 零件系数 -->
PRDT_COEFFICIENT as "prdtCoefficient",
<!-- 零件系数 -->
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
...
...
@@ -381,19 +415,27 @@
PROD_TASK_NO as "prodTaskNo",
<!-- 生产任务号 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
P
ART_TYPE as "partType",
<!-- 零件
类型 -->
P
ART_CODE as "partCode",
<!-- 零件
编码 -->
P
ART_NAME as "partName",
<!-- 零件
名称 -->
P
ART_LENGTH as "partLength",
<!-- 零件
-长 -->
P
ART_WIDTH as "partWidth",
<!-- 零件
-宽 -->
P
ART_THICK as "partThick",
<!-- 零件
-厚 -->
P
ART_SPEC as "partSpec",
<!-- 零件
规格 -->
P
RDT_TYPE as "prdtType",
<!-- 产品
类型 -->
P
RDT_CODE as "prdtCode",
<!-- 产品
编码 -->
P
RDT_NAME as "prdtName",
<!-- 产品
名称 -->
P
RDT_LENGTH as "prdtLength",
<!-- 产品
-长 -->
P
RDT_WIDTH as "prdtWidth",
<!-- 产品
-宽 -->
P
RDT_THICK as "prdtThick",
<!-- 产品
-厚 -->
P
RDT_SPEC as "prdtSpec",
<!-- 产品
规格 -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额 -->
STORAGE_TYPE as "storageType",
<!-- 入库类型:1:入库 2:退回 -->
IS_RETURN as "isReturn",
<!-- 是否退回:0:否 1:是 -->
SUBMIT_STATUS as "submitStatus",
<!-- 提交状态 -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
INVENT_TYPE_DETAIL as "inventTypeDetail",
MAT_ID as "matId",
<!-- 物料清单ID -->
WORK_ID as "workId",
<!-- 报工单ID -->
TECH_FLOW_ID as "techFlowId",
<!-- 工艺流程ID -->
TECH_FLOW_NAME as "techFlowName",
<!-- 工艺流程名称 -->
INVENT_PROCESS_ID as "inventProcessId",
<!-- 存货工序ID,对应HGPZ005A.id -->
PROCESS_CODE as "processCode",
<!-- 工序编码 -->
PROCESS_NAME as "processName",
<!-- 工序名称 -->
PROCESS_ORDER as "processOrder"
<!-- 加工顺序 -->
FROM ${hggpSchema}.HGKC003 WHERE 1=1 AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"billDate"
>
LEFT(DEPOSIT_DATE,6) = #billDate#
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003A.xml
deleted
100644 → 0
View file @
682fc1de
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HGKC003A"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME like ('%$companyName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depositDate"
>
date_format(DEPOSIT_DATE,'%Y-%m-%d') = #depositDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depositNo"
>
DEPOSIT_NO like ('%$depositNo$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whCode"
>
WH_CODE = #whCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whName"
>
WH_NAME = #whName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"invQty"
>
INV_QTY = #invQty#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"invUnitWeight"
>
INV_UNIT_WEIGHT = #invUnitWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"invWeight"
>
INV_WEIGHT = #invWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depositNoOld"
>
DEPOSIT_NO_OLD = #depositNoOld#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"remark"
>
REMARK = #remark#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
FACTORY_CODE = #factoryCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prodOrderNo"
>
PROD_ORDER_NO = #prodOrderNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prodTaskNo"
>
PROD_TASK_NO = #prodTaskNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtType"
>
PRDT_TYPE = #prdtType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtCode"
>
PRDT_CODE = #prdtCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtName"
>
PRDT_NAME = #prdtName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtLength"
>
PRDT_LENGTH = #prdtLength#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtWidth"
>
PRDT_WIDTH = #prdtWidth#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtThick"
>
PRDT_THICK = #prdtThick#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtSpec"
>
PRDT_SPEC = #prdtSpec#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partType"
>
PART_TYPE = #partType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partCode"
>
PART_CODE = #partCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partName"
>
PART_NAME = #partName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partLength"
>
PART_LENGTH = #partLength#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partWidth"
>
PART_WIDTH = #partWidth#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partThick"
>
PART_THICK = #partThick#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partSpec"
>
PART_SPEC = #partSpec#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"primaryId"
>
PRIMARY_ID = #primaryId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"price"
>
PRICE = #price#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
AMOUNT = #amount#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"storageType"
>
STORAGE_TYPE = #storageType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"qualityId"
>
QUALITY_ID = #qualityId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partSpecId"
>
PART_SPEC_ID = #partSpecId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"rectificationId"
>
RECTIFICATION_ID = #rectificationId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partCoefficient"
>
PART_COEFFICIENT = #partCoefficient#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventTypeDetail"
>
INVENT_TYPE_DETAIL = #inventTypeDetail#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventTypeDetails"
>
INVENT_TYPE_DETAIL IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"inventTypeDetails"
>
#inventTypeDetails[]#
</iterate>
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.kc.domain.HGKC003A"
>
SELECT
ID as "id",
QUALITY_ID as "qualityId",
<!-- 质检单明细ID -->
RECTIFICATION_ID as "rectificationId",
<!-- 整改通知单ID -->
PART_SPEC_ID as "partSpecId",
<!-- 零件规格ID -->
PART_COEFFICIENT as "partCoefficient",
<!-- 零件系数 -->
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
DEPOSIT_DATE as "depositDate",
<!-- 入库日期 -->
DEPOSIT_NO as "depositNo",
<!-- 入库单号 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName",
<!-- 仓库名称 -->
INV_QTY as "invQty",
<!-- 数量 -->
INV_UNIT_WEIGHT as "invUnitWeight",
<!-- 单重 -->
INV_WEIGHT as "invWeight",
<!-- 重量 -->
DEPOSIT_NO_OLD as "depositNoOld",
<!-- 入库单号(旧) -->
REMARK as "remark",
<!-- 备注 -->
FACTORY_CODE as "factoryCode",
<!-- 工厂代码 -->
PROD_ORDER_NO as "prodOrderNo",
<!-- 生产订单号 -->
PROD_TASK_NO as "prodTaskNo",
<!-- 生产任务号 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PRDT_TYPE as "prdtType",
<!-- 产品类型 -->
PRDT_CODE as "prdtCode",
<!-- 产品编码 -->
PRDT_NAME as "prdtName",
<!-- 产品名称 -->
PRDT_LENGTH as "prdtLength",
<!-- 产品-长 -->
PRDT_WIDTH as "prdtWidth",
<!-- 产品-宽 -->
PRDT_THICK as "prdtThick",
<!-- 产品-厚 -->
PRDT_SPEC as "prdtSpec",
<!-- 产品规格 -->
PART_TYPE as "partType",
<!-- 零件类型 -->
PART_CODE as "partCode",
<!-- 零件编码 -->
PART_NAME as "partName",
<!-- 零件名称 -->
PART_LENGTH as "partLength",
<!-- 零件-长 -->
PART_WIDTH as "partWidth",
<!-- 零件-宽 -->
PART_THICK as "partThick",
<!-- 零件-厚 -->
PART_SPEC as "partSpec",
<!-- 零件规格 -->
PRIMARY_ID as "primaryId",
<!-- 主表id -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额 -->
STORAGE_TYPE as "storageType",
<!-- 入库类型:1:入库 2:退回 -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
FROM ${hggpSchema}.HGKC003A WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGKC003A WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGKC003A (
QUALITY_ID,
<!-- 质检单ID -->
RECTIFICATION_ID,
<!-- 整改通知单ID -->
PART_SPEC_ID,
<!-- 零件规格ID -->
PART_COEFFICIENT,
<!-- 零件系数 -->
ACCOUNT_CODE,
<!-- 企业编码 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
DELETE_FLAG,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE,
<!-- 公司编码 -->
COMPANY_NAME,
<!-- 公司名称 -->
DEPOSIT_DATE,
<!-- 入库日期 -->
DEPOSIT_NO,
<!-- 入库单号 -->
WH_CODE,
<!-- 仓库编码 -->
WH_NAME,
<!-- 仓库名称 -->
INV_QTY,
<!-- 数量 -->
INV_UNIT_WEIGHT,
<!-- 单重 -->
INV_WEIGHT,
<!-- 重量 -->
DEPOSIT_NO_OLD,
<!-- 入库单号(旧) -->
REMARK,
<!-- 备注 -->
FACTORY_CODE,
<!-- 工厂代码 -->
PROD_ORDER_NO,
<!-- 生产订单号 -->
PROD_TASK_NO,
<!-- 生产任务号 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
PRDT_TYPE,
<!-- 产品类型 -->
PRDT_CODE,
<!-- 产品编码 -->
PRDT_NAME,
<!-- 产品名称 -->
PRDT_LENGTH,
<!-- 产品-长 -->
PRDT_WIDTH,
<!-- 产品-宽 -->
PRDT_THICK,
<!-- 产品-厚 -->
PRDT_SPEC,
<!-- 产品规格 -->
PART_TYPE,
<!-- 零件类型 -->
PART_CODE,
<!-- 零件编码 -->
PART_NAME,
<!-- 零件名称 -->
PART_LENGTH,
<!-- 零件-长 -->
PART_WIDTH,
<!-- 零件-宽 -->
PART_THICK,
<!-- 零件-厚 -->
PART_SPEC,
<!-- 零件规格 -->
PRIMARY_ID,
<!-- 主表id -->
PRICE,
<!-- 单价 -->
AMOUNT,
<!-- 金额 -->
STORAGE_TYPE,
<!-- 入库类型:1:入库 2:退回 -->
INVENT_TYPE_DETAIL
)
VALUES (#qualityId#,#partSpecId#,#rectificationId#,#partCoefficient#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #depositDate#, #depositNo#, #whCode#, #whName#, #invQty#, #invUnitWeight#, #invWeight#, #depositNoOld#, #remark#, #factoryCode#, #prodOrderNo#, #prodTaskNo#, #projCode#, #projName#, #prdtType#, #prdtCode#, #prdtName#, #prdtLength#, #prdtWidth#, #prdtThick#, #prdtSpec#, #partType#, #partCode#, #partName#, #partLength#, #partWidth#, #partThick#, #partSpec#, #primaryId#, #price#, #amount#, #storageType#,#inventTypeDetail#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGKC003A WHERE
ID = #id#
</delete>
<delete
id=
"batchDelete"
>
DELETE FROM ${hggpSchema}.HGKC003A WHERE
id IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"ids"
>
#ids[]#
</iterate>
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGKC003A
SET
QUALITY_ID = #qualityId#,
<!-- 质检单ID -->
RECTIFICATION_ID = #rectificationId#,
<!-- 整改通知单ID -->
PART_SPEC_ID = #partSpecId#,
<!-- 零件规格ID -->
PART_COEFFICIENT = #partCoefficient#,
<!-- 零件系数 -->
ACCOUNT_CODE = #accountCode#,
<!-- 企业编码 -->
DEP_CODE = #depCode#,
<!-- 部门编码 -->
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#,
<!-- 公司编码 -->
COMPANY_NAME = #companyName#,
<!-- 公司名称 -->
DEPOSIT_DATE = #depositDate#,
<!-- 入库日期 -->
DEPOSIT_NO = #depositNo#,
<!-- 入库单号 -->
WH_CODE = #whCode#,
<!-- 仓库编码 -->
WH_NAME = #whName#,
<!-- 仓库名称 -->
INV_QTY = #invQty#,
<!-- 数量 -->
INV_UNIT_WEIGHT = #invUnitWeight#,
<!-- 单重 -->
INV_WEIGHT = #invWeight#,
<!-- 重量 -->
DEPOSIT_NO_OLD = #depositNoOld#,
<!-- 入库单号(旧) -->
REMARK = #remark#,
<!-- 备注 -->
FACTORY_CODE = #factoryCode#,
<!-- 工厂代码 -->
PROD_ORDER_NO = #prodOrderNo#,
<!-- 生产订单号 -->
PROD_TASK_NO = #prodTaskNo#,
<!-- 生产任务号 -->
PROJ_CODE = #projCode#,
<!-- 项目编码 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
PRDT_TYPE = #prdtType#,
<!-- 产品类型 -->
PRDT_CODE = #prdtCode#,
<!-- 产品编码 -->
PRDT_NAME = #prdtName#,
<!-- 产品名称 -->
PRDT_LENGTH = #prdtLength#,
<!-- 产品-长 -->
PRDT_WIDTH = #prdtWidth#,
<!-- 产品-宽 -->
PRDT_THICK = #prdtThick#,
<!-- 产品-厚 -->
PRDT_SPEC = #prdtSpec#,
<!-- 产品规格 -->
PART_TYPE = #partType#,
<!-- 零件类型 -->
PART_CODE = #partCode#,
<!-- 零件编码 -->
PART_NAME = #partName#,
<!-- 零件名称 -->
PART_LENGTH = #partLength#,
<!-- 零件-长 -->
PART_WIDTH = #partWidth#,
<!-- 零件-宽 -->
PART_THICK = #partThick#,
<!-- 零件-厚 -->
PART_SPEC = #partSpec#,
<!-- 零件规格 -->
PRIMARY_ID = #primaryId#,
<!-- 主表id -->
PRICE = #price#,
<!-- 单价 -->
AMOUNT = #amount#,
<!-- 金额 -->
STORAGE_TYPE = #storageType#,
<!-- 入库类型:1:入库 2:退回 -->
INVENT_TYPE_DETAIL = #inventTypeDetail#
WHERE
ID = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
View file @
cd55601a
...
...
@@ -232,29 +232,6 @@ public class HGKCTools {
return
CollectionUtils
.
isEmpty
(
list
)
?
null
:
list
;
}
public
static
HGKC003
save
(
HGKC003
hgkc003
,
List
<
HGKC003A
>
hgkc003aList
){
checkSaveData
(
hgkc003
,
hgkc003aList
);
hgkc003
.
setDepositNo
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
PROD_DEPOSIT_NO
));
Long
maxId
=
(
Long
)
DaoBase
.
getInstance
().
get
(
HGKC003
.
MAX_ID
,
null
,
null
);
Long
setId
=
maxId
+
1
;
hgkc003
.
setId
(
setId
);
DaoUtils
.
insert
(
HGKC003
.
INSERT
,
hgkc003
);
hgkc003aList
.
forEach
(
o
->{
o
.
setPrimaryId
(
setId
);
});
DaoUtils
.
insertBatch
(
HGKC003A
.
INSERT
,
hgkc003aList
);
return
hgkc003
;
}
private
static
void
checkSaveData
(
HGKC003
hgkc003
,
List
<
HGKC003A
>
hgkc003aList
)
{
AssertUtils
.
isEmpty
(
hgkc003
.
getCompanyCode
(),
"公司编码不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003
.
getCompanyName
(),
"公司名称不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003
.
getProjCode
(),
"项目编号不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003
.
getProjName
(),
"项目名称不能为空!"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgkc003
.
getQualityId
())||
hgkc003
.
getQualityId
()<=
0
,
"质检单ID不能为空!"
);
}
/**
* 校验生产入库信息,整改单就不用校验了
* @param hgzl002List
...
...
@@ -323,15 +300,14 @@ public class HGKCTools {
hgkc003
.
setInvWeight
(
hgsc008
.
getTotalWeight
());
hgkc003
.
setProjCode
(
o
.
getProjCode
());
hgkc003
.
setProjName
(
o
.
getProjName
());
hgkc003
.
setPartCode
(
o
.
getProductCode
());
hgkc003
.
setPartName
(
o
.
getProductName
());
hgkc003
.
setPartType
(
hgpz005
.
getInventType
());
hgkc003
.
setPartSpecId
(
hgpz005
.
getId
());
hgkc003
.
setPartSpec
(
hgpz005
.
getSpec
());
hgkc003
.
setPartCoefficient
(
hgpz005
.
getCoefficient
());
hgkc003
.
setPartLength
(
hgpz005
.
getLength
());
hgkc003
.
setPartWidth
(
hgpz005
.
getWidth
());
hgkc003
.
setPartThick
(
hgpz005
.
getThick
());
hgkc003
.
setPrdtCode
(
o
.
getProductCode
());
hgkc003
.
setPrdtName
(
o
.
getProductName
());
hgkc003
.
setPrdtType
(
hgpz005
.
getInventType
());
hgkc003
.
setPrdtSpec
(
hgpz005
.
getSpec
());
hgkc003
.
setPrdtCoefficient
(
hgpz005
.
getCoefficient
());
hgkc003
.
setPrdtLength
(
hgpz005
.
getLength
());
hgkc003
.
setPrdtWidth
(
hgpz005
.
getWidth
());
hgkc003
.
setPrdtThick
(
hgpz005
.
getThick
());
hgkc003
.
setDepositDate
(
DateUtils
.
shortDate
());
hgkc003
.
setStorageType
(
HGConstant
.
StorageType
.
RK
);
hgkc003
.
setIsReturn
(
CommonConstant
.
YesNo
.
NO_0
);
...
...
@@ -415,36 +391,6 @@ public class HGKCTools {
}
/**
* HGKC003A 工具类
*
* @author:songx
* @date:2024/5/15,9:49
*/
public
static
class
Hgkc003a
{
public
static
HGKC003A
save
(
HGKC003A
hgkc003a
){
checkSaveData
(
hgkc003a
);
hgkc003a
.
setDepositNo
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
PROD_DEPOSIT_NO
));
DaoUtils
.
insert
(
HGKC003A
.
INSERT
,
hgkc003a
);
return
hgkc003a
;
}
private
static
void
checkSaveData
(
HGKC003A
hgkc003a
)
{
AssertUtils
.
isEmpty
(
hgkc003a
.
getCompanyCode
(),
"公司编码不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getCompanyName
(),
"公司名称不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getProjCode
(),
"项目编号不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getProjName
(),
"项目名称不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getWhCode
(),
"仓库编码不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getWhName
(),
"仓库名称不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getPrdtCode
(),
"存货编码不能为空!"
);
AssertUtils
.
isEmpty
(
hgkc003a
.
getPrdtName
(),
"存货名称不能为空!"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgkc003a
.
getPartSpecId
())||
hgkc003a
.
getPartSpecId
()<=
0
,
"存货id不能为空"
);
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgkc003a
.
getQualityId
())||
hgkc003a
.
getQualityId
()<=
0
,
"质检单明细ID不能为空!"
);
}
}
/**
* HPKC004 公共方法定义
*
* @author:songx
...
...
src/main/webapp/HG/KC/HGKC003.jsp
View file @
cd55601a
...
...
@@ -25,8 +25,6 @@
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
width=
"140"
enable=
"false"
readonly=
"false"
/>
<EF:EFColumn
ename=
"qualityId"
cname=
"质检单id"
enable=
"false"
width=
"90"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"rectificationId"
cname=
"整改通知单ID"
enable=
"false"
width=
"90"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"partSpecId"
cname=
"零件规格ID"
enable=
"false"
width=
"90"
align=
"center"
hidden=
"true"
/>
<EF:EFComboColumn
cname=
"入库类型"
ename=
"storageType"
width=
"90"
align=
"center"
required=
"false"
enable=
"false"
readonly=
"false"
>
<EF:EFCodeOption
codeName=
"hggp.kc.storageType"
/>
</EF:EFComboColumn>
...
...
@@ -39,18 +37,18 @@
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
/>
<EF:EFColumn
ename=
"depositNo"
cname=
"生产入库单号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"depositNoOld"
cname=
"历史生产入库单号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFComboColumn
ename=
"p
ar
tType"
cname=
"存货类型"
width=
"120"
align=
"center"
required=
"false"
<EF:EFComboColumn
ename=
"p
rd
tType"
cname=
"存货类型"
width=
"120"
align=
"center"
required=
"false"
blockName=
"invent_type_box_block_id"
textField=
"textField"
valueField=
"valueField"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"false"
filter=
"contains"
enable=
"false"
>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"p
artCode"
cname=
"零件
编码"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"p
artName"
cname=
"零件
名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"p
artSpec"
cname=
"零件
规格"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"p
ar
tLength"
cname=
"长(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"p
ar
tWidth"
cname=
"宽(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"p
ar
tThick"
cname=
"厚(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"p
ar
tCoefficient"
cname=
"系数"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"p
rdtCode"
cname=
"物料
编码"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"p
rdtName"
cname=
"物料
名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"p
rdtSpec"
cname=
"物料
规格"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"p
rd
tLength"
cname=
"长(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"p
rd
tWidth"
cname=
"宽(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"p
rd
tThick"
cname=
"厚(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"p
rd
tCoefficient"
cname=
"系数"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"invQty"
cname=
"数量"
width=
"120"
align=
"right"
format=
"{0:N0}"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
...
...
src/main/webapp/HG/KC/HGKC003A.jsp
View file @
cd55601a
...
...
@@ -9,8 +9,7 @@
<EF:EFRegion
id=
"inqu"
title=
"查询区域"
type=
"query"
>
<div
class=
"row"
>
<EF:EFInput
cname=
"项目名称"
ename=
"projName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"4"
/>
<EF:EFInput
cname=
"部件名称"
ename=
"prdtName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"4"
/>
<EF:EFInput
cname=
"零件名称"
ename=
"partName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"4"
/>
<EF:EFInput
cname=
"物料名称"
ename=
"prdtName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"4"
/>
</div>
<div
class=
"row"
>
<EF:EFSelect
cname=
"工厂"
blockId=
"inqu_status"
ename=
"factoryCode"
row=
"0"
colWidth=
"4"
...
...
@@ -30,9 +29,8 @@
<EF:EFColumn
ename=
"id"
cname=
"生产订单ID"
enable=
"false"
width=
"90"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"childId"
cname=
"生产任务ID"
enable=
"false"
width=
"90"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"prdtName"
cname=
"部件名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"partName"
cname=
"零件名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"partSpec"
cname=
"零件规格"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"prdtName"
cname=
"物料名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"prdtSpec"
cname=
"物料规格"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"applyNum"
cname=
"入库数量"
width=
"120"
align=
"right"
format=
"{0:N0}"
required=
"true"
/>
<EF:EFColumn
ename=
"remark1"
cname=
"入库说明"
width=
"150"
/>
...
...
@@ -43,8 +41,7 @@
<EF:EFColumn
ename=
"totalWt"
cname=
"任务重量(T)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"factoryName"
cname=
"工厂"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"orgName"
cname=
"生产组名称"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"partCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"prdtCode"
cname=
"物料编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"factoryCode"
cname=
"厂区编码"
enable=
"false"
width=
"150"
hidden=
"true"
/>
<EF:EFColumn
ename=
"orgNo"
cname=
"生产组编码"
enable=
"false"
width=
"150"
hidden=
"true"
/>
</EF:EFGrid>
...
...
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