Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
96de65f8
Commit
96de65f8
authored
Jul 06, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产副品制造成本核算dev
parent
a2f7702f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1435 additions
and
0 deletions
+1435
-0
HGCB005.java
src/main/java/com/baosight/hggp/hg/cb/domain/HGCB005.java
+948
-0
HGCB005.xml
src/main/java/com/baosight/hggp/hg/cb/sql/HGCB005.xml
+393
-0
HGCBTools.java
src/main/java/com/baosight/hggp/hg/cb/tools/HGCBTools.java
+78
-0
HGKC003.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003.xml
+6
-0
HGKCTools.java
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
+10
-0
No files found.
src/main/java/com/baosight/hggp/hg/cb/domain/HGCB005.java
0 → 100644
View file @
96de65f8
package
com
.
baosight
.
hggp
.
hg
.
cb
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
* Project: <br>
* Title:HGCB005.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-07-04 10:02:25 create
*/
public
class
HGCB005
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_id
=
"id"
;
public
static
final
String
FIELD_account_code
=
"accountCode"
;
/* 企业编码*/
public
static
final
String
FIELD_dep_code
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_created_by
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_created_name
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_created_time
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_updated_by
=
"updatedBy"
;
/* 记录修改者*/
public
static
final
String
FIELD_updated_name
=
"updatedName"
;
/* 记录修改名称*/
public
static
final
String
FIELD_updated_time
=
"updatedTime"
;
/* 记录修改时间*/
public
static
final
String
FIELD_account_year
=
"accountYear"
;
/* 会计期(年)*/
public
static
final
String
FIELD_account_month
=
"accountMonth"
;
/* 会计期(月)*/
public
static
final
String
FIELD_company_code
=
"companyCode"
;
/* 公司编码*/
public
static
final
String
FIELD_company_name
=
"companyName"
;
/* 公司名称*/
public
static
final
String
FIELD_proj_code
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_proj_name
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_quantity
=
"quantity"
;
/* 数量*/
public
static
final
String
FIELD_return_quantity
=
"returnQuantity"
;
/* 退回数量*/
public
static
final
String
FIELD_single_weight
=
"singleWeight"
;
/* 单重*/
public
static
final
String
FIELD_total_weight
=
"totalWeight"
;
/* 总重*/
public
static
final
String
FIELD_product_type
=
"productType"
;
/* 产品类型*/
public
static
final
String
FIELD_product_code
=
"productCode"
;
/* 产品编码*/
public
static
final
String
FIELD_product_name
=
"productName"
;
/* 产品名称*/
public
static
final
String
FIELD_product_length
=
"productLength"
;
/* 产品-长*/
public
static
final
String
FIELD_product_width
=
"productWidth"
;
/* 产品-宽*/
public
static
final
String
FIELD_product_thick
=
"productThick"
;
/* 产品-厚*/
public
static
final
String
FIELD_product_spec
=
"productSpec"
;
/* 产品规格*/
public
static
final
String
FIELD_unit_cost
=
"unitCost"
;
/* 单位成本*/
public
static
final
String
FIELD_total_cost
=
"totalCost"
;
/* 总成本*/
public
static
final
String
FIELD_tech_flow_id
=
"techFlowId"
;
/* 工艺流程ID*/
public
static
final
String
FIELD_tech_flow_name
=
"techFlowName"
;
/* 工艺流程名称*/
public
static
final
String
FIELD_invent_process_id
=
"inventProcessId"
;
/* 存货工序ID,对应HGPZ005A.id*/
public
static
final
String
FIELD_process_code
=
"processCode"
;
/* 工序编码*/
public
static
final
String
FIELD_process_name
=
"processName"
;
/* 工序名称*/
public
static
final
String
FIELD_process_order
=
"processOrder"
;
/* 加工顺序*/
public
static
final
String
COL_id
=
"id"
;
public
static
final
String
COL_account_code
=
"account_code"
;
/* 企业编码*/
public
static
final
String
COL_dep_code
=
"dep_code"
;
/* 部门编码*/
public
static
final
String
COL_created_by
=
"created_by"
;
/* 记录创建者*/
public
static
final
String
COL_created_name
=
"created_name"
;
/* 记录创建名称*/
public
static
final
String
COL_created_time
=
"created_time"
;
/* 记录创建时间*/
public
static
final
String
COL_updated_by
=
"updated_by"
;
/* 记录修改者*/
public
static
final
String
COL_updated_name
=
"updated_name"
;
/* 记录修改名称*/
public
static
final
String
COL_updated_time
=
"updated_time"
;
/* 记录修改时间*/
public
static
final
String
COL_account_year
=
"account_year"
;
/* 会计期(年)*/
public
static
final
String
COL_account_month
=
"account_month"
;
/* 会计期(月)*/
public
static
final
String
COL_company_code
=
"company_code"
;
/* 公司编码*/
public
static
final
String
COL_company_name
=
"company_name"
;
/* 公司名称*/
public
static
final
String
COL_proj_code
=
"proj_code"
;
/* 项目编码*/
public
static
final
String
COL_proj_name
=
"proj_name"
;
/* 项目名称*/
public
static
final
String
COL_quantity
=
"quantity"
;
/* 数量*/
public
static
final
String
COL_return_quantity
=
"return_quantity"
;
/* 退回数量*/
public
static
final
String
COL_single_weight
=
"single_weight"
;
/* 单重*/
public
static
final
String
COL_total_weight
=
"total_weight"
;
/* 总重*/
public
static
final
String
COL_product_type
=
"product_type"
;
/* 产品类型*/
public
static
final
String
COL_product_code
=
"product_code"
;
/* 产品编码*/
public
static
final
String
COL_product_name
=
"product_name"
;
/* 产品名称*/
public
static
final
String
COL_product_length
=
"product_length"
;
/* 产品-长*/
public
static
final
String
COL_product_width
=
"product_width"
;
/* 产品-宽*/
public
static
final
String
COL_product_thick
=
"product_thick"
;
/* 产品-厚*/
public
static
final
String
COL_product_spec
=
"product_spec"
;
/* 产品规格*/
public
static
final
String
COL_unit_cost
=
"unit_cost"
;
/* 单位成本*/
public
static
final
String
COL_total_cost
=
"total_cost"
;
/* 总成本*/
public
static
final
String
COL_tech_flow_id
=
"tech_flow_id"
;
/* 工艺流程ID*/
public
static
final
String
COL_tech_flow_name
=
"tech_flow_name"
;
/* 工艺流程名称*/
public
static
final
String
COL_invent_process_id
=
"invent_process_id"
;
/* 存货工序ID,对应HGPZ005A.id*/
public
static
final
String
COL_process_code
=
"process_code"
;
/* 工序编码*/
public
static
final
String
COL_process_name
=
"process_name"
;
/* 工序名称*/
public
static
final
String
COL_process_order
=
"process_order"
;
/* 加工顺序*/
public
static
final
String
QUERY
=
"HGCB005.query"
;
public
static
final
String
COUNT
=
"HGCB005.count"
;
public
static
final
String
INSERT
=
"HGCB005.insert"
;
public
static
final
String
UPDATE
=
"HGCB005.update"
;
public
static
final
String
DELETE
=
"HGCB005.delete"
;
private
Long
id
=
new
Long
(
0
);
private
String
accountCode
=
" "
;
/* 企业编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
String
accountYear
=
" "
;
/* 会计期(年)*/
private
String
accountMonth
=
" "
;
/* 会计期(月)*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
BigDecimal
quantity
=
new
BigDecimal
(
0.000
);
/* 数量*/
private
BigDecimal
returnQuantity
=
new
BigDecimal
(
0.000
);
/* 退回数量*/
private
BigDecimal
singleWeight
=
new
BigDecimal
(
0.000
);
/* 单重*/
private
BigDecimal
totalWeight
=
new
BigDecimal
(
0.000
);
/* 总重*/
private
String
productType
=
" "
;
/* 产品类型*/
private
String
productCode
=
" "
;
/* 产品编码*/
private
String
productName
=
" "
;
/* 产品名称*/
private
BigDecimal
productLength
=
new
BigDecimal
(
0.000
);
/* 产品-长*/
private
BigDecimal
productWidth
=
new
BigDecimal
(
0.000
);
/* 产品-宽*/
private
BigDecimal
productThick
=
new
BigDecimal
(
0.000
);
/* 产品-厚*/
private
String
productSpec
=
" "
;
/* 产品规格*/
private
BigDecimal
unitCost
=
new
BigDecimal
(
"0"
);
/* 单位成本*/
private
BigDecimal
totalCost
=
new
BigDecimal
(
"0"
);
/* 总成本*/
private
Long
techFlowId
=
new
Long
(
0
);
/* 工艺流程ID*/
private
Long
techFlowName
=
new
Long
(
0
);
/* 工艺流程名称*/
private
Long
inventProcessId
=
new
Long
(
0
);
/* 存货工序ID,对应HGPZ005A.id*/
private
String
processCode
=
" "
;
/* 工序编码*/
private
String
processName
=
" "
;
/* 工序名称*/
private
Long
processOrder
=
new
Long
(
0
);
/* 加工顺序*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_id
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_account_code
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_dep_code
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_created_by
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_created_name
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_created_time
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_updated_by
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_updated_name
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_updated_time
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_account_year
);
eiColumn
.
setDescName
(
"会计期(年)"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_account_month
);
eiColumn
.
setDescName
(
"会计期(月)"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_company_code
);
eiColumn
.
setDescName
(
"公司编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_company_name
);
eiColumn
.
setDescName
(
"公司名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_proj_code
);
eiColumn
.
setDescName
(
"项目编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_proj_name
);
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_quantity
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_return_quantity
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"退回数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_single_weight
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"单重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_total_weight
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"总重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_product_type
);
eiColumn
.
setDescName
(
"产品类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_product_code
);
eiColumn
.
setDescName
(
"产品编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_product_name
);
eiColumn
.
setDescName
(
"产品名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_product_length
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"产品-长"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_product_width
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"产品-宽"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_product_thick
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"产品-厚"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_product_spec
);
eiColumn
.
setDescName
(
"产品规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_unit_cost
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"单位成本"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_total_cost
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"总成本"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_tech_flow_id
);
eiColumn
.
setDescName
(
"工艺流程ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_tech_flow_name
);
eiColumn
.
setDescName
(
"工艺流程名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_invent_process_id
);
eiColumn
.
setDescName
(
"存货工序ID,对应HGPZ005A.id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_process_code
);
eiColumn
.
setDescName
(
"工序编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_process_name
);
eiColumn
.
setDescName
(
"工序名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_process_order
);
eiColumn
.
setDescName
(
"加工顺序"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HGCB005
()
{
initMetaData
();
}
/**
* get the id .
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id .
*
* @param id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* get the accountCode - 企业编码.
* @return the accountCode
*/
public
String
getAccountCode
()
{
return
this
.
accountCode
;
}
/**
* set the accountCode - 企业编码.
*
* @param accountCode - 企业编码
*/
public
void
setAccountCode
(
String
accountCode
)
{
this
.
accountCode
=
accountCode
;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 记录创建名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the accountYear - 会计期(年).
* @return the accountYear
*/
public
String
getAccountYear
()
{
return
this
.
accountYear
;
}
/**
* set the accountYear - 会计期(年).
*
* @param accountYear - 会计期(年)
*/
public
void
setAccountYear
(
String
accountYear
)
{
this
.
accountYear
=
accountYear
;
}
/**
* get the accountMonth - 会计期(月).
* @return the accountMonth
*/
public
String
getAccountMonth
()
{
return
this
.
accountMonth
;
}
/**
* set the accountMonth - 会计期(月).
*
* @param accountMonth - 会计期(月)
*/
public
void
setAccountMonth
(
String
accountMonth
)
{
this
.
accountMonth
=
accountMonth
;
}
/**
* get the companyCode - 公司编码.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 公司编码.
*
* @param companyCode - 公司编码
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the companyName - 公司名称.
* @return the companyName
*/
public
String
getCompanyName
()
{
return
this
.
companyName
;
}
/**
* set the companyName - 公司名称.
*
* @param companyName - 公司名称
*/
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
/**
* get the 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 quantity - 数量.
* @return the quantity
*/
public
BigDecimal
getQuantity
()
{
return
this
.
quantity
;
}
/**
* set the quantity - 数量.
*
* @param quantity - 数量
*/
public
void
setQuantity
(
BigDecimal
quantity
)
{
this
.
quantity
=
quantity
;
}
/**
* get the returnQuantity - 退回数量.
* @return the returnQuantity
*/
public
BigDecimal
getReturnQuantity
()
{
return
this
.
returnQuantity
;
}
/**
* set the returnQuantity - 退回数量.
*
* @param returnQuantity - 退回数量
*/
public
void
setReturnQuantity
(
BigDecimal
returnQuantity
)
{
this
.
returnQuantity
=
returnQuantity
;
}
/**
* get the singleWeight - 单重.
* @return the singleWeight
*/
public
BigDecimal
getSingleWeight
()
{
return
this
.
singleWeight
;
}
/**
* set the singleWeight - 单重.
*
* @param singleWeight - 单重
*/
public
void
setSingleWeight
(
BigDecimal
singleWeight
)
{
this
.
singleWeight
=
singleWeight
;
}
/**
* get the totalWeight - 总重.
* @return the totalWeight
*/
public
BigDecimal
getTotalWeight
()
{
return
this
.
totalWeight
;
}
/**
* set the totalWeight - 总重.
*
* @param totalWeight - 总重
*/
public
void
setTotalWeight
(
BigDecimal
totalWeight
)
{
this
.
totalWeight
=
totalWeight
;
}
/**
* get the productType - 产品类型.
* @return the productType
*/
public
String
getProductType
()
{
return
this
.
productType
;
}
/**
* set the productType - 产品类型.
*
* @param productType - 产品类型
*/
public
void
setProductType
(
String
productType
)
{
this
.
productType
=
productType
;
}
/**
* get the productCode - 产品编码.
* @return the productCode
*/
public
String
getProductCode
()
{
return
this
.
productCode
;
}
/**
* set the productCode - 产品编码.
*
* @param productCode - 产品编码
*/
public
void
setProductCode
(
String
productCode
)
{
this
.
productCode
=
productCode
;
}
/**
* get the productName - 产品名称.
* @return the productName
*/
public
String
getProductName
()
{
return
this
.
productName
;
}
/**
* set the productName - 产品名称.
*
* @param productName - 产品名称
*/
public
void
setProductName
(
String
productName
)
{
this
.
productName
=
productName
;
}
/**
* get the productLength - 产品-长.
* @return the productLength
*/
public
BigDecimal
getProductLength
()
{
return
this
.
productLength
;
}
/**
* set the productLength - 产品-长.
*
* @param productLength - 产品-长
*/
public
void
setProductLength
(
BigDecimal
productLength
)
{
this
.
productLength
=
productLength
;
}
/**
* get the productWidth - 产品-宽.
* @return the productWidth
*/
public
BigDecimal
getProductWidth
()
{
return
this
.
productWidth
;
}
/**
* set the productWidth - 产品-宽.
*
* @param productWidth - 产品-宽
*/
public
void
setProductWidth
(
BigDecimal
productWidth
)
{
this
.
productWidth
=
productWidth
;
}
/**
* get the productThick - 产品-厚.
* @return the productThick
*/
public
BigDecimal
getProductThick
()
{
return
this
.
productThick
;
}
/**
* set the productThick - 产品-厚.
*
* @param productThick - 产品-厚
*/
public
void
setProductThick
(
BigDecimal
productThick
)
{
this
.
productThick
=
productThick
;
}
/**
* get the productSpec - 产品规格.
* @return the productSpec
*/
public
String
getProductSpec
()
{
return
this
.
productSpec
;
}
/**
* set the productSpec - 产品规格.
*
* @param productSpec - 产品规格
*/
public
void
setProductSpec
(
String
productSpec
)
{
this
.
productSpec
=
productSpec
;
}
/**
* get the unitCost - 单位成本.
* @return the unitCost
*/
public
BigDecimal
getUnitCost
()
{
return
this
.
unitCost
;
}
/**
* set the unitCost - 单位成本.
*
* @param unitCost - 单位成本
*/
public
void
setUnitCost
(
BigDecimal
unitCost
)
{
this
.
unitCost
=
unitCost
;
}
/**
* get the totalCost - 总成本.
* @return the totalCost
*/
public
BigDecimal
getTotalCost
()
{
return
this
.
totalCost
;
}
/**
* set the totalCost - 总成本.
*
* @param totalCost - 总成本
*/
public
void
setTotalCost
(
BigDecimal
totalCost
)
{
this
.
totalCost
=
totalCost
;
}
/**
* get the techFlowId - 工艺流程ID.
* @return the techFlowId
*/
public
Long
getTechFlowId
()
{
return
this
.
techFlowId
;
}
/**
* set the techFlowId - 工艺流程ID.
*
* @param techFlowId - 工艺流程ID
*/
public
void
setTechFlowId
(
Long
techFlowId
)
{
this
.
techFlowId
=
techFlowId
;
}
/**
* get the techFlowName - 工艺流程名称.
* @return the techFlowName
*/
public
Long
getTechFlowName
()
{
return
this
.
techFlowName
;
}
/**
* set the techFlowName - 工艺流程名称.
*
* @param techFlowName - 工艺流程名称
*/
public
void
setTechFlowName
(
Long
techFlowName
)
{
this
.
techFlowName
=
techFlowName
;
}
/**
* get the inventProcessId - 存货工序ID,对应HGPZ005A.id.
* @return the inventProcessId
*/
public
Long
getInventProcessId
()
{
return
this
.
inventProcessId
;
}
/**
* set the inventProcessId - 存货工序ID,对应HGPZ005A.id.
*
* @param inventProcessId - 存货工序ID,对应HGPZ005A.id
*/
public
void
setInventProcessId
(
Long
inventProcessId
)
{
this
.
inventProcessId
=
inventProcessId
;
}
/**
* get the processCode - 工序编码.
* @return the processCode
*/
public
String
getProcessCode
()
{
return
this
.
processCode
;
}
/**
* set the processCode - 工序编码.
*
* @param processCode - 工序编码
*/
public
void
setProcessCode
(
String
processCode
)
{
this
.
processCode
=
processCode
;
}
/**
* get the processName - 工序名称.
* @return the processName
*/
public
String
getProcessName
()
{
return
this
.
processName
;
}
/**
* set the processName - 工序名称.
*
* @param processName - 工序名称
*/
public
void
setProcessName
(
String
processName
)
{
this
.
processName
=
processName
;
}
/**
* get the processOrder - 加工顺序.
* @return the processOrder
*/
public
Long
getProcessOrder
()
{
return
this
.
processOrder
;
}
/**
* set the processOrder - 加工顺序.
*
* @param processOrder - 加工顺序
*/
public
void
setProcessOrder
(
Long
processOrder
)
{
this
.
processOrder
=
processOrder
;
}
/**
* 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
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_account_code
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_dep_code
)),
depCode
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_created_by
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_created_name
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_created_time
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_updated_by
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_updated_name
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_updated_time
)),
updatedTime
));
setAccountYear
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_account_year
)),
accountYear
));
setAccountMonth
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_account_month
)),
accountMonth
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_company_code
)),
companyCode
));
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_company_name
)),
companyName
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_proj_code
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_proj_name
)),
projName
));
setQuantity
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_quantity
)),
quantity
));
setReturnQuantity
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_return_quantity
)),
returnQuantity
));
setSingleWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_single_weight
)),
singleWeight
));
setTotalWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_total_weight
)),
totalWeight
));
setProductType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_product_type
)),
productType
));
setProductCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_product_code
)),
productCode
));
setProductName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_product_name
)),
productName
));
setProductLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_product_length
)),
productLength
));
setProductWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_product_width
)),
productWidth
));
setProductThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_product_thick
)),
productThick
));
setProductSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_product_spec
)),
productSpec
));
setUnitCost
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_unit_cost
)),
unitCost
));
setTotalCost
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_total_cost
)),
totalCost
));
setTechFlowId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_tech_flow_id
)),
techFlowId
));
setTechFlowName
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_tech_flow_name
)),
techFlowName
));
setInventProcessId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_invent_process_id
)),
inventProcessId
));
setProcessCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_process_code
)),
processCode
));
setProcessName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_process_name
)),
processName
));
setProcessOrder
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_process_order
)),
processOrder
));
}
/**
* 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_account_code
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_account_code
)));
map
.
put
(
FIELD_dep_code
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_dep_code
)));
map
.
put
(
FIELD_created_by
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_created_by
)));
map
.
put
(
FIELD_created_name
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_created_name
)));
map
.
put
(
FIELD_created_time
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_created_time
)));
map
.
put
(
FIELD_updated_by
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_updated_by
)));
map
.
put
(
FIELD_updated_name
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_updated_name
)));
map
.
put
(
FIELD_updated_time
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_updated_time
)));
map
.
put
(
FIELD_account_year
,
StringUtils
.
toString
(
accountYear
,
eiMetadata
.
getMeta
(
FIELD_account_year
)));
map
.
put
(
FIELD_account_month
,
StringUtils
.
toString
(
accountMonth
,
eiMetadata
.
getMeta
(
FIELD_account_month
)));
map
.
put
(
FIELD_company_code
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_company_code
)));
map
.
put
(
FIELD_company_name
,
StringUtils
.
toString
(
companyName
,
eiMetadata
.
getMeta
(
FIELD_company_name
)));
map
.
put
(
FIELD_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_quantity
,
StringUtils
.
toString
(
quantity
,
eiMetadata
.
getMeta
(
FIELD_quantity
)));
map
.
put
(
FIELD_return_quantity
,
StringUtils
.
toString
(
returnQuantity
,
eiMetadata
.
getMeta
(
FIELD_return_quantity
)));
map
.
put
(
FIELD_single_weight
,
StringUtils
.
toString
(
singleWeight
,
eiMetadata
.
getMeta
(
FIELD_single_weight
)));
map
.
put
(
FIELD_total_weight
,
StringUtils
.
toString
(
totalWeight
,
eiMetadata
.
getMeta
(
FIELD_total_weight
)));
map
.
put
(
FIELD_product_type
,
StringUtils
.
toString
(
productType
,
eiMetadata
.
getMeta
(
FIELD_product_type
)));
map
.
put
(
FIELD_product_code
,
StringUtils
.
toString
(
productCode
,
eiMetadata
.
getMeta
(
FIELD_product_code
)));
map
.
put
(
FIELD_product_name
,
StringUtils
.
toString
(
productName
,
eiMetadata
.
getMeta
(
FIELD_product_name
)));
map
.
put
(
FIELD_product_length
,
StringUtils
.
toString
(
productLength
,
eiMetadata
.
getMeta
(
FIELD_product_length
)));
map
.
put
(
FIELD_product_width
,
StringUtils
.
toString
(
productWidth
,
eiMetadata
.
getMeta
(
FIELD_product_width
)));
map
.
put
(
FIELD_product_thick
,
StringUtils
.
toString
(
productThick
,
eiMetadata
.
getMeta
(
FIELD_product_thick
)));
map
.
put
(
FIELD_product_spec
,
StringUtils
.
toString
(
productSpec
,
eiMetadata
.
getMeta
(
FIELD_product_spec
)));
map
.
put
(
FIELD_unit_cost
,
StringUtils
.
toString
(
unitCost
,
eiMetadata
.
getMeta
(
FIELD_unit_cost
)));
map
.
put
(
FIELD_total_cost
,
StringUtils
.
toString
(
totalCost
,
eiMetadata
.
getMeta
(
FIELD_total_cost
)));
map
.
put
(
FIELD_tech_flow_id
,
StringUtils
.
toString
(
techFlowId
,
eiMetadata
.
getMeta
(
FIELD_tech_flow_id
)));
map
.
put
(
FIELD_tech_flow_name
,
StringUtils
.
toString
(
techFlowName
,
eiMetadata
.
getMeta
(
FIELD_tech_flow_name
)));
map
.
put
(
FIELD_invent_process_id
,
StringUtils
.
toString
(
inventProcessId
,
eiMetadata
.
getMeta
(
FIELD_invent_process_id
)));
map
.
put
(
FIELD_process_code
,
StringUtils
.
toString
(
processCode
,
eiMetadata
.
getMeta
(
FIELD_process_code
)));
map
.
put
(
FIELD_process_name
,
StringUtils
.
toString
(
processName
,
eiMetadata
.
getMeta
(
FIELD_process_name
)));
map
.
put
(
FIELD_process_order
,
StringUtils
.
toString
(
processOrder
,
eiMetadata
.
getMeta
(
FIELD_process_order
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/cb/sql/HGCB005.xml
0 → 100644
View file @
96de65f8
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-07-05 16:58:56
Version : 1.0
schema : hggp
tableName : HGCB005
id BIGINT NOT NULL primarykey,
account_code VARCHAR,
dep_code VARCHAR,
created_by VARCHAR NOT NULL,
created_name VARCHAR NOT NULL,
created_time VARCHAR NOT NULL,
updated_by VARCHAR NOT NULL,
updated_name VARCHAR NOT NULL,
updated_time VARCHAR NOT NULL,
account_year VARCHAR,
account_month VARCHAR,
company_code VARCHAR,
company_name VARCHAR,
proj_code VARCHAR,
proj_name VARCHAR,
quantity DECIMAL,
return_quantity DECIMAL,
single_weight DECIMAL,
total_weight DECIMAL,
product_type VARCHAR,
product_code VARCHAR,
product_name VARCHAR,
product_length DECIMAL,
product_width DECIMAL,
product_thick DECIMAL,
product_spec VARCHAR,
unit_cost DECIMAL,
total_cost DECIMAL,
tech_flow_id BIGINT,
tech_flow_name BIGINT,
invent_process_id BIGINT,
process_code VARCHAR,
process_name VARCHAR,
process_order BIGINT
-->
<sqlMap
namespace=
"HGCB005"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
id = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
account_code = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
dep_code = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
created_by = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
created_name = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
created_time = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
updated_time = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountYear"
>
account_year = #accountYear#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountMonth"
>
account_month = #accountMonth#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
company_code = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
company_name = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
proj_code = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
proj_name = #projName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"quantity"
>
quantity = #quantity#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"returnQuantity"
>
return_quantity = #returnQuantity#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"singleWeight"
>
single_weight = #singleWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"totalWeight"
>
total_weight = #totalWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productType"
>
product_type = #productType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productCode"
>
product_code = #productCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productName"
>
product_name = #productName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productLength"
>
product_length = #productLength#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productWidth"
>
product_width = #productWidth#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productThick"
>
product_thick = #productThick#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productSpec"
>
product_spec = #productSpec#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"unitCost"
>
unit_cost = #unitCost#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"totalCost"
>
total_cost = #totalCost#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"techFlowId"
>
tech_flow_id = #techFlowId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"techFlowName"
>
tech_flow_name = #techFlowName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventProcessId"
>
invent_process_id = #inventProcessId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processCode"
>
process_code = #processCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processName"
>
process_name = #processName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processOrder"
>
process_order = #processOrder#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cb.domain.HGCB005"
>
SELECT
id as "id",
account_code as "accountCode",
<!-- 企业编码 -->
dep_code as "depCode",
<!-- 部门编码 -->
created_by as "createdBy",
<!-- 记录创建者 -->
created_name as "createdName",
<!-- 记录创建名称 -->
created_time as "createdTime",
<!-- 记录创建时间 -->
updated_by as "updatedBy",
<!-- 记录修改者 -->
updated_name as "updatedName",
<!-- 记录修改名称 -->
updated_time as "updatedTime",
<!-- 记录修改时间 -->
account_year as "accountYear",
<!-- 会计期(年) -->
account_month as "accountMonth",
<!-- 会计期(月) -->
company_code as "companyCode",
<!-- 公司编码 -->
company_name as "companyName",
<!-- 公司名称 -->
proj_code as "projCode",
<!-- 项目编码 -->
proj_name as "projName",
<!-- 项目名称 -->
quantity as "quantity",
<!-- 数量 -->
return_quantity as "returnQuantity",
<!-- 退回数量 -->
single_weight as "singleWeight",
<!-- 单重 -->
total_weight as "totalWeight",
<!-- 总重 -->
product_type as "productType",
<!-- 产品类型 -->
product_code as "productCode",
<!-- 产品编码 -->
product_name as "productName",
<!-- 产品名称 -->
product_length as "productLength",
<!-- 产品-长 -->
product_width as "productWidth",
<!-- 产品-宽 -->
product_thick as "productThick",
<!-- 产品-厚 -->
product_spec as "productSpec",
<!-- 产品规格 -->
unit_cost as "unitCost",
<!-- 单位成本 -->
total_cost as "totalCost",
<!-- 总成本 -->
tech_flow_id as "techFlowId",
<!-- 工艺流程ID -->
tech_flow_name as "techFlowName",
<!-- 工艺流程名称 -->
invent_process_id as "inventProcessId",
<!-- 存货工序ID,对应HGPZ005A.id -->
process_code as "processCode",
<!-- 工序编码 -->
process_name as "processName",
<!-- 工序名称 -->
process_order as "processOrder"
<!-- 加工顺序 -->
FROM ${hggpSchema}.HGCB005 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
id asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGCB005 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
id = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
account_code = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
dep_code = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
created_by = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
created_name = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
created_time = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
updated_time = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountYear">
account_year = #accountYear#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountMonth">
account_month = #accountMonth#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
company_code = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
company_name = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
proj_name = #projName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantity">
quantity = #quantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="returnQuantity">
return_quantity = #returnQuantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="singleWeight">
single_weight = #singleWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="totalWeight">
total_weight = #totalWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productType">
product_type = #productType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productCode">
product_code = #productCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productName">
product_name = #productName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productLength">
product_length = #productLength#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productWidth">
product_width = #productWidth#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productThick">
product_thick = #productThick#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productSpec">
product_spec = #productSpec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="unitCost">
unit_cost = #unitCost#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="totalCost">
total_cost = #totalCost#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="techFlowId">
tech_flow_id = #techFlowId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="techFlowName">
tech_flow_name = #techFlowName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventProcessId">
invent_process_id = #inventProcessId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="processCode">
process_code = #processCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="processName">
process_name = #processName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="processOrder">
process_order = #processOrder#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCB005 (id,
account_code,
<!-- 企业编码 -->
dep_code,
<!-- 部门编码 -->
created_by,
<!-- 记录创建者 -->
created_name,
<!-- 记录创建名称 -->
created_time,
<!-- 记录创建时间 -->
updated_by,
<!-- 记录修改者 -->
updated_name,
<!-- 记录修改名称 -->
updated_time,
<!-- 记录修改时间 -->
account_year,
<!-- 会计期(年) -->
account_month,
<!-- 会计期(月) -->
company_code,
<!-- 公司编码 -->
company_name,
<!-- 公司名称 -->
proj_code,
<!-- 项目编码 -->
proj_name,
<!-- 项目名称 -->
quantity,
<!-- 数量 -->
return_quantity,
<!-- 退回数量 -->
single_weight,
<!-- 单重 -->
total_weight,
<!-- 总重 -->
product_type,
<!-- 产品类型 -->
product_code,
<!-- 产品编码 -->
product_name,
<!-- 产品名称 -->
product_length,
<!-- 产品-长 -->
product_width,
<!-- 产品-宽 -->
product_thick,
<!-- 产品-厚 -->
product_spec,
<!-- 产品规格 -->
unit_cost,
<!-- 单位成本 -->
total_cost,
<!-- 总成本 -->
tech_flow_id,
<!-- 工艺流程ID -->
tech_flow_name,
<!-- 工艺流程名称 -->
invent_process_id,
<!-- 存货工序ID,对应HGPZ005A.id -->
process_code,
<!-- 工序编码 -->
process_name,
<!-- 工序名称 -->
process_order
<!-- 加工顺序 -->
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #accountYear#, #accountMonth#, #companyCode#, #companyName#, #projCode#, #projName#, #quantity#, #returnQuantity#, #singleWeight#, #totalWeight#, #productType#, #productCode#, #productName#, #productLength#, #productWidth#, #productThick#, #productSpec#, #unitCost#, #totalCost#, #techFlowId#, #techFlowName#, #inventProcessId#, #processCode#, #processName#, #processOrder#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGCB005 WHERE
id = #id#
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGCB005
SET
account_code = #accountCode#,
<!-- 企业编码 -->
dep_code = #depCode#,
<!-- 部门编码 -->
created_by = #createdBy#,
<!-- 记录创建者 -->
created_name = #createdName#,
<!-- 记录创建名称 -->
created_time = #createdTime#,
<!-- 记录创建时间 -->
updated_by = #updatedBy#,
<!-- 记录修改者 -->
updated_name = #updatedName#,
<!-- 记录修改名称 -->
updated_time = #updatedTime#,
<!-- 记录修改时间 -->
account_year = #accountYear#,
<!-- 会计期(年) -->
account_month = #accountMonth#,
<!-- 会计期(月) -->
company_code = #companyCode#,
<!-- 公司编码 -->
company_name = #companyName#,
<!-- 公司名称 -->
proj_code = #projCode#,
<!-- 项目编码 -->
proj_name = #projName#,
<!-- 项目名称 -->
quantity = #quantity#,
<!-- 数量 -->
return_quantity = #returnQuantity#,
<!-- 退回数量 -->
single_weight = #singleWeight#,
<!-- 单重 -->
total_weight = #totalWeight#,
<!-- 总重 -->
product_type = #productType#,
<!-- 产品类型 -->
product_code = #productCode#,
<!-- 产品编码 -->
product_name = #productName#,
<!-- 产品名称 -->
product_length = #productLength#,
<!-- 产品-长 -->
product_width = #productWidth#,
<!-- 产品-宽 -->
product_thick = #productThick#,
<!-- 产品-厚 -->
product_spec = #productSpec#,
<!-- 产品规格 -->
unit_cost = #unitCost#,
<!-- 单位成本 -->
total_cost = #totalCost#,
<!-- 总成本 -->
tech_flow_id = #techFlowId#,
<!-- 工艺流程ID -->
tech_flow_name = #techFlowName#,
<!-- 工艺流程名称 -->
invent_process_id = #inventProcessId#,
<!-- 存货工序ID,对应HGPZ005A.id -->
process_code = #processCode#,
<!-- 工序编码 -->
process_name = #processName#,
<!-- 工序名称 -->
process_order = #processOrder#
<!-- 加工顺序 -->
WHERE
id = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cb/tools/HGCBTools.java
View file @
96de65f8
...
@@ -11,7 +11,9 @@ import com.baosight.hggp.hg.cb.domain.HGCB001;
...
@@ -11,7 +11,9 @@ import com.baosight.hggp.hg.cb.domain.HGCB001;
import
com.baosight.hggp.hg.cb.domain.HGCB002
;
import
com.baosight.hggp.hg.cb.domain.HGCB002
;
import
com.baosight.hggp.hg.cb.domain.HGCB003
;
import
com.baosight.hggp.hg.cb.domain.HGCB003
;
import
com.baosight.hggp.hg.cb.domain.HGCB004
;
import
com.baosight.hggp.hg.cb.domain.HGCB004
;
import
com.baosight.hggp.hg.cb.domain.HGCB005
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.cw.domain.HGCW001
;
import
com.baosight.hggp.hg.cw.domain.HGCW001
;
import
com.baosight.hggp.hg.cw.domain.HGCW012
;
import
com.baosight.hggp.hg.cw.domain.HGCW012
;
...
@@ -19,9 +21,11 @@ import com.baosight.hggp.hg.cw.domain.HGCW012A;
...
@@ -19,9 +21,11 @@ import com.baosight.hggp.hg.cw.domain.HGCW012A;
import
com.baosight.hggp.hg.cw.domain.HGCW013
;
import
com.baosight.hggp.hg.cw.domain.HGCW013
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.kc.domain.*
;
import
com.baosight.hggp.hg.kc.domain.*
;
import
com.baosight.hggp.hg.kc.tools.HGKCTools
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.domain.HGPZ007
;
import
com.baosight.hggp.hg.pz.domain.HGPZ007
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.sc.domain.HGSC005A
;
import
com.baosight.hggp.util.*
;
import
com.baosight.hggp.util.*
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
@@ -29,6 +33,7 @@ import com.baosight.iplat4j.core.ei.EiInfo;
...
@@ -29,6 +33,7 @@ import com.baosight.iplat4j.core.ei.EiInfo;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.MapUtils
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.math.RoundingMode
;
...
@@ -613,4 +618,77 @@ public class HGCBTools {
...
@@ -613,4 +618,77 @@ public class HGCBTools {
hgcb004
.
fromMap
(
hgcb002
.
toMap
());
hgcb004
.
fromMap
(
hgcb002
.
toMap
());
}
}
}
}
public
static
class
THGCB005
{
/**
* 同步数据
*
* @return
*/
public
static
void
synchData
()
{
HGCW001
hgcw001
=
new
HGCW001
();
//通过业务账期信息查询入库单
Map
kc003ParamMap
=
new
HashMap
();
kc003ParamMap
.
put
(
HGKC003
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
kc003ParamMap
.
put
(
HGKC003
.
FIELD_COMPANY_CODE
,
hgcw001
.
getCompanyCode
());
kc003ParamMap
.
put
(
HGKC003
.
FIELD_STORAGE_TYPE
,
HGConstant
.
StorageType
.
RK
);
kc003ParamMap
.
put
(
HGKC003
.
FIELD_IS_RETURN
,
CommonConstant
.
YesNo
.
NO_0
);
kc003ParamMap
.
put
(
HGCW001
.
FIELD_ACCOUNT_PERIOD_DATE_START
,
hgcw001
.
getAccountPeriodDateStart
());
kc003ParamMap
.
put
(
HGCW001
.
FIELD_ACCOUNT_PERIOD_DATE_END
,
hgcw001
.
getAccountPeriodDateEnd
());
List
<
HGKC003
>
hgkc003List
=
HGKCTools
.
HgKc003
.
list
(
kc003ParamMap
);
//入库单按项目编码、产品编码、存货工序ID、规格、单重分组,分别取正向入库单数量、重量和退回数量
//生成制造成本基础数据
List
<
HGCB005
>
hgcb005List
=
constractHGCB005
(
hgcw001
,
hgkc003List
);
//通过存货工序ID查询工序权重
List
<
Long
>
processIds
=
Optional
.
ofNullable
(
hgcb005List
).
orElse
(
new
ArrayList
<>()).
stream
().
map
(
HGCB005:
:
getInventProcessId
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
processIds
)){
List
<
HGPZ005
>
hgpz005List
=
HGPZTools
.
HgPz005
.
getIds
(
processIds
);
Map
<
Long
,
HGPZ005
>
hgpz005Map
=
Optional
.
ofNullable
(
hgpz005List
).
orElse
(
new
ArrayList
<>()).
stream
().
collect
(
Collectors
.
toMap
(
HGPZ005:
:
getId
,
o
->
o
,
(
o1
,
o2
)->
o1
));
}
//通过业务账期信息查询类型为分摊的费用归集数据,按项目分组金额求和
//计算成本:入库重量*工序权重=产副品权重,SUM(产副品权重)=项目权重,产副品权重/项目权重*总费用=产副品制造总成本
}
}
private
static
List
<
HGCB005
>
constractHGCB005
(
HGCW001
hgcw001
,
List
<
HGKC003
>
hgkc003List
){
List
<
HGCB005
>
hgcb005List
=
Optional
.
ofNullable
(
hgkc003List
).
orElse
(
new
ArrayList
<>()).
stream
().
collect
(
Collectors
.
toMap
(
o
->
o
.
getProjCode
()+
"-"
+
o
.
getPrdtCode
()+
"-"
+
o
.
getInventProcessId
()+
"-"
+
o
.
getPrdtSpec
()+
"-"
+
o
.
getInvUnitWeight
(),
o
->
o
,(
v1
,
v2
)->{
HGKC003
kc003
=
new
HGKC003
();
BeanUtils
.
copyProperties
(
v1
,
kc003
);
kc003
.
setInvQty
(
v1
.
getInvQty
().
add
(
v2
.
getInvQty
()));
kc003
.
setInvWeight
(
v1
.
getInvWeight
().
add
(
v2
.
getInvWeight
()));
return
kc003
;
}
)).
values
().
stream
().
map
(
o
->
{
HGCB005
cb005
=
new
HGCB005
();
cb005
.
setAccountYear
(
hgcw001
.
getAccountYear
());
cb005
.
setAccountMonth
(
hgcw001
.
getAccountPeriod
().
substring
(
4
));
cb005
.
setCompanyCode
(
hgcw001
.
getCompanyCode
());
cb005
.
setCompanyName
(
hgcw001
.
getCompanyName
());
cb005
.
setProductCode
(
o
.
getPrdtCode
());
cb005
.
setProductName
(
o
.
getPrdtName
());
cb005
.
setTechFlowId
(
o
.
getTechFlowId
());
cb005
.
setTechFlowName
(
o
.
getTechFlowName
());
cb005
.
setInventProcessId
(
o
.
getInventProcessId
());
cb005
.
setProcessCode
(
o
.
getProcessCode
());
cb005
.
setProcessName
(
o
.
getProcessName
());
cb005
.
setProcessOrder
(
o
.
getProcessOrder
());
cb005
.
setProductLength
(
o
.
getPrdtLength
());
cb005
.
setProductWidth
(
o
.
getPrdtWidth
());
cb005
.
setProductThick
(
o
.
getPrdtThick
());
cb005
.
setProductSpec
(
o
.
getPrdtSpec
());
cb005
.
setSingleWeight
(
o
.
getInvUnitWeight
());
cb005
.
setQuantity
(
o
.
getInvQty
());
cb005
.
setTotalWeight
(
o
.
getInvWeight
());
return
cb005
;
}).
collect
(
Collectors
.
toList
());
return
hgcb005List
;
}
}
}
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC003.xml
View file @
96de65f8
...
@@ -157,6 +157,12 @@
...
@@ -157,6 +157,12 @@
<isNotEmpty
prepend=
" AND "
property=
"processOrder"
>
<isNotEmpty
prepend=
" AND "
property=
"processOrder"
>
PROCESS_ORDER = #processOrder#
PROCESS_ORDER = #processOrder#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountPeriodDateStart"
>
<![CDATA[ DEPOSIT_DATE >= #accountPeriodDateStart# ]]>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountPeriodDateEnd"
>
<![CDATA[ DEPOSIT_DATE <= #accountPeriodDateEnd# ]]>
</isNotEmpty>
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
...
...
src/main/java/com/baosight/hggp/hg/kc/tools/HGKCTools.java
View file @
96de65f8
...
@@ -387,6 +387,16 @@ public class HGKCTools {
...
@@ -387,6 +387,16 @@ public class HGKCTools {
AssertUtils
.
isEmpty
(
paramMap
,
"时间不能为空"
);
AssertUtils
.
isEmpty
(
paramMap
,
"时间不能为空"
);
return
DaoBase
.
getInstance
().
query
(
"HGKC003.queryCheckList"
,
paramMap
);
return
DaoBase
.
getInstance
().
query
(
"HGKC003.queryCheckList"
,
paramMap
);
}
}
/**
* 查询
* 成本核算数据检查
* @param paramMap
* @return
*/
public
static
List
<
HGKC003
>
list
(
Map
paramMap
)
{
return
DaoBase
.
getInstance
().
query
(
HGKC003
.
QUERY
,
paramMap
);
}
}
}
/**
/**
...
...
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