Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
be79c99f
Commit
be79c99f
authored
Feb 23, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.优化:生产计划模块所有列表操作移动到第一列
parent
17dc06ec
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
2369 additions
and
89 deletions
+2369
-89
OperationLogAnnotation.java
...osight/hpjx/aspect/annotation/OperationLogAnnotation.java
+1
-1
HPSqlConstant.java
...ain/java/com/baosight/hpjx/hp/constant/HPSqlConstant.java
+16
-0
HPKC009A.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC009A.java
+827
-0
HPKC011A.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC011A.java
+765
-0
ServiceHPKC009.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009.java
+10
-10
ServiceHPKC009A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009A.java
+313
-0
HPKC003.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC003.xml
+4
-4
HPKC004.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC004.xml
+3
-3
HPKC009A.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC009A.xml
+186
-0
HPKC011A.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC011A.xml
+207
-0
ServiceHPSC005A.java
...java/com/baosight/hpjx/hp/sc/service/ServiceHPSC005A.java
+0
-1
log4j2.xml
src/main/resources/log4j2.xml
+1
-1
HPKC003.jsp
src/main/webapp/HP/KC/HPKC003.jsp
+4
-5
HPKC004A.jsp
src/main/webapp/HP/KC/HPKC004A.jsp
+0
-4
HPSC001.jsp
src/main/webapp/HP/SC/HPSC001.jsp
+4
-11
HPSC002.jsp
src/main/webapp/HP/SC/HPSC002.jsp
+9
-23
HPSC003.jsp
src/main/webapp/HP/SC/HPSC003.jsp
+3
-3
HPSC005B.jsp
src/main/webapp/HP/SC/HPSC005B.jsp
+8
-8
HPSC006.js
src/main/webapp/HP/SC/HPSC006.js
+2
-2
HPSC006.jsp
src/main/webapp/HP/SC/HPSC006.jsp
+2
-2
HPSC011.jsp
src/main/webapp/HP/SC/HPSC011.jsp
+4
-11
No files found.
src/main/java/com/baosight/hpjx/aspect/annotation/OperationLogAnnotation.java
View file @
be79c99f
...
...
@@ -16,6 +16,6 @@ public @interface OperationLogAnnotation {
String
operDesc
()
default
""
;
// 操作说明
boolean
saveContent
()
default
tru
e
;
boolean
saveContent
()
default
fals
e
;
}
src/main/java/com/baosight/hpjx/hp/constant/HPSqlConstant.java
View file @
be79c99f
...
...
@@ -153,6 +153,22 @@ public class HPSqlConstant {
}
/**
* HPKC009A SQL 定义
*
* @author:songx
* @date:2024/1/20,16:45
*/
public
class
HPKC009A
{
// 按日期删除
public
static
final
String
DELETE_BY_TIME
=
"HPKC009A.deleteByTime"
;
// 查询
public
static
final
String
QUERY
=
"HPKC009A.query"
;
// 查询统计
public
static
final
String
QUERY_SUM
=
"HPKC009A.querySum"
;
}
/**
* HPKC010 SQL 定义
*
* @author:songx
...
...
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC009A.java
0 → 100644
View file @
be79c99f
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
domain
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* Project: <br>
* Title:THpkc009a.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-02-23 13:43:22 create
*/
public
class
HPKC009A
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码 预留*/
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_DATE_TYPE
=
"dateType"
;
/* 日期类型:DAY:天,MONTH:月*/
public
static
final
String
FIELD_DATE_PROC
=
"dateProc"
;
/* 日期*/
public
static
final
String
FIELD_WH_CODE
=
"whCode"
;
/* 仓库编码*/
public
static
final
String
FIELD_WH_NAME
=
"whName"
;
/* 仓库名称*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_PRDT_CODE
=
"prdtCode"
;
/* 产品编码*/
public
static
final
String
FIELD_PRDT_NAME
=
"prdtName"
;
/* 产品名称*/
public
static
final
String
FIELD_PART_CODE
=
"partCode"
;
/* 零件编码*/
public
static
final
String
FIELD_PART_NAME
=
"partName"
;
/* 零件名称*/
public
static
final
String
FIELD_INIT_AMOUNT
=
"initAmount"
;
/* 期初数量*/
public
static
final
String
FIELD_INIT_WEIGHT
=
"initWeight"
;
/* 期初重量*/
public
static
final
String
FIELD_ENTER_AMOUNT
=
"enterAmount"
;
/* 入库数量*/
public
static
final
String
FIELD_ENTER_WEIGHT
=
"enterWeight"
;
/* 入库重量*/
public
static
final
String
FIELD_OUTER_AMOUNT
=
"outerAmount"
;
/* 出库数量*/
public
static
final
String
FIELD_OUTER_WEIGHT
=
"outerWeight"
;
/* 出库重量*/
public
static
final
String
FIELD_PD_DIFF_AMOUNT
=
"pdDiffAmount"
;
/* 盘点差异数量*/
public
static
final
String
FIELD_PD_DIFF_WEIGHT
=
"pdDiffWeight"
;
/* 盘点差异重量*/
public
static
final
String
FIELD_END_AMOUNT
=
"endAmount"
;
/* 期末数量*/
public
static
final
String
FIELD_END_WEIGHT
=
"endWeight"
;
/* 期末重量*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_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_DATE_TYPE
=
"DATE_TYPE"
;
/* 日期类型:DAY:天,MONTH:月*/
public
static
final
String
COL_DATE_PROC
=
"DATE_PROC"
;
/* 日期*/
public
static
final
String
COL_WH_CODE
=
"WH_CODE"
;
/* 仓库编码*/
public
static
final
String
COL_WH_NAME
=
"WH_NAME"
;
/* 仓库名称*/
public
static
final
String
COL_PROJ_CODE
=
"PROJ_CODE"
;
/* 项目编码*/
public
static
final
String
COL_PROJ_NAME
=
"PROJ_NAME"
;
/* 项目名称*/
public
static
final
String
COL_PRDT_CODE
=
"PRDT_CODE"
;
/* 产品编码*/
public
static
final
String
COL_PRDT_NAME
=
"PRDT_NAME"
;
/* 产品名称*/
public
static
final
String
COL_PART_CODE
=
"PART_CODE"
;
/* 零件编码*/
public
static
final
String
COL_PART_NAME
=
"PART_NAME"
;
/* 零件名称*/
public
static
final
String
COL_INIT_AMOUNT
=
"INIT_AMOUNT"
;
/* 期初数量*/
public
static
final
String
COL_INIT_WEIGHT
=
"INIT_WEIGHT"
;
/* 期初重量*/
public
static
final
String
COL_ENTER_AMOUNT
=
"ENTER_AMOUNT"
;
/* 入库数量*/
public
static
final
String
COL_ENTER_WEIGHT
=
"ENTER_WEIGHT"
;
/* 入库重量*/
public
static
final
String
COL_OUTER_AMOUNT
=
"OUTER_AMOUNT"
;
/* 出库数量*/
public
static
final
String
COL_OUTER_WEIGHT
=
"OUTER_WEIGHT"
;
/* 出库重量*/
public
static
final
String
COL_PD_DIFF_AMOUNT
=
"PD_DIFF_AMOUNT"
;
/* 盘点差异数量*/
public
static
final
String
COL_PD_DIFF_WEIGHT
=
"PD_DIFF_WEIGHT"
;
/* 盘点差异重量*/
public
static
final
String
COL_END_AMOUNT
=
"END_AMOUNT"
;
/* 期末数量*/
public
static
final
String
COL_END_WEIGHT
=
"END_WEIGHT"
;
/* 期末重量*/
public
static
final
String
QUERY
=
"HPKC009A.query"
;
public
static
final
String
COUNT
=
"HPKC009A.count"
;
public
static
final
String
INSERT
=
"HPKC009A.insert"
;
public
static
final
String
UPDATE
=
"HPKC009A.update"
;
public
static
final
String
DELETE
=
"HPKC009A.delete"
;
private
Long
id
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedName
=
" "
;
/* 更新人名称*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
String
dateType
=
" "
;
/* 日期类型:DAY:天,MONTH:月*/
private
String
dateProc
=
" "
;
/* 日期*/
private
String
whCode
=
" "
;
/* 仓库编码*/
private
String
whName
=
" "
;
/* 仓库名称*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
prdtCode
=
" "
;
/* 产品编码*/
private
String
prdtName
=
" "
;
/* 产品名称*/
private
String
partCode
=
" "
;
/* 零件编码*/
private
String
partName
=
" "
;
/* 零件名称*/
private
BigDecimal
initAmount
=
new
BigDecimal
(
0.000
);
/* 期初数量*/
private
BigDecimal
initWeight
=
new
BigDecimal
(
0.000
);
/* 期初重量*/
private
BigDecimal
enterAmount
=
new
BigDecimal
(
0.000
);
/* 入库数量*/
private
BigDecimal
enterWeight
=
new
BigDecimal
(
0.000
);
/* 入库重量*/
private
BigDecimal
outerAmount
=
new
BigDecimal
(
0.000
);
/* 出库数量*/
private
BigDecimal
outerWeight
=
new
BigDecimal
(
0.000
);
/* 出库重量*/
private
BigDecimal
pdDiffAmount
=
new
BigDecimal
(
0.000
);
/* 盘点差异数量*/
private
BigDecimal
pdDiffWeight
=
new
BigDecimal
(
0.000
);
/* 盘点差异重量*/
private
BigDecimal
endAmount
=
new
BigDecimal
(
0.000
);
/* 期末数量*/
private
BigDecimal
endWeight
=
new
BigDecimal
(
0.000
);
/* 期末重量*/
/**
* 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_COMPANY_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_DATE_TYPE
);
eiColumn
.
setDescName
(
"日期类型:DAY:天,MONTH:月"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DATE_PROC
);
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_PROJ_CODE
);
eiColumn
.
setDescName
(
"项目编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROJ_NAME
);
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_PART_CODE
);
eiColumn
.
setDescName
(
"零件编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PART_NAME
);
eiColumn
.
setDescName
(
"零件名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INIT_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"期初数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INIT_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"期初重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ENTER_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"入库数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ENTER_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"入库重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OUTER_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"出库数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OUTER_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"出库重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PD_DIFF_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"盘点差异数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PD_DIFF_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"盘点差异重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_END_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"期末数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_END_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"期末重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPKC009A
()
{
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 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 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 dateType - 日期类型:DAY:天,MONTH:月.
* @return the dateType
*/
public
String
getDateType
()
{
return
this
.
dateType
;
}
/**
* set the dateType - 日期类型:DAY:天,MONTH:月.
*
* @param dateType - 日期类型:DAY:天,MONTH:月
*/
public
void
setDateType
(
String
dateType
)
{
this
.
dateType
=
dateType
;
}
/**
* get the dateProc - 日期.
* @return the dateProc
*/
public
String
getDateProc
()
{
return
this
.
dateProc
;
}
/**
* set the dateProc - 日期.
*
* @param dateProc - 日期
*/
public
void
setDateProc
(
String
dateProc
)
{
this
.
dateProc
=
dateProc
;
}
/**
* 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 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 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 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 initAmount - 期初数量.
* @return the initAmount
*/
public
BigDecimal
getInitAmount
()
{
return
this
.
initAmount
;
}
/**
* set the initAmount - 期初数量.
*
* @param initAmount - 期初数量
*/
public
void
setInitAmount
(
BigDecimal
initAmount
)
{
this
.
initAmount
=
initAmount
;
}
/**
* get the initWeight - 期初重量.
* @return the initWeight
*/
public
BigDecimal
getInitWeight
()
{
return
this
.
initWeight
;
}
/**
* set the initWeight - 期初重量.
*
* @param initWeight - 期初重量
*/
public
void
setInitWeight
(
BigDecimal
initWeight
)
{
this
.
initWeight
=
initWeight
;
}
/**
* get the enterAmount - 入库数量.
* @return the enterAmount
*/
public
BigDecimal
getEnterAmount
()
{
return
this
.
enterAmount
;
}
/**
* set the enterAmount - 入库数量.
*
* @param enterAmount - 入库数量
*/
public
void
setEnterAmount
(
BigDecimal
enterAmount
)
{
this
.
enterAmount
=
enterAmount
;
}
/**
* get the enterWeight - 入库重量.
* @return the enterWeight
*/
public
BigDecimal
getEnterWeight
()
{
return
this
.
enterWeight
;
}
/**
* set the enterWeight - 入库重量.
*
* @param enterWeight - 入库重量
*/
public
void
setEnterWeight
(
BigDecimal
enterWeight
)
{
this
.
enterWeight
=
enterWeight
;
}
/**
* get the outerAmount - 出库数量.
* @return the outerAmount
*/
public
BigDecimal
getOuterAmount
()
{
return
this
.
outerAmount
;
}
/**
* set the outerAmount - 出库数量.
*
* @param outerAmount - 出库数量
*/
public
void
setOuterAmount
(
BigDecimal
outerAmount
)
{
this
.
outerAmount
=
outerAmount
;
}
/**
* get the outerWeight - 出库重量.
* @return the outerWeight
*/
public
BigDecimal
getOuterWeight
()
{
return
this
.
outerWeight
;
}
/**
* set the outerWeight - 出库重量.
*
* @param outerWeight - 出库重量
*/
public
void
setOuterWeight
(
BigDecimal
outerWeight
)
{
this
.
outerWeight
=
outerWeight
;
}
/**
* get the pdDiffAmount - 盘点差异数量.
* @return the pdDiffAmount
*/
public
BigDecimal
getPdDiffAmount
()
{
return
this
.
pdDiffAmount
;
}
/**
* set the pdDiffAmount - 盘点差异数量.
*
* @param pdDiffAmount - 盘点差异数量
*/
public
void
setPdDiffAmount
(
BigDecimal
pdDiffAmount
)
{
this
.
pdDiffAmount
=
pdDiffAmount
;
}
/**
* get the pdDiffWeight - 盘点差异重量.
* @return the pdDiffWeight
*/
public
BigDecimal
getPdDiffWeight
()
{
return
this
.
pdDiffWeight
;
}
/**
* set the pdDiffWeight - 盘点差异重量.
*
* @param pdDiffWeight - 盘点差异重量
*/
public
void
setPdDiffWeight
(
BigDecimal
pdDiffWeight
)
{
this
.
pdDiffWeight
=
pdDiffWeight
;
}
/**
* get the endAmount - 期末数量.
* @return the endAmount
*/
public
BigDecimal
getEndAmount
()
{
return
this
.
endAmount
;
}
/**
* set the endAmount - 期末数量.
*
* @param endAmount - 期末数量
*/
public
void
setEndAmount
(
BigDecimal
endAmount
)
{
this
.
endAmount
=
endAmount
;
}
/**
* get the endWeight - 期末重量.
* @return the endWeight
*/
public
BigDecimal
getEndWeight
()
{
return
this
.
endWeight
;
}
/**
* set the endWeight - 期末重量.
*
* @param endWeight - 期末重量
*/
public
void
setEndWeight
(
BigDecimal
endWeight
)
{
this
.
endWeight
=
endWeight
;
}
/**
* 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
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
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
));
setDateType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DATE_TYPE
)),
dateType
));
setDateProc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DATE_PROC
)),
dateProc
));
setWhCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_CODE
)),
whCode
));
setWhName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_NAME
)),
whName
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setPrdtCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_CODE
)),
prdtCode
));
setPrdtName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_NAME
)),
prdtName
));
setPartCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_CODE
)),
partCode
));
setPartName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PART_NAME
)),
partName
));
setInitAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INIT_AMOUNT
)),
initAmount
));
setInitWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INIT_WEIGHT
)),
initWeight
));
setEnterAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ENTER_AMOUNT
)),
enterAmount
));
setEnterWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ENTER_WEIGHT
)),
enterWeight
));
setOuterAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OUTER_AMOUNT
)),
outerAmount
));
setOuterWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OUTER_WEIGHT
)),
outerWeight
));
setPdDiffAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PD_DIFF_AMOUNT
)),
pdDiffAmount
));
setPdDiffWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PD_DIFF_WEIGHT
)),
pdDiffWeight
));
setEndAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_END_AMOUNT
)),
endAmount
));
setEndWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_END_WEIGHT
)),
endWeight
));
}
/**
* 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_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_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_DATE_TYPE
,
StringUtils
.
toString
(
dateType
,
eiMetadata
.
getMeta
(
FIELD_DATE_TYPE
)));
map
.
put
(
FIELD_DATE_PROC
,
StringUtils
.
toString
(
dateProc
,
eiMetadata
.
getMeta
(
FIELD_DATE_PROC
)));
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_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_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_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_INIT_AMOUNT
,
StringUtils
.
toString
(
initAmount
,
eiMetadata
.
getMeta
(
FIELD_INIT_AMOUNT
)));
map
.
put
(
FIELD_INIT_WEIGHT
,
StringUtils
.
toString
(
initWeight
,
eiMetadata
.
getMeta
(
FIELD_INIT_WEIGHT
)));
map
.
put
(
FIELD_ENTER_AMOUNT
,
StringUtils
.
toString
(
enterAmount
,
eiMetadata
.
getMeta
(
FIELD_ENTER_AMOUNT
)));
map
.
put
(
FIELD_ENTER_WEIGHT
,
StringUtils
.
toString
(
enterWeight
,
eiMetadata
.
getMeta
(
FIELD_ENTER_WEIGHT
)));
map
.
put
(
FIELD_OUTER_AMOUNT
,
StringUtils
.
toString
(
outerAmount
,
eiMetadata
.
getMeta
(
FIELD_OUTER_AMOUNT
)));
map
.
put
(
FIELD_OUTER_WEIGHT
,
StringUtils
.
toString
(
outerWeight
,
eiMetadata
.
getMeta
(
FIELD_OUTER_WEIGHT
)));
map
.
put
(
FIELD_PD_DIFF_AMOUNT
,
StringUtils
.
toString
(
pdDiffAmount
,
eiMetadata
.
getMeta
(
FIELD_PD_DIFF_AMOUNT
)));
map
.
put
(
FIELD_PD_DIFF_WEIGHT
,
StringUtils
.
toString
(
pdDiffWeight
,
eiMetadata
.
getMeta
(
FIELD_PD_DIFF_WEIGHT
)));
map
.
put
(
FIELD_END_AMOUNT
,
StringUtils
.
toString
(
endAmount
,
eiMetadata
.
getMeta
(
FIELD_END_AMOUNT
)));
map
.
put
(
FIELD_END_WEIGHT
,
StringUtils
.
toString
(
endWeight
,
eiMetadata
.
getMeta
(
FIELD_END_WEIGHT
)));
return
map
;
}
}
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC011A.java
0 → 100644
View file @
be79c99f
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
domain
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* Project: <br>
* Title:THpkc011a.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-02-23 13:52:03 create
*/
public
class
HPKC011A
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_DATE_PROC
=
"dateProc"
;
/* 日期*/
public
static
final
String
FIELD_WH_CODE
=
"whCode"
;
/* 仓库编码*/
public
static
final
String
FIELD_WH_NAME
=
"whName"
;
/* 仓库名称*/
public
static
final
String
FIELD_PROD_NO
=
"prodNo"
;
/* 生产单号*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 部件编码*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 部件名称*/
public
static
final
String
FIELD_SUB_INVENT_CODE
=
"subInventCode"
;
/* 零件编码*/
public
static
final
String
FIELD_SUB_INVENT_NAME
=
"subInventName"
;
/* 零件名称*/
public
static
final
String
FIELD_LENGTH
=
"length"
;
/* 长*/
public
static
final
String
FIELD_WIDTH
=
"width"
;
/* 宽*/
public
static
final
String
FIELD_THICK
=
"thick"
;
/* 厚*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 数量*/
public
static
final
String
FIELD_UNIT_WEIGHT
=
"unitWeight"
;
/* 单重*/
public
static
final
String
FIELD_WEIGHT
=
"weight"
;
/* 重量*/
public
static
final
String
FIELD_REMARK
=
"remark"
;
/* 备注*/
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_VERSION
=
"version"
;
/* 版本号*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_DATE_PROC
=
"DATE_PROC"
;
/* 日期*/
public
static
final
String
COL_WH_CODE
=
"WH_CODE"
;
/* 仓库编码*/
public
static
final
String
COL_WH_NAME
=
"WH_NAME"
;
/* 仓库名称*/
public
static
final
String
COL_PROD_NO
=
"PROD_NO"
;
/* 生产单号*/
public
static
final
String
COL_PROJ_CODE
=
"PROJ_CODE"
;
/* 项目编码*/
public
static
final
String
COL_PROJ_NAME
=
"PROJ_NAME"
;
/* 项目名称*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 部件编码*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 部件名称*/
public
static
final
String
COL_SUB_INVENT_CODE
=
"SUB_INVENT_CODE"
;
/* 零件编码*/
public
static
final
String
COL_SUB_INVENT_NAME
=
"SUB_INVENT_NAME"
;
/* 零件名称*/
public
static
final
String
COL_LENGTH
=
"LENGTH"
;
/* 长*/
public
static
final
String
COL_WIDTH
=
"WIDTH"
;
/* 宽*/
public
static
final
String
COL_THICK
=
"THICK"
;
/* 厚*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 数量*/
public
static
final
String
COL_UNIT_WEIGHT
=
"UNIT_WEIGHT"
;
/* 单重*/
public
static
final
String
COL_WEIGHT
=
"WEIGHT"
;
/* 重量*/
public
static
final
String
COL_REMARK
=
"REMARK"
;
/* 备注*/
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_VERSION
=
"VERSION"
;
/* 版本号*/
public
static
final
String
QUERY
=
"HPKC011A.query"
;
public
static
final
String
COUNT
=
"HPKC011A.count"
;
public
static
final
String
INSERT
=
"HPKC011A.insert"
;
public
static
final
String
UPDATE
=
"HPKC011A.update"
;
public
static
final
String
DELETE
=
"HPKC011A.delete"
;
private
Long
id
;
private
String
companyCode
=
" "
;
/* 企业编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
dateProc
=
" "
;
/* 日期*/
private
String
whCode
=
" "
;
/* 仓库编码*/
private
String
whName
=
" "
;
/* 仓库名称*/
private
String
prodNo
=
" "
;
/* 生产单号*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
inventCode
=
" "
;
/* 部件编码*/
private
String
inventName
=
" "
;
/* 部件名称*/
private
String
subInventCode
=
" "
;
/* 零件编码*/
private
String
subInventName
=
" "
;
/* 零件名称*/
private
BigDecimal
length
=
new
BigDecimal
(
"0"
);
/* 长*/
private
BigDecimal
width
=
new
BigDecimal
(
"0"
);
/* 宽*/
private
BigDecimal
thick
=
new
BigDecimal
(
"0"
);
/* 厚*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 数量*/
private
BigDecimal
unitWeight
=
new
BigDecimal
(
"0"
);
/* 单重*/
private
BigDecimal
weight
=
new
BigDecimal
(
"0"
);
/* 重量*/
private
String
remark
=
" "
;
/* 备注*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedName
=
" "
;
/* 更新人名称*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
Integer
version
;
/* 版本号*/
/**
* 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_COMPANY_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DATE_PROC
);
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_PROD_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_INVENT_CODE
);
eiColumn
.
setDescName
(
"部件编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_INVENT_NAME
);
eiColumn
.
setDescName
(
"部件名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SUB_INVENT_CODE
);
eiColumn
.
setDescName
(
"零件编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SUB_INVENT_NAME
);
eiColumn
.
setDescName
(
"零件名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_LENGTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"长"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_WIDTH
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"宽"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_THICK
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"厚"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UNIT_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"单重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_REMARK
);
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_VERSION
);
eiColumn
.
setDescName
(
"版本号"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPKC011A
()
{
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 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 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 dateProc - 日期.
* @return the dateProc
*/
public
String
getDateProc
()
{
return
this
.
dateProc
;
}
/**
* set the dateProc - 日期.
*
* @param dateProc - 日期
*/
public
void
setDateProc
(
String
dateProc
)
{
this
.
dateProc
=
dateProc
;
}
/**
* 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 prodNo - 生产单号.
* @return the prodNo
*/
public
String
getProdNo
()
{
return
this
.
prodNo
;
}
/**
* set the prodNo - 生产单号.
*
* @param prodNo - 生产单号
*/
public
void
setProdNo
(
String
prodNo
)
{
this
.
prodNo
=
prodNo
;
}
/**
* 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 inventCode - 部件编码.
* @return the inventCode
*/
public
String
getInventCode
()
{
return
this
.
inventCode
;
}
/**
* set the inventCode - 部件编码.
*
* @param inventCode - 部件编码
*/
public
void
setInventCode
(
String
inventCode
)
{
this
.
inventCode
=
inventCode
;
}
/**
* get the inventName - 部件名称.
* @return the inventName
*/
public
String
getInventName
()
{
return
this
.
inventName
;
}
/**
* set the inventName - 部件名称.
*
* @param inventName - 部件名称
*/
public
void
setInventName
(
String
inventName
)
{
this
.
inventName
=
inventName
;
}
/**
* get the subInventCode - 零件编码.
* @return the subInventCode
*/
public
String
getSubInventCode
()
{
return
this
.
subInventCode
;
}
/**
* set the subInventCode - 零件编码.
*
* @param subInventCode - 零件编码
*/
public
void
setSubInventCode
(
String
subInventCode
)
{
this
.
subInventCode
=
subInventCode
;
}
/**
* get the subInventName - 零件名称.
* @return the subInventName
*/
public
String
getSubInventName
()
{
return
this
.
subInventName
;
}
/**
* set the subInventName - 零件名称.
*
* @param subInventName - 零件名称
*/
public
void
setSubInventName
(
String
subInventName
)
{
this
.
subInventName
=
subInventName
;
}
/**
* get the length - 长.
* @return the length
*/
public
BigDecimal
getLength
()
{
return
this
.
length
;
}
/**
* set the length - 长.
*
* @param length - 长
*/
public
void
setLength
(
BigDecimal
length
)
{
this
.
length
=
length
;
}
/**
* get the width - 宽.
* @return the width
*/
public
BigDecimal
getWidth
()
{
return
this
.
width
;
}
/**
* set the width - 宽.
*
* @param width - 宽
*/
public
void
setWidth
(
BigDecimal
width
)
{
this
.
width
=
width
;
}
/**
* get the thick - 厚.
* @return the thick
*/
public
BigDecimal
getThick
()
{
return
this
.
thick
;
}
/**
* set the thick - 厚.
*
* @param thick - 厚
*/
public
void
setThick
(
BigDecimal
thick
)
{
this
.
thick
=
thick
;
}
/**
* 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 unitWeight - 单重.
* @return the unitWeight
*/
public
BigDecimal
getUnitWeight
()
{
return
this
.
unitWeight
;
}
/**
* set the unitWeight - 单重.
*
* @param unitWeight - 单重
*/
public
void
setUnitWeight
(
BigDecimal
unitWeight
)
{
this
.
unitWeight
=
unitWeight
;
}
/**
* get the weight - 重量.
* @return the weight
*/
public
BigDecimal
getWeight
()
{
return
this
.
weight
;
}
/**
* set the weight - 重量.
*
* @param weight - 重量
*/
public
void
setWeight
(
BigDecimal
weight
)
{
this
.
weight
=
weight
;
}
/**
* 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 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 version - 版本号.
* @return the version
*/
public
Integer
getVersion
()
{
return
this
.
version
;
}
/**
* set the version - 版本号.
*
* @param version - 版本号
*/
public
void
setVersion
(
Integer
version
)
{
this
.
version
=
version
;
}
/**
* 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
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDateProc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DATE_PROC
)),
dateProc
));
setWhCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_CODE
)),
whCode
));
setWhName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WH_NAME
)),
whName
));
setProdNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROD_NO
)),
prodNo
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
setSubInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SUB_INVENT_CODE
)),
subInventCode
));
setSubInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SUB_INVENT_NAME
)),
subInventName
));
setLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LENGTH
)),
length
));
setWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WIDTH
)),
width
));
setThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_THICK
)),
thick
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setUnitWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT_WEIGHT
)),
unitWeight
));
setWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WEIGHT
)),
weight
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMARK
)),
remark
));
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
));
setVersion
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_VERSION
)),
version
));
}
/**
* 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_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_DATE_PROC
,
StringUtils
.
toString
(
dateProc
,
eiMetadata
.
getMeta
(
FIELD_DATE_PROC
)));
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_PROD_NO
,
StringUtils
.
toString
(
prodNo
,
eiMetadata
.
getMeta
(
FIELD_PROD_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_INVENT_CODE
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
FIELD_INVENT_CODE
)));
map
.
put
(
FIELD_INVENT_NAME
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
FIELD_INVENT_NAME
)));
map
.
put
(
FIELD_SUB_INVENT_CODE
,
StringUtils
.
toString
(
subInventCode
,
eiMetadata
.
getMeta
(
FIELD_SUB_INVENT_CODE
)));
map
.
put
(
FIELD_SUB_INVENT_NAME
,
StringUtils
.
toString
(
subInventName
,
eiMetadata
.
getMeta
(
FIELD_SUB_INVENT_NAME
)));
map
.
put
(
FIELD_LENGTH
,
StringUtils
.
toString
(
length
,
eiMetadata
.
getMeta
(
FIELD_LENGTH
)));
map
.
put
(
FIELD_WIDTH
,
StringUtils
.
toString
(
width
,
eiMetadata
.
getMeta
(
FIELD_WIDTH
)));
map
.
put
(
FIELD_THICK
,
StringUtils
.
toString
(
thick
,
eiMetadata
.
getMeta
(
FIELD_THICK
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_UNIT_WEIGHT
,
StringUtils
.
toString
(
unitWeight
,
eiMetadata
.
getMeta
(
FIELD_UNIT_WEIGHT
)));
map
.
put
(
FIELD_WEIGHT
,
StringUtils
.
toString
(
weight
,
eiMetadata
.
getMeta
(
FIELD_WEIGHT
)));
map
.
put
(
FIELD_REMARK
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
FIELD_REMARK
)));
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_VERSION
,
StringUtils
.
toString
(
version
,
eiMetadata
.
getMeta
(
FIELD_VERSION
)));
return
map
;
}
}
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009.java
View file @
be79c99f
...
...
@@ -178,10 +178,10 @@ public class ServiceHPKC009 extends ServiceBase {
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getInventType
(),
item
.
getInventCode
(),
item
.
getWhCode
(),
item
.
getInventRecordId
()),
item
->
item
));
// 1.3、生产入库
List
<
HPKC003
>
scRks
=
dao
.
query
(
HPSqlConstant
.
HPKC003
.
STAT_DATE
,
queryMap
);
Map
<
String
,
HPKC003
>
scRkMap
=
scRks
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getPartType
(),
item
.
getPartCode
(),
item
.
getWhCode
(),
null
),
item
->
item
));
//
List<HPKC003> scRks = dao.query(HPSqlConstant.HPKC003.STAT_DATE, queryMap);
//
Map<String, HPKC003> scRkMap = scRks.stream().collect(Collectors.toMap(item ->
//
buildKey(item.getCompanyCode(), item.getDepCode(), item.getPartType(), item.getPartCode(),
//
item.getWhCode(), null), item -> item));
// 1.4、其他入库
List
<
HPKC006
>
qtRks
=
dao
.
query
(
HPSqlConstant
.
HPKC006
.
STAT_DATE
,
queryMap
);
Map
<
String
,
HPKC006
>
qtRkMap
=
qtRks
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
...
...
@@ -193,10 +193,10 @@ public class ServiceHPKC009 extends ServiceBase {
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getInventType
(),
item
.
getInventCode
(),
item
.
getWhCode
(),
item
.
getInventRecordId
()),
item
->
item
));
// 1.6、销售出库
List
<
HPKC004
>
xsCks
=
dao
.
query
(
HPSqlConstant
.
HPKC004
.
STAT_DATE
,
queryMap
);
Map
<
String
,
HPKC004
>
xsCkMap
=
xsCks
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getInventCode
(),
item
.
getSubInventCode
(),
item
.
getWhCode
(),
""
),
item
->
item
));
//
List<HPKC004> xsCks = dao.query(HPSqlConstant.HPKC004.STAT_DATE, queryMap);
//
Map<String, HPKC004> xsCkMap = xsCks.stream().collect(Collectors.toMap(item ->
//
buildKey(item.getCompanyCode(), item.getDepCode(), item.getInventCode(), item.getSubInventCode(),
//
item.getWhCode(), ""), item -> item));
// 1.7、其它出库
List
<
HPKC007
>
qtCks
=
dao
.
query
(
HPSqlConstant
.
HPKC007
.
STAT_DATE
,
queryMap
);
Map
<
String
,
HPKC007
>
qtCkMap
=
qtCks
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
...
...
@@ -228,7 +228,7 @@ public class ServiceHPKC009 extends ServiceBase {
kc009
.
setCgEnterAmount
(
cgRk
==
null
?
BigDecimal
.
ZERO
:
cgRk
.
getAmount
());
kc009
.
setCgEnterWeight
(
cgRk
==
null
?
BigDecimal
.
ZERO
:
cgRk
.
getWeight
());
// 1.3、生产入库
HPKC003
scRk
=
scRkMap
.
get
(
key
);
HPKC003
scRk
=
null
;
//
scRkMap.get(key);
kc009
.
setScEnterAmount
(
scRk
==
null
?
BigDecimal
.
ZERO
:
scRk
.
getAmount
());
kc009
.
setScEnterWeight
(
scRk
==
null
?
BigDecimal
.
ZERO
:
scRk
.
getWeight
());
// 1.3、其他入库
...
...
@@ -245,7 +245,7 @@ public class ServiceHPKC009 extends ServiceBase {
kc009
.
setScOuterAmount
(
scCk
==
null
?
BigDecimal
.
ZERO
:
scCk
.
getAmount
());
kc009
.
setScOuterWeight
(
scCk
==
null
?
BigDecimal
.
ZERO
:
scCk
.
getWeight
());
// 1.6、销售出库
HPKC004
xsCk
=
xsCkMap
.
get
(
key
);
HPKC004
xsCk
=
null
;
//
xsCkMap.get(key);
kc009
.
setXsOuterAmount
(
xsCk
==
null
?
BigDecimal
.
ZERO
:
xsCk
.
getAmount
());
kc009
.
setXsOuterWeight
(
xsCk
==
null
?
BigDecimal
.
ZERO
:
xsCk
.
getWeight
());
// 1.7、其他出库
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009A.java
0 → 100644
View file @
be79c99f
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.hp.constant.HPSqlConstant
;
import
com.baosight.hpjx.hp.kc.domain.HPKC001
;
import
com.baosight.hpjx.hp.kc.domain.HPKC002
;
import
com.baosight.hpjx.hp.kc.domain.HPKC003
;
import
com.baosight.hpjx.hp.kc.domain.HPKC004
;
import
com.baosight.hpjx.hp.kc.domain.HPKC005
;
import
com.baosight.hpjx.hp.kc.domain.HPKC006
;
import
com.baosight.hpjx.hp.kc.domain.HPKC007
;
import
com.baosight.hpjx.hp.kc.domain.HPKC009
;
import
com.baosight.hpjx.hp.kc.domain.HPKC009A
;
import
com.baosight.hpjx.hp.kc.domain.HPKC010A
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ004
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ007
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.util.BeanUtils
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.EiInfoUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.ObjectUtils
;
import
com.baosight.hpjx.util.StringUtil
;
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.ServiceBase
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
org.apache.commons.collections.MapUtils
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.time.temporal.TemporalAdjusters
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* 生产库存收发存
*
* @author:songx
* @date:2024/1/15,11:20
*/
public
class
ServiceHPKC009A
extends
ServiceBase
{
/**
* 画面初始化
*
* @param inInfo
* @return
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC009A
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
/**
* 查询数据列表
*
* @param inInfo
* @return
*/
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
receiptDate
=
MapUtils
.
getString
(
queryRow
,
"dateProc"
);
queryRow
.
put
(
"dateProc"
,
StringUtil
.
removeSpecifiedCharacter
(
receiptDate
,
StringUtil
.
DEFAULT_CHARACTER_TO_BE_REMOVED
));
queryRow
.
put
(
"dateType"
,
CommonConstant
.
DateType
.
MONTH
);
inInfo
=
super
.
query
(
inInfo
,
HPKC009A
.
QUERY
,
new
HPKC009A
());
List
sum
=
dao
.
query
(
HPSqlConstant
.
HPKC009A
.
QUERY_SUM
,
queryRow
);
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
set
(
EiConstant
.
COLUMN_TOTAL_SUM
,
sum
.
get
(
0
));
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
/**
* 按天统计
*
* @param inInfo
* @return
*/
public
EiInfo
statDay
(
EiInfo
inInfo
)
{
try
{
// 取昨天的日期
Map
queryMap
=
new
HashMap
();
LocalDate
nowDate
=
LocalDate
.
now
();
String
yesterDay
=
LocalDate
.
now
().
minusDays
(
1
).
format
(
DateUtils
.
SHORT_DATE
);
queryMap
.
put
(
"yesterFrom"
,
yesterDay
);
queryMap
.
put
(
"yesterTo"
,
yesterDay
);
queryMap
.
put
(
"yesterDate"
,
yesterDay
);
queryMap
.
put
(
"beforeDate"
,
nowDate
.
minusDays
(
2
).
format
(
DateUtils
.
SHORT_DATE
));
queryMap
.
put
(
"dateType"
,
CommonConstant
.
DateType
.
DAY
);
// 0.清除数据
queryMap
.
put
(
"dateProc"
,
queryMap
.
get
(
"yesterDate"
));
dao
.
delete
(
HPSqlConstant
.
HPKC009A
.
DELETE_BY_TIME
,
queryMap
);
// 1、统计收发存
List
<
HPKC009A
>
results
=
this
.
statData
(
queryMap
);
// 4、设置基础信息
this
.
setBaseInfo
(
results
);
// 5、写入数据库
dao
.
insertBatch
(
HPKC009A
.
INSERT
,
results
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"按天统计成功"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"按天统计失败"
);
}
return
inInfo
;
}
/**
* 按月统计
*
* @param inInfo
* @return
*/
public
EiInfo
statMonth
(
EiInfo
inInfo
)
{
try
{
// 上个月的日期
Map
queryMap
=
new
HashMap
();
LocalDate
nowDate
=
LocalDate
.
now
();
LocalDate
yesterMonth
=
nowDate
.
minusMonths
(
1
);
queryMap
.
put
(
"yesterFrom"
,
yesterMonth
.
with
(
TemporalAdjusters
.
firstDayOfMonth
())
.
format
(
DateUtils
.
SHORT_DATE
));
queryMap
.
put
(
"yesterTo"
,
yesterMonth
.
with
(
TemporalAdjusters
.
lastDayOfMonth
())
.
format
(
DateUtils
.
SHORT_DATE
));
queryMap
.
put
(
"yesterDate"
,
yesterMonth
.
format
(
DateUtils
.
SHORT_MONTH
));
queryMap
.
put
(
"beforeDate"
,
nowDate
.
minusMonths
(
2
).
format
(
DateUtils
.
SHORT_MONTH
));
queryMap
.
put
(
"dateType"
,
CommonConstant
.
DateType
.
MONTH
);
// 0.清除数据
queryMap
.
put
(
"dateProc"
,
queryMap
.
get
(
"yesterDate"
));
dao
.
delete
(
HPSqlConstant
.
HPKC009
.
DELETE_BY_TIME
,
queryMap
);
// 1、统计收发存
List
<
HPKC009A
>
results
=
this
.
statData
(
queryMap
);
// 4、设置基础信息
this
.
setBaseInfo
(
results
);
// 5、写入数据库
dao
.
insertBatch
(
HPKC009
.
INSERT
,
results
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"按月统计成功"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"按月统计失败"
);
}
return
inInfo
;
}
/**
* 统计库存收发存
*
* @return
*/
private
List
<
HPKC009A
>
statData
(
Map
queryMap
)
{
List
<
HPKC009A
>
newKc009As
=
new
ArrayList
<>();
// 1.1、期末库存
queryMap
.
put
(
"dateProc"
,
queryMap
.
get
(
"yesterTo"
));
List
<
HPKC010A
>
endKcs
=
dao
.
query
(
HPKC010A
.
QUERY
,
queryMap
);
// 1.2、采购入库
queryMap
.
put
(
"createdTimeFrom"
,
queryMap
.
get
(
"yesterFrom"
)
+
"000000"
);
queryMap
.
put
(
"createdTimeTo"
,
queryMap
.
get
(
"yesterTo"
)
+
"235959"
);
List
<
HPKC001
>
cgRks
=
dao
.
query
(
HPSqlConstant
.
HPKC001
.
STAT_DATE
,
queryMap
);
Map
<
String
,
HPKC001
>
cgRkMap
=
cgRks
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getInventType
(),
item
.
getInventCode
(),
item
.
getWhCode
(),
item
.
getInventRecordId
()),
item
->
item
));
// 1.3、生产入库
// List<HPKC003> scRks = dao.query(HPSqlConstant.HPKC003.STAT_DATE, queryMap);
// Map<String, HPKC003> scRkMap = scRks.stream().collect(Collectors.toMap(item ->
// buildKey(item.getCompanyCode(), item.getDepCode(), item.getPartType(), item.getPartCode(),
// item.getWhCode(), null), item -> item));
// 1.4、其他入库
List
<
HPKC006
>
qtRks
=
dao
.
query
(
HPSqlConstant
.
HPKC006
.
STAT_DATE
,
queryMap
);
Map
<
String
,
HPKC006
>
qtRkMap
=
qtRks
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getInventType
(),
item
.
getInventCode
(),
item
.
getWhCode
(),
item
.
getInventRecordId
()),
item
->
item
));
// 1.5、生产领料
List
<
HPKC002
>
scCks
=
dao
.
query
(
HPSqlConstant
.
HPKC002
.
STAT_DATE
,
queryMap
);
Map
<
String
,
HPKC002
>
scCkMap
=
scCks
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getInventType
(),
item
.
getInventCode
(),
item
.
getWhCode
(),
item
.
getInventRecordId
()),
item
->
item
));
// 1.6、销售出库
// List<HPKC004> xsCks = dao.query(HPSqlConstant.HPKC004.STAT_DATE, queryMap);
// Map<String, HPKC004> xsCkMap = xsCks.stream().collect(Collectors.toMap(item ->
// buildKey(item.getCompanyCode(), item.getDepCode(), item.getInventCode(), item.getSubInventCode(),
// item.getWhCode(), ""), item -> item));
// 1.7、其它出库
List
<
HPKC007
>
qtCks
=
dao
.
query
(
HPSqlConstant
.
HPKC007
.
STAT_DATE
,
queryMap
);
Map
<
String
,
HPKC007
>
qtCkMap
=
qtCks
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getInventType
(),
item
.
getInventCode
(),
item
.
getWhCode
(),
item
.
getInventRecordId
()),
item
->
item
));
// 1.8、盘点差异数量
List
<
HPKC005
>
pdDiffs
=
dao
.
query
(
HPSqlConstant
.
HPKC005
.
STAT_DATE
,
queryMap
);
Map
<
String
,
HPKC005
>
pdDiffMap
=
pdDiffs
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getInventType
(),
item
.
getInventCode
(),
item
.
getWhCode
(),
item
.
getInventRecordId
()),
item
->
item
));
// 1.9、期初库存
queryMap
.
put
(
"dateProc"
,
queryMap
.
get
(
"beforeDate"
));
List
<
HPKC009
>
initKcs
=
dao
.
query
(
HPKC009
.
QUERY
,
new
HashMap
<>());
Map
<
String
,
HPKC009
>
initKcMap
=
initKcs
.
stream
().
collect
(
Collectors
.
toMap
(
item
->
buildKey
(
item
.
getCompanyCode
(),
item
.
getDepCode
(),
item
.
getInventType
(),
item
.
getInventCode
(),
item
.
getWhCode
(),
item
.
getInventRecordId
()),
item
->
item
));
// 根据期末库存生成收发存对象
for
(
HPKC010A
endKc
:
endKcs
)
{
String
key
=
buildKey
(
endKc
.
getCompanyCode
(),
endKc
.
getDepCode
(),
endKc
.
getInventType
(),
endKc
.
getInventCode
(),
endKc
.
getWhCode
(),
endKc
.
getInventRecordId
());
HPKC009A
kc009
=
BeanUtils
.
copy
(
endKc
,
HPKC009A
.
class
);
kc009
.
setDateType
(
queryMap
.
get
(
"dateType"
).
toString
());
kc009
.
setDateProc
(
queryMap
.
get
(
"yesterDate"
).
toString
());
// 1.1期末
kc009
.
setEndAmount
(
endKc
.
getAmount
());
kc009
.
setEndWeight
(
endKc
.
getWeight
());
// 1.4、入库
// kc009.setEnterAmount(kc009.getCgEnterAmount().add(kc009.getScEnterAmount())
// .add(kc009.getQtEnterAmount()));
// kc009.setEnterWeight(kc009.getCgEnterWeight().add(kc009.getScEnterWeight())
// .add(kc009.getQtEnterWeight()));
// // 1.5、生产领料
// HPKC002 scCk = scCkMap.get(key);
// kc009.setScOuterAmount(scCk == null ? BigDecimal.ZERO : scCk.getAmount());
// kc009.setScOuterWeight(scCk == null ? BigDecimal.ZERO : scCk.getWeight());
// // 1.6、销售出库
// HPKC004 xsCk = null;//xsCkMap.get(key);
// kc009.setXsOuterAmount(xsCk == null ? BigDecimal.ZERO : xsCk.getAmount());
// kc009.setXsOuterWeight(xsCk == null ? BigDecimal.ZERO : xsCk.getWeight());
// // 1.7、其他出库
// HPKC007 qtCk = qtCkMap.get(key);
// kc009.setQtOuterAmount(qtCk == null ? BigDecimal.ZERO : qtCk.getAmount());
// kc009.setQtOuterWeight(qtCk == null ? BigDecimal.ZERO : qtCk.getWeight());
// // 1.8、出库
// kc009.setOuterAmount(kc009.getScOuterAmount().add(kc009.getXsOuterAmount())
// .add(kc009.getQtOuterAmount()));
// kc009.setOuterWeight(kc009.getScOuterWeight().add(kc009.getXsOuterWeight())
// .add(kc009.getQtOuterWeight()));
// 1.8、盘点差异数量
HPKC005
pdDiff
=
pdDiffMap
.
get
(
key
);
kc009
.
setPdDiffAmount
(
pdDiff
==
null
?
BigDecimal
.
ZERO
:
pdDiff
.
getDiffAmount
());
kc009
.
setPdDiffWeight
(
pdDiff
==
null
?
BigDecimal
.
ZERO
:
pdDiff
.
getDiffWeight
());
// 1.9、期初
HPKC009
initKc
=
initKcMap
.
get
(
key
);
if
(
initKc
!=
null
)
{
kc009
.
setInitAmount
(
initKc
.
getEndAmount
());
kc009
.
setInitWeight
(
initKc
.
getEndWeight
());
}
else
{
kc009
.
setInitAmount
(
kc009
.
getEndAmount
().
subtract
(
kc009
.
getPdDiffAmount
())
.
add
(
kc009
.
getOuterAmount
()).
subtract
(
kc009
.
getEnterAmount
()));
kc009
.
setInitWeight
(
kc009
.
getEndWeight
().
subtract
(
kc009
.
getPdDiffWeight
())
.
add
(
kc009
.
getOuterWeight
()).
subtract
(
kc009
.
getEnterWeight
()));
}
newKc009As
.
add
(
kc009
);
}
return
newKc009As
;
}
/**
* 设置基础信息
*
* @param kc009s
*/
private
void
setBaseInfo
(
List
<
HPKC009A
>
kc009s
)
{
// 仓库名称
List
<
String
>
whCodes
=
kc009s
.
stream
().
map
(
HPKC009A:
:
getWhCode
).
collect
(
Collectors
.
toList
());
Map
<
String
,
HPPZ007
>
mapPz007
=
HPPZTools
.
HpPz007
.
map
(
whCodes
);
// 存货名称
List
<
String
>
inventCodes
=
kc009s
.
stream
().
map
(
HPKC009A:
:
getPrdtCode
).
collect
(
Collectors
.
toList
());
Map
<
String
,
HPPZ004
>
mapPz004
=
HPPZTools
.
HpPz004
.
map
(
inventCodes
);
for
(
HPKC009A
kc009
:
kc009s
)
{
// 仓库名称
String
whCode
=
kc009
.
getWhCode
();
HPPZ007
pz007
=
mapPz007
==
null
?
null
:
mapPz007
.
get
(
whCode
);
kc009
.
setWhName
(
pz007
==
null
?
""
:
pz007
.
getWhName
());
// 存货名称
String
inventCode
=
kc009
.
getPrdtCode
();
HPPZ004
pz004
=
mapPz004
==
null
?
null
:
mapPz004
.
get
(
inventCode
);
kc009
.
setPrdtName
(
pz004
==
null
?
""
:
pz004
.
getInventName
());
// 创建时间
kc009
.
setCreatedBy
(
UserSession
.
getLoginName
());
kc009
.
setCreatedName
(
UserSession
.
getLoginCName
());
kc009
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
}
}
/**
* 构建KEY
*
* @param companyCode
* @param depCode
* @param inventType
* @param inventCode
* @param whCode
* @param inventRecordId
* @return
*/
private
String
buildKey
(
Object
companyCode
,
Object
depCode
,
Object
inventType
,
Object
inventCode
,
Object
whCode
,
Object
inventRecordId
)
{
return
ObjectUtils
.
trimToEmpty
(
companyCode
)
+
"#"
+
ObjectUtils
.
trimToEmpty
(
depCode
)
+
"#"
+
ObjectUtils
.
trimToEmpty
(
inventType
)
+
"#"
+
ObjectUtils
.
trimToEmpty
(
inventCode
)
+
"#"
+
ObjectUtils
.
trimToEmpty
(
whCode
)
+
"#"
+
ObjectUtils
.
trimToEmpty
(
inventRecordId
);
}
}
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC003.xml
View file @
be79c99f
...
...
@@ -187,9 +187,9 @@
COMPANY_CODE AS "companyCode",
DEP_CODE AS "depCode",
WH_CODE AS "whCode",
INVENT_TYPE AS "inventTyp
e",
INVENT_CODE AS "inven
tCode",
INVENT_RECORD_ID AS "inventRecordId
",
PROJ_CODE AS "projCod
e",
PRDT_CODE AS "prd
tCode",
PART_CODE AS "partCode
",
COALESCE(SUM(AMOUNT), 0) AS "amount",
COALESCE(SUM(WEIGHT), 0) AS "weight"
FROM ${hpjxSchema}.T_HPKC003
...
...
@@ -197,7 +197,7 @@
<isNotEmpty
prepend=
" AND "
property=
"createdTimeFrom"
>
CREATED_TIME BETWEEN #createdTimeFrom# AND #createdTimeTo#
</isNotEmpty>
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE,
INVENT_TYPE, INVENT_CODE, INVENT_RECORD_ID
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE,
PROJ_CODE, PRDT_CODE, PART_CODE
</select>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC004.xml
View file @
be79c99f
...
...
@@ -241,9 +241,9 @@
COMPANY_CODE AS "companyCode",
DEP_CODE AS "depCode",
WH_CODE AS "whCode",
INVENT_TYPE AS "inventTyp
e",
PROJ_CODE AS "projCod
e",
INVENT_CODE AS "inventCode",
INVENT_RECORD_ID AS "inventRecordId
",
SUB_INVENT_CODE AS "subInventCode
",
COALESCE(SUM(AMOUNT), 0) AS "amount",
COALESCE(SUM(WEIGHT), 0) AS "weight"
FROM ${hpjxSchema}.T_HPKC004
...
...
@@ -251,7 +251,7 @@
<isNotEmpty
prepend=
" AND "
property=
"createdTimeFrom"
>
CREATED_TIME BETWEEN #createdTimeFrom# AND #createdTimeTo#
</isNotEmpty>
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE,
INVENT_TYPE, INVENT_CODE, INVENT_RECORD_ID
GROUP BY COMPANY_CODE, DEP_CODE, WH_CODE,
PROJ_CODE, INVENT_CODE, SUB_INVENT_CODE
</select>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC009A.xml
0 → 100644
View file @
be79c99f
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HPKC009A"
>
<sql
id=
"column"
>
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
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",
<!-- 更新时间 -->
DATE_TYPE as "dateType",
<!-- 日期类型:DAY:天,MONTH:月 -->
DATE_PROC as "dateProc",
<!-- 日期 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName",
<!-- 仓库名称 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PRDT_CODE as "prdtCode",
<!-- 产品编码 -->
PRDT_NAME as "prdtName",
<!-- 产品名称 -->
PART_CODE as "partCode",
<!-- 零件编码 -->
PART_NAME as "partName",
<!-- 零件名称 -->
INIT_AMOUNT as "initAmount",
<!-- 期初数量 -->
INIT_WEIGHT as "initWeight",
<!-- 期初重量 -->
ENTER_AMOUNT as "enterAmount",
<!-- 入库数量 -->
ENTER_WEIGHT as "enterWeight",
<!-- 入库重量 -->
OUTER_AMOUNT as "outerAmount",
<!-- 出库数量 -->
OUTER_WEIGHT as "outerWeight",
<!-- 出库重量 -->
PD_DIFF_AMOUNT as "pdDiffAmount",
<!-- 盘点差异数量 -->
PD_DIFF_WEIGHT as "pdDiffWeight",
<!-- 盘点差异重量 -->
END_AMOUNT as "endAmount",
<!-- 期末数量 -->
END_WEIGHT as "endWeight"
<!-- 期末重量 -->
</sql>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</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=
"dateType"
>
DATE_TYPE = #dateType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"dateProc"
>
DATE_PROC = #dateProc#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whCode"
>
WH_CODE = #whCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whName"
>
WH_NAME = #whName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME = #projName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtCode"
>
PRDT_CODE = #prdtCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtName"
>
PRDT_NAME = #prdtName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partCode"
>
PART_CODE = #partCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partName"
>
PART_NAME = #partName#
</isNotEmpty>
</sql>
<sql
id=
"order"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"order"
>
$order$
</isNotEmpty>
<isEmpty
property=
"order"
>
ID asc
</isEmpty>
</dynamic>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.gxzl.common.mc.domain.THpkc009a"
>
SELECT
<include
refid=
"column"
/>
FROM ${hpjxSchema}.T_HPKC009A
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"order"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPKC009A WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!-- 查询统计 -->
<select
id=
"querySum"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC009A"
>
SELECT
COALESCE(SUM(INIT_AMOUNT), 0) AS "initAmount",
<!-- 期初数量 -->
COALESCE(SUM(INIT_WEIGHT), 0) AS "initWeight",
<!-- 期初重量 -->
COALESCE(SUM(ENTER_AMOUNT), 0) AS "enterAmount",
<!-- 入库数量 -->
COALESCE(SUM(ENTER_WEIGHT), 0) AS "enterWeight",
<!-- 入库重量 -->
COALESCE(SUM(OUTER_AMOUNT), 0) AS "outerAmount",
<!-- 出库数量 -->
COALESCE(SUM(OUTER_WEIGHT), 0) AS "outerWeight",
<!-- 出库重量 -->
COALESCE(SUM(PD_DIFF_AMOUNT), 0) AS "pdDiffAmount",
<!-- 盘点差异数量 -->
COALESCE(SUM(PD_DIFF_WEIGHT), 0) AS "pdDiffWeight",
<!-- 盘点差异重量 -->
COALESCE(SUM(END_AMOUNT), 0) AS "endAmount",
<!-- 期末数量 -->
COALESCE(SUM(END_WEIGHT), 0) AS "endWeight"
<!-- 期末重量 -->
FROM ${hpjxSchema}.T_HPKC009A
WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPKC009A (
COMPANY_CODE,
<!-- 企业编码 预留 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
DATE_TYPE,
<!-- 日期类型:DAY:天,MONTH:月 -->
DATE_PROC,
<!-- 日期 -->
WH_CODE,
<!-- 仓库编码 -->
WH_NAME,
<!-- 仓库名称 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
PRDT_CODE,
<!-- 产品编码 -->
PRDT_NAME,
<!-- 产品名称 -->
PART_CODE,
<!-- 零件编码 -->
PART_NAME,
<!-- 零件名称 -->
INIT_AMOUNT,
<!-- 期初数量 -->
INIT_WEIGHT,
<!-- 期初重量 -->
ENTER_AMOUNT,
<!-- 入库数量 -->
ENTER_WEIGHT,
<!-- 入库重量 -->
OUTER_AMOUNT,
<!-- 出库数量 -->
OUTER_WEIGHT,
<!-- 出库重量 -->
PD_DIFF_AMOUNT,
<!-- 盘点差异数量 -->
PD_DIFF_WEIGHT,
<!-- 盘点差异重量 -->
END_AMOUNT,
<!-- 期末数量 -->
END_WEIGHT
<!-- 期末重量 -->
) VALUES (
#companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#dateType#, #dateProc#, #whCode#, #whName#, #projCode#, #projName#,
#prdtCode#, #prdtName#, #partCode#, #partName#, #initAmount#, #initWeight#,
#enterAmount#, #enterWeight#, #outerAmount#, #outerWeight#, #pdDiffAmount#,
#pdDiffWeight#, #endAmount#, #endWeight#
)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.T_HPKC009A WHERE ID = #id#
</delete>
<!-- 按时间删除数据 -->
<delete
id=
"deleteByTime"
>
DELETE FROM ${hpjxSchema}.T_HPKC009A WHERE DATE_PROC = #dateProc#
</delete>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC011A.xml
0 → 100644
View file @
be79c99f
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HPKC011A"
>
<sql
id=
"column"
>
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
DATE_PROC as "dateProc",
<!-- 日期 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName",
<!-- 仓库名称 -->
PROD_NO as "prodNo",
<!-- 生产单号 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
INVENT_CODE as "inventCode",
<!-- 部件编码 -->
INVENT_NAME as "inventName",
<!-- 部件名称 -->
SUB_INVENT_CODE as "subInventCode",
<!-- 零件编码 -->
SUB_INVENT_NAME as "subInventName",
<!-- 零件名称 -->
LENGTH as "length",
<!-- 长 -->
WIDTH as "width",
<!-- 宽 -->
THICK as "thick",
<!-- 厚 -->
AMOUNT as "amount",
<!-- 数量 -->
UNIT_WEIGHT as "unitWeight",
<!-- 单重 -->
WEIGHT as "weight",
<!-- 重量 -->
REMARK as "remark",
<!-- 备注 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
VERSION as "version"
<!-- 版本号 -->
</sql>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"dateProc"
>
DATE_PROC = #dateProc#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whCode"
>
WH_CODE = #whCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whName"
>
WH_NAME = #whName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prodNo"
>
PROD_NO = #prodNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME = #projName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"subInventCode"
>
SUB_INVENT_CODE = #subInventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"subInventName"
>
SUB_INVENT_NAME = #subInventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"length"
>
LENGTH = #length#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"width"
>
WIDTH = #width#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"thick"
>
THICK = #thick#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
AMOUNT = #amount#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"unitWeight"
>
UNIT_WEIGHT = #unitWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"weight"
>
WEIGHT = #weight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"remark"
>
REMARK = #remark#
</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=
"version"
>
VERSION = #version#
</isNotEmpty>
</sql>
<sql
id=
"order"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"order"
>
$order$
</isNotEmpty>
<isEmpty
property=
"order"
>
ID asc
</isEmpty>
</dynamic>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC011A"
>
SELECT
<include
refid=
"column"
/>
FROM ${hpjxSchema}.T_HPKC011A
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"order"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPKC011A WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPKC011A (
COMPANY_CODE,
<!-- 企业编码 -->
DEP_CODE,
<!-- 部门编码 -->
DATE_PROC,
<!-- 日期 -->
WH_CODE,
<!-- 仓库编码 -->
WH_NAME,
<!-- 仓库名称 -->
PROD_NO,
<!-- 生产单号 -->
PROJ_CODE,
<!-- 项目编码 -->
PROJ_NAME,
<!-- 项目名称 -->
INVENT_CODE,
<!-- 部件编码 -->
INVENT_NAME,
<!-- 部件名称 -->
SUB_INVENT_CODE,
<!-- 零件编码 -->
SUB_INVENT_NAME,
<!-- 零件名称 -->
LENGTH,
<!-- 长 -->
WIDTH,
<!-- 宽 -->
THICK,
<!-- 厚 -->
AMOUNT,
<!-- 数量 -->
UNIT_WEIGHT,
<!-- 单重 -->
WEIGHT,
<!-- 重量 -->
REMARK,
<!-- 备注 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_NAME,
<!-- 更新人名称 -->
UPDATED_TIME,
<!-- 更新时间 -->
VERSION
<!-- 版本号 -->
) VALUES (
#companyCode#, #depCode#, #dateProc#, #whCode#, #whName#, #prodNo#, #projCode#,
#projName#, #inventCode#, #inventName#, #subInventCode#, #subInventName#, #length#,
#width#, #thick#, #amount#, #unitWeight#, #weight#, #remark#, #createdBy#, #createdName#,
#createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #version#
)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.T_HPKC011A WHEREID = #id#
</delete>
<!-- 按时间删除数据 -->
<delete
id=
"deleteByTime"
>
DELETE FROM ${hpjxSchema}.T_HPKC011A WHERE DATE_PROC = #dateProc#
</delete>
<!-- 备份数据 -->
<insert
id=
"backup"
>
INSERT INTO ${hpjxSchema}.T_HPKC011A (
COMPANY_CODE, DEP_CODE, DATE_PROC, WH_CODE, WH_NAME, INVENT_TYPE,
INVENT_CODE, INVENT_NAME, INVENT_RECORD_ID, AMOUNT, WEIGHT,
CREATED_BY, CREATED_NAME, CREATED_TIME, UPDATED_BY, UPDATED_NAME,
UPDATED_TIME, VERSION
)
SELECT
COMPANY_CODE, DEP_CODE, #dateProc#, WH_CODE, WH_NAME, INVENT_TYPE,
INVENT_CODE, INVENT_NAME, INVENT_RECORD_ID, AMOUNT, WEIGHT,
CREATED_BY, CREATED_NAME, CREATED_TIME, UPDATED_BY, UPDATED_NAME,
UPDATED_TIME, VERSION
FROM ${hpjxSchema}.T_HPKC011
</insert>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC005A.java
View file @
be79c99f
...
...
@@ -226,7 +226,6 @@ public class ServiceHPSC005A extends ServiceBase {
}
else
{
HPSCTools
.
checkAssignedNum2
(
dbSc005
.
getProdOrderNo
(),
dbSc005
.
getUnassignedNum
());
}
HPSCTools
.
checkAssignedNum
(
dbSc005
.
getProdOrderNo
(),
dbSc005
.
getNum
());
// 写入子表数据
HPSC005A
newSc005a
=
new
HPSC005A
();
newSc005a
.
setProdTaskNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
PROD_TASK_NO
,
...
...
src/main/resources/log4j2.xml
View file @
be79c99f
...
...
@@ -11,7 +11,7 @@
<Appenders>
<!--<Console name="Console" target="SYSTEM_OUT" follow="true">-->
<!--<PatternLayout pattern="${LOG_PATTERN}"/>-->
<!--</Console>-->
<!-- 用来定义输出到控制台的配置 -->
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<!-- 设置控制台只输出error及以上级别的信息(onMatch),其他的直接拒绝(onMismatch)-->
<ThresholdFilter
level=
"INFO"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
<PatternLayout
pattern=
"${LOG_PATTERN}"
charset=
"UTF-8"
/>
<PatternLayout
pattern=
"${LOG_PATTERN}"
/>
</Console>
<RollingRandomAccessFile
name=
"MyFile"
fileName=
"apps/logs/iplat.log"
filePattern=
"apps/logs/iplat.%d{yyyy-MM-dd}-%i.log.gz"
>
<PatternLayout>
...
...
src/main/webapp/HP/KC/HPKC003.jsp
View file @
be79c99f
...
...
@@ -10,13 +10,16 @@
<div
class=
"row"
>
<EF:EFDatePicker
cname=
"单据日期"
ename=
"documentDate"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
<EF:EFInput
cname=
"入库单号"
ename=
"prodNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"项目名称"
ename=
"projName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"仓库名称"
ename=
"whCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFSelect
cname=
"是否删除"
ename=
"deleteFlag"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
defaultValue=
"0"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFCodeOption
codeName=
"hpjx.hpjx.deleteFlag"
/>
</EF:EFSelect>
</div>
<div
class=
"row"
>
<EF:EFInput
cname=
"部件名称"
ename=
"prdtName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
...
...
@@ -25,10 +28,6 @@
<EF:EFInput
cname=
"生产任务号"
ename=
"prodTaskNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
</div>
<div
class=
"row"
>
<EF:EFSelect
cname=
"是否删除"
ename=
"deleteFlag"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
defaultValue=
"0"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFCodeOption
codeName=
"hpjx.hpjx.deleteFlag"
/>
</EF:EFSelect>
<EF:EFDateSpan
startCname=
"创建日期(从)"
endCname=
"至"
blockId=
"inqu_status"
startName=
"createdDateFrom"
endName=
"createdDateTo"
row=
"0"
role=
"date"
format=
"yyyy-MM-dd"
ratio=
"3:3"
satrtRatio=
"4:8"
endRatio=
"4:8"
readonly=
"true"
>
...
...
src/main/webapp/HP/KC/HPKC004A.jsp
View file @
be79c99f
...
...
@@ -11,11 +11,7 @@
<div
class=
"row"
>
<EF:EFInput
cname=
"项目号"
ename=
"projCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"项目名称"
ename=
"projName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"部件编码"
ename=
"inventCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"部件名称"
ename=
"inventName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
cname=
"零件编码"
ename=
"subInventCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"零件名称"
ename=
"subInventName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
</div>
</div>
...
...
src/main/webapp/HP/SC/HPSC001.jsp
View file @
be79c99f
...
...
@@ -38,7 +38,8 @@
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projCode"
enable=
"false"
cname=
"项目编码"
readonly=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFComboColumn
ename=
"projType"
cname=
"项目类型"
width=
"100"
align=
"center"
required=
"true"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"true"
>
<EF:EFCodeOption
codeName=
"hpjx.hpsc.projType"
/>
...
...
@@ -54,18 +55,11 @@
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"true"
filter=
"contains"
>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
/>
<EF:EFComboColumn
enable=
"false"
align=
"center"
ename=
"status"
cname=
"状态"
readonly=
"true"
>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
width=
"100"
align=
"center"
>
<EF:EFOption
label=
"未提交"
value=
"0"
/>
<EF:EFOption
label=
"已提交"
value=
"1"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
width=
"100"
enable=
"false"
readonly=
"false
"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注
"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
<script>
var
ctx
=
"${ctx}"
;
</script>
<script
src=
"${ctx}/HP/SC/HPSC001.js"
></script>
\ No newline at end of file
src/main/webapp/HP/SC/HPSC002.jsp
View file @
be79c99f
...
...
@@ -44,38 +44,24 @@
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"level"
cname=
"层级"
hidden=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"projCode"
cname=
"项目编码"
hidden=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"projName"
cname=
"项目名称"
hidden=
"true"
/>
<
%
--
<
EF:EFComboColumn
cname=
"部件类型"
ename=
"prdtType"
width=
"90"
align=
"center"
required=
"true"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
condition=
"ITEM_CODE IN ('2','3','4')"
/>
</EF:EFComboColumn>
--%>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"false"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFComboColumn
ename=
"prdtType"
cname=
"部件类型"
align=
"center"
required=
"true"
filter=
"contains"
width=
"90"
>
<EF:EFOptions
blockId=
"codeset_code_block_id"
valueField=
"valueField"
textField=
"textField"
/>
</EF:EFComboColumn>
<
%
--
<
EF:EFPopupColumn
ename=
"prdtName"
cname=
"部件名称"
width=
"200"
popupType=
"ServiceGrid"
popupTitle=
"部件信息"
serviceName=
"HPPZ006"
methodName=
"queryPrdtComboBox"
resultId=
"invent_prdt_name_block_id"
columnEnames=
"param1Field,textField"
columnCnames=
"部件名称,部件编码"
backFillColumnIds=
"param1Field,textField"
backFillFieldIds=
"prdtName,prdtCode"
valueField=
"param1Field"
textField=
"param1Field"
/>
--%>
<EF:EFColumn
ename=
"prdtName"
cname=
"部件名称"
width=
"200"
align=
"center"
maxLength=
"50"
/>
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
hidden =
'true'
/>
<EF:EFColumn
ename=
"length"
cname=
"长"
format=
"{0:N3}"
maxLength=
"12"
displayType=
"0.000"
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
hidden=
'true'
/>
<EF:EFColumn
ename=
"prdtName"
cname=
"部件名称"
width=
"140"
align=
"center"
maxLength=
"50"
/>
<EF:EFColumn
ename=
"length"
cname=
"长"
width=
"80"
format=
"{0:N3}"
maxLength=
"12"
displayType=
"0.000"
data-regex=
"/^-?[0-9]{1,9}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置9位整数和3位小数!"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽
"
format=
"{0:N3}"
maxLength=
"12"
displayType=
"0.000"
<EF:EFColumn
ename=
"width"
cname=
"宽"
width=
"80
"
format=
"{0:N3}"
maxLength=
"12"
displayType=
"0.000"
data-regex=
"/^-?[0-9]{1,9}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置9位整数和3位小数!"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚
"
format=
"{0:N3}"
maxLength=
"12"
displayType=
"0.000"
<EF:EFColumn
ename=
"thick"
cname=
"厚"
width=
"80
"
format=
"{0:N3}"
maxLength=
"12"
displayType=
"0.000"
data-regex=
"/^-?[0-9]{1,9}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置9位整数和3位小数!"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
/>
<EF:EFColumn
enable=
"false"
ename=
"parentId"
hidden=
"true"
cname=
"上级部件名称"
/>
<EF:EFColumn
enable=
"false"
ename=
"parentPrdtName"
hidden=
"true"
cname=
"上级部件名称"
/>
<EF:EFColumn
ename=
"num"
required=
"true"
cname=
"数量"
maxLength=
"15"
displayType=
"0.000"
...
...
@@ -94,7 +80,7 @@
<EF:EFOption
label=
"未提交"
value=
"0"
></EF:EFOption>
<EF:EFOption
label=
"已提交"
value=
"1"
></EF:EFOption>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
width=
"200"
enable=
"false"
readonly=
"false"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
/>
</EF:EFGrid>
</EF:EFRegion>
</div>
...
...
src/main/webapp/HP/SC/HPSC003.jsp
View file @
be79c99f
...
...
@@ -26,6 +26,7 @@
<EF:EFRegion
id=
"result"
title=
"基本信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
enable=
"false"
ename=
"projCode"
cname=
"项目号"
readonly=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"projName"
cname=
"项目名称"
readonly=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"planInfoNo"
cname=
"生产计划单号"
readonly=
"true"
/>
...
...
@@ -43,7 +44,6 @@
<EF:EFOption
label=
"未提交"
value=
"0"
/>
<EF:EFOption
label=
"已提交"
value=
"1"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
width=
"100"
enable=
"false"
readonly=
"false"
/>
</EF:EFGrid>
</EF:EFRegion>
...
...
@@ -54,8 +54,9 @@
<EF:EFColumn
ename=
"companyCode"
cname=
"企业编码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"parentId"
cname=
"父ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFComboColumn
ename=
"prdtType"
cname=
"零件类型"
width=
"90"
align=
"center"
readonly=
"true"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
</EF:EFComboColumn>
<EF:EFColumn
enable=
"false"
ename=
"prdtCode"
cname=
"零件编码"
hidden =
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"prdtName"
readonly=
"true"
cname=
"零件名称"
/>
...
...
@@ -72,7 +73,6 @@
enable=
"false"
/>
<EF:EFColumn
enable=
"false"
ename=
"actualCompletionNum"
cname=
"完成数量"
readonly=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"actualCompletionUnitWt"
cname=
"完成总重"
readonly=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
width=
"100"
enable=
"false"
readonly=
"false"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
src/main/webapp/HP/SC/HPSC005B.jsp
View file @
be79c99f
...
...
@@ -24,17 +24,17 @@
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"childId"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
enable=
"false"
width=
"15
0"
align=
"center"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"8
0"
align=
"center"
/>
<EF:EFColumn
ename=
"prodTaskNo"
cname=
"生产任务号"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"prdtName"
cname=
"部件名称"
enable=
"false"
width=
"1
2
0"
align=
"center"
/>
<EF:EFColumn
ename=
"partName"
cname=
"零件名称"
enable=
"false"
width=
"1
2
0"
align=
"center"
/>
<EF:EFColumn
ename=
"partSpec"
cname=
"零件规格"
enable=
"false"
width=
"1
2
0"
align=
"center"
/>
<
EF:EFColumn
ename=
"remark1"
cname=
"零件备注"
/
>
<EF:EFColumn
ename=
"prdtName"
cname=
"部件名称"
enable=
"false"
width=
"1
0
0"
align=
"center"
/>
<EF:EFColumn
ename=
"partName"
cname=
"零件名称"
enable=
"false"
width=
"1
0
0"
align=
"center"
/>
<EF:EFColumn
ename=
"partSpec"
cname=
"零件规格"
enable=
"false"
width=
"1
0
0"
align=
"center"
/>
<
%
--
<
EF:EFColumn
ename=
"remark1"
cname=
"零件备注"
/>
--%
>
<EF:EFColumn
ename=
"planCompletionDate"
cname=
"计划完成日期"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"completeNum"
cname=
"已完成数量"
enable=
"false"
width=
"1
2
0"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"num"
cname=
"任务数量"
enable=
"false"
width=
"1
2
0"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"totalWt"
cname=
"任务重量"
enable=
"false"
width=
"1
2
0"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"completeNum"
cname=
"已完成数量"
enable=
"false"
width=
"1
0
0"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"num"
cname=
"任务数量"
enable=
"false"
width=
"1
0
0"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"totalWt"
cname=
"任务重量"
enable=
"false"
width=
"1
0
0"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"factoryName"
cname=
"厂区名称"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"orgName"
cname=
"生产组名称"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"prodOrderNo"
cname=
"生产订单号"
enable=
"false"
width=
"140"
align=
"center"
/>
...
...
src/main/webapp/HP/SC/HPSC006.js
View file @
be79c99f
...
...
@@ -56,11 +56,11 @@ $(function () {
detailGrid
.
setEiBlock
(
block
);
}
var
info
=
new
EiInfo
()
var
productionOrderNo
=
e
.
model
[
'prod
uction
OrderNo'
];
var
productionOrderNo
=
e
.
model
[
'prodOrderNo'
];
var
projCode
=
e
.
model
[
'projCode'
];
var
projName
=
e
.
model
[
'projName'
];
info
.
set
(
"prod
uctionOrderNo"
,
production
OrderNo
);
info
.
set
(
"prod
OrderNo"
,
prod
OrderNo
);
EiCommunicator
.
send
(
"HPSC006"
,
"queryDetail"
,
info
,{
onSuccess
:
function
(
ei
){
//返回结果集
detailGrid
.
setEiInfo
(
ei
);
...
...
src/main/webapp/HP/SC/HPSC006.jsp
View file @
be79c99f
...
...
@@ -18,7 +18,7 @@
<div
class=
"row"
>
<
%
--
blockId=
"inqu_status"
row=
"0"
--
%
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projCode"
cname=
"项目号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
cname=
"项目名称:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"prod
uction
OrderNo"
cname=
"生产订单号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"prodOrderNo"
cname=
"生产订单号:"
row=
"0"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
ename=
"planCompletionDate"
cname=
"计划完成日期:"
row=
"0"
format=
"yyyy-MM-dd"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"orgNo"
cname=
"生产组:"
row=
"0"
/>
...
...
@@ -32,7 +32,7 @@
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"projCode"
cname=
"项目号"
/>
<EF:EFColumn
enable=
"false"
ename=
"projName"
cname=
"项目名称"
/>
<EF:EFColumn
enable=
"false"
ename=
"prod
uction
OrderNo"
cname=
"生产订单号"
/>
<EF:EFColumn
enable=
"false"
ename=
"prodOrderNo"
cname=
"生产订单号"
/>
<EF:EFColumn
enable=
"false"
ename=
"prdtName"
cname=
"部件名称"
/>
<EF:EFColumn
enable=
"false"
ename=
"partName"
cname=
"零件名称"
/>
<EF:EFColumn
enable=
"false"
ename=
"planCompletionDate"
cname=
"计划完成日期"
/>
...
...
src/main/webapp/HP/SC/HPSC011.jsp
View file @
be79c99f
...
...
@@ -43,7 +43,8 @@
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"projCode"
cname=
"项目编码"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFComboColumn
ename=
"projType"
cname=
"项目类型"
width=
"100"
align=
"center"
required=
"true"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
>
<EF:EFCodeOption
codeName=
"hpjx.hpsc.projType"
/>
...
...
@@ -59,19 +60,12 @@
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"true"
filter=
"contains"
>
</EF:EFComboColumn>
<EF:EFColumn
enable=
"false"
ename=
"remark"
cname=
"备注"
/>
<EF:EFComboColumn
align=
"center"
ename=
"materialStatus"
cname=
"物料提交状态"
defaultValue=
"0"
>
<EF:EFComboColumn
ename=
"materialStatus"
cname=
"物料提交状态"
enable=
"false"
width=
"100"
align=
"center"
>
<EF:EFOption
label=
"未提交"
value=
"0"
/>
<EF:EFOption
label=
"部分提交"
value=
"1"
/>
<EF:EFOption
label=
"全部提交"
value=
"2"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
width=
"100"
enable=
"false"
readonly
=
"false"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable
=
"false"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
<script>
var
ctx
=
"${ctx}"
;
</script>
<script
src=
"${ctx}/HP/SC/HPSC011.js"
></script>
\ No newline at end of file
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