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
ef56de18
Commit
ef56de18
authored
May 15, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.质量
parent
fa7f83d3
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
865 additions
and
1629 deletions
+865
-1629
HGZL001.java
src/main/java/com/baosight/hggp/hg/zl/domain/HGZL001.java
+541
-464
HPZL001A.java
src/main/java/com/baosight/hggp/hg/zl/domain/HPZL001A.java
+0
-421
ServiceHGZL001.java
.../java/com/baosight/hggp/hg/zl/service/ServiceHGZL001.java
+36
-36
ServiceHPZL001A.java
...java/com/baosight/hggp/hg/zl/service/ServiceHPZL001A.java
+0
-129
ServiceHPZL001B.java
...java/com/baosight/hggp/hg/zl/service/ServiceHPZL001B.java
+0
-129
HGZL001.xml
src/main/java/com/baosight/hggp/hg/zl/sql/HGZL001.xml
+286
-0
HPZL001.xml
src/main/java/com/baosight/hggp/hg/zl/sql/HPZL001.xml
+0
-229
HPZL001A.xml
src/main/java/com/baosight/hggp/hg/zl/sql/HPZL001A.xml
+0
-174
HPZLTools.java
src/main/java/com/baosight/hggp/hg/zl/tools/HPZLTools.java
+0
-47
sqlmap-config.xml
src/main/resources/resources/ibatis/sqlmap-config.xml
+2
-0
No files found.
src/main/java/com/baosight/hggp/hg/zl/domain/H
P
ZL001.java
→
src/main/java/com/baosight/hggp/hg/zl/domain/H
G
ZL001.java
View file @
ef56de18
package
com
.
baosight
.
hggp
.
hg
.
zl
.
domain
;
package
com
.
baosight
.
hggp
.
hg
.
zl
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
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.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
/**
* Project: <br>
* Project: <br>
* Title:
THp
zl001.java <br>
* Title:
Hg
zl001.java <br>
* Description: <br>
* Description: <br>
*
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
*
* @version 1.0
* @version 1.0
* @history 2024-0
2-05 16:53:35
create
* @history 2024-0
5-15 16:04:54
create
*/
*/
public
class
H
P
ZL001
extends
DaoEPBase
{
public
class
H
G
ZL001
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_ID
=
"id"
;
public
static
final
String
FIELD_
COMPANY_CODE
=
"companyCode"
;
/* 企业编码 预留
*/
public
static
final
String
FIELD_
ACCOUNT_CODE
=
"accountCode"
;
/* 企业编码
*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 记录修改者*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 记录修改名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 记录修改时间*/
public
static
final
String
FIELD_DELETE_FLAG
=
"deleteFlag"
;
/* 0-未删除,1-已删除*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 公司编码*/
public
static
final
String
FIELD_COMPANY_NAME
=
"companyName"
;
/* 公司名称*/
public
static
final
String
FIELD_RECEIPT_DATE
=
"receiptDate"
;
/* 单据日期*/
public
static
final
String
FIELD_RECEIPT_DATE
=
"receiptDate"
;
/* 单据日期*/
public
static
final
String
FIELD_CHECK_NO
=
"checkNo"
;
/* 检查单号*/
public
static
final
String
FIELD_CHECK_NO
=
"checkNo"
;
/* 检查单号*/
public
static
final
String
FIELD_PROD_ORDER_NO
=
"prodOrderNo"
;
/* 生产订单号*/
public
static
final
String
FIELD_RECEIVE_NO
=
"receiveNo"
;
/* 收货单号*/
public
static
final
String
FIELD_PROD_TASK_NO
=
"prodTaskNo"
;
/* 生产任务号*/
public
static
final
String
FIELD_INVENT_TYPE
=
"inventType"
;
/* 存货类型*/
public
static
final
String
FIELD_PROJ_CODE
=
"projCode"
;
/* 项目号*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 存货编码*/
public
static
final
String
FIELD_PROJ_NAME
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 存货名称*/
public
static
final
String
FIELD_INVENT_CODE
=
"inventCode"
;
/* 部件编码*/
public
static
final
String
FIELD_SPEC_ID
=
"specId"
;
/* 规格ID*/
public
static
final
String
FIELD_INVENT_NAME
=
"inventName"
;
/* 部件名称*/
public
static
final
String
FIELD_SPEC
=
"spec"
;
/* 规格*/
public
static
final
String
FIELD_SUB_INVENT_CODE
=
"subInventCode"
;
/* 零件编码*/
public
static
final
String
FIELD_MATERIAL
=
"material"
;
/* 材质*/
public
static
final
String
FIELD_SUB_INVENT_NAME
=
"subInventName"
;
/* 零件名称*/
public
static
final
String
FIELD_UNIT
=
"unit"
;
/* 单位*/
public
static
final
String
FIELD_ORG_NO
=
"orgNo"
;
/* 生产组编码*/
public
static
final
String
FIELD_LENGTH
=
"length"
;
/* 长度*/
public
static
final
String
FIELD_ORG_NAME
=
"orgName"
;
/* 生产组名称*/
public
static
final
String
FIELD_WIDTH
=
"width"
;
/* 宽度*/
public
static
final
String
FIELD_POOR_TYPE
=
"poorType"
;
/* 不良品类*/
public
static
final
String
FIELD_THICK
=
"thick"
;
/* 厚度*/
public
static
final
String
FIELD_PROBLEM_DESC
=
"problemDesc"
;
/* 质量问题描述*/
public
static
final
String
FIELD_RECEIVE_QTY
=
"receiveQty"
;
/* 收货数量*/
public
static
final
String
FIELD_CHECK_USER
=
"checkUser"
;
/* 检查人*/
public
static
final
String
FIELD_DELIVER_QTY
=
"deliverQty"
;
/* 退货数量*/
public
static
final
String
FIELD_CHECK_USER_NAME
=
"checkUserName"
;
/* 检查人名称*/
public
static
final
String
FIELD_DEPOSIT_QTY
=
"depositQty"
;
/* 入库数量*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 单据状态 0未处理 1已处理*/
public
static
final
String
FIELD_RECEIVE_UNIT_WEIGHT
=
"receiveUnitWeight"
;
/* 收货单重*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 创建人*/
public
static
final
String
FIELD_RECEIVE_WEIGHT
=
"receiveWeight"
;
/* 收货重量*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 创建人名称*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 状态:0-质检中,1-质检完成*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 更新人*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 更新人名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 更新时间*/
public
static
final
String
FIELD_DELETE_FLAG
=
"deleteFlag"
;
/* 是否删除*/
public
static
final
String
FIELD_FACTORY_CODE
=
"factoryCode"
;
/* 厂区编码*/
public
static
final
String
FIELD_FACTORY_NAME
=
"factoryName"
;
/* 工厂*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_
COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码 预留
*/
public
static
final
String
COL_
ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码
*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 记录修改者*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 记录修改名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 记录修改时间*/
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 0-未删除,1-已删除*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 公司编码*/
public
static
final
String
COL_COMPANY_NAME
=
"COMPANY_NAME"
;
/* 公司名称*/
public
static
final
String
COL_RECEIPT_DATE
=
"RECEIPT_DATE"
;
/* 单据日期*/
public
static
final
String
COL_RECEIPT_DATE
=
"RECEIPT_DATE"
;
/* 单据日期*/
public
static
final
String
COL_CHECK_NO
=
"CHECK_NO"
;
/* 检查单号*/
public
static
final
String
COL_CHECK_NO
=
"CHECK_NO"
;
/* 检查单号*/
public
static
final
String
COL_PROD_ORDER_NO
=
"PROD_ORDER_NO"
;
/* 生产订单号*/
public
static
final
String
COL_RECEIVE_NO
=
"RECEIVE_NO"
;
/* 收货单号*/
public
static
final
String
COL_PROD_TASK_NO
=
"PROD_TASK_NO"
;
/* 生产任务号*/
public
static
final
String
COL_INVENT_TYPE
=
"INVENT_TYPE"
;
/* 存货类型*/
public
static
final
String
COL_PROJ_CODE
=
"PROJ_CODE"
;
/* 项目号*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 存货编码*/
public
static
final
String
COL_PROJ_NAME
=
"PROJ_NAME"
;
/* 项目名称*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 存货名称*/
public
static
final
String
COL_INVENT_CODE
=
"INVENT_CODE"
;
/* 部件编码*/
public
static
final
String
COL_SPEC_ID
=
"SPEC_ID"
;
/* 规格ID*/
public
static
final
String
COL_INVENT_NAME
=
"INVENT_NAME"
;
/* 部件名称*/
public
static
final
String
COL_SPEC
=
"SPEC"
;
/* 规格*/
public
static
final
String
COL_SUB_INVENT_CODE
=
"SUB_INVENT_CODE"
;
/* 零件编码*/
public
static
final
String
COL_MATERIAL
=
"MATERIAL"
;
/* 材质*/
public
static
final
String
COL_SUB_INVENT_NAME
=
"SUB_INVENT_NAME"
;
/* 零件名称*/
public
static
final
String
COL_UNIT
=
"UNIT"
;
/* 单位*/
public
static
final
String
COL_ORG_NO
=
"ORG_NO"
;
/* 生产组编码*/
public
static
final
String
COL_LENGTH
=
"LENGTH"
;
/* 长度*/
public
static
final
String
COL_ORG_NAME
=
"ORG_NAME"
;
/* 生产组名称*/
public
static
final
String
COL_WIDTH
=
"WIDTH"
;
/* 宽度*/
public
static
final
String
COL_POOR_TYPE
=
"POOR_TYPE"
;
/* 不良品类*/
public
static
final
String
COL_THICK
=
"THICK"
;
/* 厚度*/
public
static
final
String
COL_PROBLEM_DESC
=
"PROBLEM_DESC"
;
/* 质量问题描述*/
public
static
final
String
COL_RECEIVE_QTY
=
"RECEIVE_QTY"
;
/* 收货数量*/
public
static
final
String
COL_CHECK_USER
=
"CHECK_USER"
;
/* 检查人*/
public
static
final
String
COL_DELIVER_QTY
=
"DELIVER_QTY"
;
/* 退货数量*/
public
static
final
String
COL_CHECK_USER_NAME
=
"CHECK_USER_NAME"
;
/* 检查人名称*/
public
static
final
String
COL_DEPOSIT_QTY
=
"DEPOSIT_QTY"
;
/* 入库数量*/
public
static
final
String
COL_STATUS
=
"STATUS"
;
/* 单据状态 0未处理 1已处理*/
public
static
final
String
COL_RECEIVE_UNIT_WEIGHT
=
"RECEIVE_UNIT_WEIGHT"
;
/* 收货单重*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 创建人*/
public
static
final
String
COL_RECEIVE_WEIGHT
=
"RECEIVE_WEIGHT"
;
/* 收货重量*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 创建人名称*/
public
static
final
String
COL_STATUS
=
"STATUS"
;
/* 状态:0-质检中,1-质检完成*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 更新人*/
public
static
final
String
QUERY
=
"HGZL001.query"
;
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 更新人名称*/
public
static
final
String
COUNT
=
"HGZL001.count"
;
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 更新时间*/
public
static
final
String
INSERT
=
"HGZL001.insert"
;
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 是否删除*/
public
static
final
String
UPDATE
=
"HGZL001.update"
;
public
static
final
String
COL_FACTORY_CODE
=
"FACTORY_CODE"
;
/* 厂区编码*/
public
static
final
String
DELETE
=
"HGZL001.delete"
;
public
static
final
String
COL_FACTORY_NAME
=
"FACTORY_NAME"
;
/* 工厂*/
private
Long
id
=
new
Long
(
0
);
public
static
final
String
QUERY
=
"HPZL001.query"
;
private
String
accountCode
=
" "
;
/* 企业编码*/
public
static
final
String
COUNT
=
"HPZL001.count"
;
public
static
final
String
INSERT
=
"HPZL001.insert"
;
public
static
final
String
UPDATE
=
"HPZL001.update"
;
public
static
final
String
DELETE
=
"HPZL001.delete"
;
private
Long
id
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
Integer
deleteFlag
;
/* 0-未删除,1-已删除*/
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
receiptDate
=
" "
;
/* 单据日期*/
private
String
receiptDate
=
" "
;
/* 单据日期*/
private
String
checkNo
=
" "
;
/* 检查单号*/
private
String
checkNo
=
" "
;
/* 检查单号*/
private
String
prodOrderNo
=
" "
;
/* 生产订单号*/
private
String
receiveNo
=
" "
;
/* 收货单号*/
private
String
prodTaskNo
=
" "
;
/* 生产任务号*/
private
String
inventType
=
" "
;
/* 存货类型*/
private
String
projCode
=
" "
;
/* 项目号*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
String
inventCode
=
" "
;
/* 部件编码*/
private
Long
specId
=
new
Long
(
0
);
/* 规格ID*/
private
String
inventName
=
" "
;
/* 部件名称*/
private
String
spec
=
" "
;
/* 规格*/
private
String
subInventCode
=
" "
;
/* 零件编码*/
private
String
material
=
" "
;
/* 材质*/
private
String
subInventName
=
" "
;
/* 零件名称*/
private
String
unit
=
" "
;
/* 单位*/
private
String
orgNo
=
" "
;
/* 生产组编码*/
private
BigDecimal
length
=
new
BigDecimal
(
0.000
);
/* 长度*/
private
String
orgName
=
" "
;
/* 生产组名称*/
private
BigDecimal
width
=
new
BigDecimal
(
0.000
);
/* 宽度*/
private
Integer
poorType
;
/* 不良品类*/
private
BigDecimal
thick
=
new
BigDecimal
(
0.000
);
/* 厚度*/
private
String
problemDesc
=
" "
;
/* 质量问题描述*/
private
BigDecimal
receiveQty
=
new
BigDecimal
(
0.000
);
/* 收货数量*/
private
String
checkUser
=
" "
;
/* 检查人*/
private
BigDecimal
deliverQty
=
new
BigDecimal
(
0.000
);
/* 退货数量*/
private
String
checkUserName
=
" "
;
/* 检查人名称*/
private
BigDecimal
depositQty
=
new
BigDecimal
(
0.000
);
/* 入库数量*/
private
Integer
status
;
/* 单据状态 0未处理 1已处理*/
private
BigDecimal
receiveUnitWeight
=
new
BigDecimal
(
0.000
);
/* 收货单重*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
BigDecimal
receiveWeight
=
new
BigDecimal
(
0.000
);
/* 收货重量*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
Integer
status
;
/* 状态:0-质检中,1-质检完成*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedName
=
" "
;
/* 更新人名称*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
Integer
deleteFlag
;
/* 是否删除*/
private
String
factoryCode
=
" "
;
/* 厂区编码*/
private
String
factoryName
=
" "
;
/* 工厂*/
/**
/**
* initialize the metadata.
* initialize the metadata.
*/
*/
public
void
initMetaData
()
{
public
void
initMetaData
()
{
EiColumn
eiColumn
;
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
COMPANY
_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_
ACCOUNT
_CODE
);
eiColumn
.
setDescName
(
"企业编码
预留
"
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_CODE
);
eiColumn
.
setDescName
(
"部门编码"
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
RECEIPT_DATE
);
eiColumn
=
new
EiColumn
(
FIELD_
CREATED_BY
);
eiColumn
.
setDescName
(
"
单据日期
"
);
eiColumn
.
setDescName
(
"
记录创建者
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_C
HECK_NO
);
eiColumn
=
new
EiColumn
(
FIELD_C
REATED_NAME
);
eiColumn
.
setDescName
(
"
检查单号
"
);
eiColumn
.
setDescName
(
"
记录创建名称
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
PROD_ORDER_NO
);
eiColumn
=
new
EiColumn
(
FIELD_
CREATED_TIME
);
eiColumn
.
setDescName
(
"
生产订单号
"
);
eiColumn
.
setDescName
(
"
记录创建时间
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
PROD_TASK_NO
);
eiColumn
=
new
EiColumn
(
FIELD_
UPDATED_BY
);
eiColumn
.
setDescName
(
"
生产任务号
"
);
eiColumn
.
setDescName
(
"
记录修改者
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
PROJ_COD
E
);
eiColumn
=
new
EiColumn
(
FIELD_
UPDATED_NAM
E
);
eiColumn
.
setDescName
(
"
项目号
"
);
eiColumn
.
setDescName
(
"
记录修改名称
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
PROJ_NA
ME
);
eiColumn
=
new
EiColumn
(
FIELD_
UPDATED_TI
ME
);
eiColumn
.
setDescName
(
"
项目名称
"
);
eiColumn
.
setDescName
(
"
记录修改时间
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
INVENT_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_
DELETE_FLAG
);
eiColumn
.
setDescName
(
"
部件编码
"
);
eiColumn
.
setDescName
(
"
0-未删除,1-已删除
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
INVENT_NAM
E
);
eiColumn
=
new
EiColumn
(
FIELD_
COMPANY_COD
E
);
eiColumn
.
setDescName
(
"
部件名称
"
);
eiColumn
.
setDescName
(
"
公司编码
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
SUB_INVENT_COD
E
);
eiColumn
=
new
EiColumn
(
FIELD_
COMPANY_NAM
E
);
eiColumn
.
setDescName
(
"
零件编码
"
);
eiColumn
.
setDescName
(
"
公司名称
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
SUB_INVENT_NAM
E
);
eiColumn
=
new
EiColumn
(
FIELD_
RECEIPT_DAT
E
);
eiColumn
.
setDescName
(
"
零件名称
"
);
eiColumn
.
setDescName
(
"
单据日期
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
ORG
_NO
);
eiColumn
=
new
EiColumn
(
FIELD_
CHECK
_NO
);
eiColumn
.
setDescName
(
"
生产组编码
"
);
eiColumn
.
setDescName
(
"
检查单号
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
ORG_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_
RECEIVE_NO
);
eiColumn
.
setDescName
(
"
生产组名称
"
);
eiColumn
.
setDescName
(
"
收货单号
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
POOR
_TYPE
);
eiColumn
=
new
EiColumn
(
FIELD_
INVENT
_TYPE
);
eiColumn
.
setDescName
(
"
不良品类
"
);
eiColumn
.
setDescName
(
"
存货类型
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
PROBLEM_DESC
);
eiColumn
=
new
EiColumn
(
FIELD_
INVENT_CODE
);
eiColumn
.
setDescName
(
"
质量问题描述
"
);
eiColumn
.
setDescName
(
"
存货编码
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
CHECK_USER
);
eiColumn
=
new
EiColumn
(
FIELD_
INVENT_NAME
);
eiColumn
.
setDescName
(
"
检查人
"
);
eiColumn
.
setDescName
(
"
存货名称
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
CHECK_USER_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_
SPEC_ID
);
eiColumn
.
setDescName
(
"
检查人名称
"
);
eiColumn
.
setDescName
(
"
规格ID
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_S
TATUS
);
eiColumn
=
new
EiColumn
(
FIELD_S
PEC
);
eiColumn
.
setDescName
(
"
单据状态 0未处理 1已处理
"
);
eiColumn
.
setDescName
(
"
规格
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
CREATED_BY
);
eiColumn
=
new
EiColumn
(
FIELD_
MATERIAL
);
eiColumn
.
setDescName
(
"
创建人
"
);
eiColumn
.
setDescName
(
"
材质
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_
CREATED_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_
UNIT
);
eiColumn
.
setDescName
(
"
创建人名称
"
);
eiColumn
.
setDescName
(
"
单位
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
=
new
EiColumn
(
FIELD_LENGTH
);
eiColumn
.
setDescName
(
"创建时间"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"长度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
=
new
EiColumn
(
FIELD_WIDTH
);
eiColumn
.
setDescName
(
"更新人"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"宽度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_THICK
);
eiColumn
.
setDescName
(
"更新人名称"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"厚度"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_QTY
);
eiColumn
.
setDescName
(
"更新时间"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DELETE_FLAG
);
eiColumn
=
new
EiColumn
(
FIELD_DELIVER_QTY
);
eiColumn
.
setDescName
(
"是否删除"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"退货数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_FACTORY_CODE
);
eiColumn
=
new
EiColumn
(
FIELD_DEPOSIT_QTY
);
eiColumn
.
setDescName
(
"厂区编码"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"入库数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_FACTORY_NAME
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_UNIT_WEIGHT
);
eiColumn
.
setDescName
(
"工厂"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货单重"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_RECEIVE_WEIGHT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"收货重量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
.
setDescName
(
"状态:0-质检中,1-质检完成"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
/**
/**
* the constructor.
* the constructor.
*/
*/
public
H
P
ZL001
()
{
public
H
G
ZL001
()
{
initMetaData
();
initMetaData
();
}
}
/**
/**
* get the id .
* get the id .
* @return the id
* @return the id
...
@@ -257,7 +297,7 @@ public class HPZL001 extends DaoEPBase {
...
@@ -257,7 +297,7 @@ public class HPZL001 extends DaoEPBase {
public
Long
getId
()
{
public
Long
getId
()
{
return
this
.
id
;
return
this
.
id
;
}
}
/**
/**
* set the id .
* set the id .
*
*
...
@@ -267,20 +307,20 @@ public class HPZL001 extends DaoEPBase {
...
@@ -267,20 +307,20 @@ public class HPZL001 extends DaoEPBase {
this
.
id
=
id
;
this
.
id
=
id
;
}
}
/**
/**
* get the
companyCode - 企业编码 预留
.
* get the
accountCode - 企业编码
.
* @return the
company
Code
* @return the
account
Code
*/
*/
public
String
get
Company
Code
()
{
public
String
get
Account
Code
()
{
return
this
.
company
Code
;
return
this
.
account
Code
;
}
}
/**
/**
* set the
companyCode - 企业编码 预留
.
* set the
accountCode - 企业编码
.
*
*
* @param
companyCode - 企业编码 预留
* @param
accountCode - 企业编码
*/
*/
public
void
set
CompanyCode
(
String
company
Code
)
{
public
void
set
AccountCode
(
String
account
Code
)
{
this
.
companyCode
=
company
Code
;
this
.
accountCode
=
account
Code
;
}
}
/**
/**
* get the depCode - 部门编码.
* get the depCode - 部门编码.
...
@@ -289,7 +329,7 @@ public class HPZL001 extends DaoEPBase {
...
@@ -289,7 +329,7 @@ public class HPZL001 extends DaoEPBase {
public
String
getDepCode
()
{
public
String
getDepCode
()
{
return
this
.
depCode
;
return
this
.
depCode
;
}
}
/**
/**
* set the depCode - 部门编码.
* set the depCode - 部门编码.
*
*
...
@@ -299,420 +339,452 @@ public class HPZL001 extends DaoEPBase {
...
@@ -299,420 +339,452 @@ public class HPZL001 extends DaoEPBase {
this
.
depCode
=
depCode
;
this
.
depCode
=
depCode
;
}
}
/**
/**
* get the
receiptDate - 单据日期
.
* get the
createdBy - 记录创建者
.
* @return the
receiptDate
* @return the
createdBy
*/
*/
public
String
get
ReceiptDate
()
{
public
String
get
CreatedBy
()
{
return
this
.
receiptDate
;
return
this
.
createdBy
;
}
}
/**
/**
* set the
receiptDate - 单据日期
.
* set the
createdBy - 记录创建者
.
*
*
* @param
receiptDate - 单据日期
* @param
createdBy - 记录创建者
*/
*/
public
void
set
ReceiptDate
(
String
receiptDate
)
{
public
void
set
CreatedBy
(
String
createdBy
)
{
this
.
receiptDate
=
receiptDate
;
this
.
createdBy
=
createdBy
;
}
}
/**
/**
* get the c
heckNo - 检查单号
.
* get the c
reatedName - 记录创建名称
.
* @return the c
heckNo
* @return the c
reatedName
*/
*/
public
String
getC
heckNo
()
{
public
String
getC
reatedName
()
{
return
this
.
c
heckNo
;
return
this
.
c
reatedName
;
}
}
/**
/**
* set the c
heckNo - 检查单号
.
* set the c
reatedName - 记录创建名称
.
*
*
* @param c
heckNo - 检查单号
* @param c
reatedName - 记录创建名称
*/
*/
public
void
setC
heckNo
(
String
checkNo
)
{
public
void
setC
reatedName
(
String
createdName
)
{
this
.
c
heckNo
=
checkNo
;
this
.
c
reatedName
=
createdName
;
}
}
/**
/**
* get the
prodOrderNo - 生产订单号
.
* get the
createdTime - 记录创建时间
.
* @return the
prodOrderNo
* @return the
createdTime
*/
*/
public
String
get
ProdOrderNo
()
{
public
String
get
CreatedTime
()
{
return
this
.
prodOrderNo
;
return
this
.
createdTime
;
}
}
/**
/**
* set the
prodOrderNo - 生产订单号
.
* set the
createdTime - 记录创建时间
.
*
*
* @param
prodOrderNo - 生产订单号
* @param
createdTime - 记录创建时间
*/
*/
public
void
set
ProdOrderNo
(
String
prodOrderNo
)
{
public
void
set
CreatedTime
(
String
createdTime
)
{
this
.
prodOrderNo
=
prodOrderNo
;
this
.
createdTime
=
createdTime
;
}
}
/**
/**
* get the
prodTaskNo - 生产任务号
.
* get the
updatedBy - 记录修改者
.
* @return the
prodTaskNo
* @return the
updatedBy
*/
*/
public
String
get
ProdTaskNo
()
{
public
String
get
UpdatedBy
()
{
return
this
.
prodTaskNo
;
return
this
.
updatedBy
;
}
}
/**
/**
* set the
prodTaskNo - 生产任务号
.
* set the
updatedBy - 记录修改者
.
*
*
* @param
prodTaskNo - 生产任务号
* @param
updatedBy - 记录修改者
*/
*/
public
void
set
ProdTaskNo
(
String
prodTaskNo
)
{
public
void
set
UpdatedBy
(
String
updatedBy
)
{
this
.
prodTaskNo
=
prodTaskNo
;
this
.
updatedBy
=
updatedBy
;
}
}
/**
/**
* get the
projCode - 项目号
.
* get the
updatedName - 记录修改名称
.
* @return the
projCod
e
* @return the
updatedNam
e
*/
*/
public
String
get
ProjCod
e
()
{
public
String
get
UpdatedNam
e
()
{
return
this
.
projCod
e
;
return
this
.
updatedNam
e
;
}
}
/**
/**
* set the
projCode - 项目号
.
* set the
updatedName - 记录修改名称
.
*
*
* @param
projCode - 项目号
* @param
updatedName - 记录修改名称
*/
*/
public
void
set
ProjCode
(
String
projCod
e
)
{
public
void
set
UpdatedName
(
String
updatedNam
e
)
{
this
.
projCode
=
projCod
e
;
this
.
updatedName
=
updatedNam
e
;
}
}
/**
/**
* get the
projName - 项目名称
.
* get the
updatedTime - 记录修改时间
.
* @return the
projNa
me
* @return the
updatedTi
me
*/
*/
public
String
get
ProjNa
me
()
{
public
String
get
UpdatedTi
me
()
{
return
this
.
projNa
me
;
return
this
.
updatedTi
me
;
}
}
/**
/**
* set the
projName - 项目名称
.
* set the
updatedTime - 记录修改时间
.
*
*
* @param
projName - 项目名称
* @param
updatedTime - 记录修改时间
*/
*/
public
void
set
ProjName
(
String
projNa
me
)
{
public
void
set
UpdatedTime
(
String
updatedTi
me
)
{
this
.
projName
=
projNa
me
;
this
.
updatedTime
=
updatedTi
me
;
}
}
/**
/**
* get the
inventCode - 部件编码
.
* get the
deleteFlag - 0-未删除,1-已删除
.
* @return the
inventCode
* @return the
deleteFlag
*/
*/
public
String
getInventCode
()
{
public
Integer
getDeleteFlag
()
{
return
this
.
inventCode
;
return
this
.
deleteFlag
;
}
}
/**
/**
* set the
inventCode - 部件编码
.
* set the
deleteFlag - 0-未删除,1-已删除
.
*
*
* @param
inventCode - 部件编码
* @param
deleteFlag - 0-未删除,1-已删除
*/
*/
public
void
set
InventCode
(
String
inventCode
)
{
public
void
set
DeleteFlag
(
Integer
deleteFlag
)
{
this
.
inventCode
=
inventCode
;
this
.
deleteFlag
=
deleteFlag
;
}
}
/**
/**
* get the
inventName - 部件名称
.
* get the
companyCode - 公司编码
.
* @return the
inventNam
e
* @return the
companyCod
e
*/
*/
public
String
get
InventNam
e
()
{
public
String
get
CompanyCod
e
()
{
return
this
.
inventNam
e
;
return
this
.
companyCod
e
;
}
}
/**
/**
* set the
inventName - 部件名称
.
* set the
companyCode - 公司编码
.
*
*
* @param
inventName - 部件名称
* @param
companyCode - 公司编码
*/
*/
public
void
set
InventName
(
String
inventNam
e
)
{
public
void
set
CompanyCode
(
String
companyCod
e
)
{
this
.
inventName
=
inventNam
e
;
this
.
companyCode
=
companyCod
e
;
}
}
/**
/**
* get the
subInventCode - 零件编码
.
* get the
companyName - 公司名称
.
* @return the
subInventCod
e
* @return the
companyNam
e
*/
*/
public
String
get
SubInventCod
e
()
{
public
String
get
CompanyNam
e
()
{
return
this
.
subInventCod
e
;
return
this
.
companyNam
e
;
}
}
/**
/**
* set the
subInventCode - 零件编码
.
* set the
companyName - 公司名称
.
*
*
* @param
subInventCode - 零件编码
* @param
companyName - 公司名称
*/
*/
public
void
set
SubInventCode
(
String
subInventCod
e
)
{
public
void
set
CompanyName
(
String
companyNam
e
)
{
this
.
subInventCode
=
subInventCod
e
;
this
.
companyName
=
companyNam
e
;
}
}
/**
/**
* get the
subInventName - 零件名称
.
* get the
receiptDate - 单据日期
.
* @return the
subInventNam
e
* @return the
receiptDat
e
*/
*/
public
String
get
SubInventNam
e
()
{
public
String
get
ReceiptDat
e
()
{
return
this
.
subInventNam
e
;
return
this
.
receiptDat
e
;
}
}
/**
/**
* set the
subInventName - 零件名称
.
* set the
receiptDate - 单据日期
.
*
*
* @param
subInventName - 零件名称
* @param
receiptDate - 单据日期
*/
*/
public
void
set
SubInventName
(
String
subInventNam
e
)
{
public
void
set
ReceiptDate
(
String
receiptDat
e
)
{
this
.
subInventName
=
subInventNam
e
;
this
.
receiptDate
=
receiptDat
e
;
}
}
/**
/**
* get the
orgNo - 生产组编码
.
* get the
checkNo - 检查单号
.
* @return the
org
No
* @return the
check
No
*/
*/
public
String
get
Org
No
()
{
public
String
get
Check
No
()
{
return
this
.
org
No
;
return
this
.
check
No
;
}
}
/**
/**
* set the
orgNo - 生产组编码
.
* set the
checkNo - 检查单号
.
*
*
* @param
orgNo - 生产组编码
* @param
checkNo - 检查单号
*/
*/
public
void
set
OrgNo
(
String
org
No
)
{
public
void
set
CheckNo
(
String
check
No
)
{
this
.
orgNo
=
org
No
;
this
.
checkNo
=
check
No
;
}
}
/**
/**
* get the
orgName - 生产组名称
.
* get the
receiveNo - 收货单号
.
* @return the
orgName
* @return the
receiveNo
*/
*/
public
String
get
OrgName
()
{
public
String
get
ReceiveNo
()
{
return
this
.
orgName
;
return
this
.
receiveNo
;
}
}
/**
/**
* set the
orgName - 生产组名称
.
* set the
receiveNo - 收货单号
.
*
*
* @param
orgName - 生产组名称
* @param
receiveNo - 收货单号
*/
*/
public
void
set
OrgName
(
String
orgName
)
{
public
void
set
ReceiveNo
(
String
receiveNo
)
{
this
.
orgName
=
orgName
;
this
.
receiveNo
=
receiveNo
;
}
}
/**
/**
* get the
poorType - 不良品类
.
* get the
inventType - 存货类型
.
* @return the
poor
Type
* @return the
invent
Type
*/
*/
public
Integer
getPoor
Type
()
{
public
String
getInvent
Type
()
{
return
this
.
poor
Type
;
return
this
.
invent
Type
;
}
}
/**
/**
* set the
poorType - 不良品类
.
* set the
inventType - 存货类型
.
*
*
* @param
poorType - 不良品类
* @param
inventType - 存货类型
*/
*/
public
void
set
PoorType
(
Integer
poor
Type
)
{
public
void
set
InventType
(
String
invent
Type
)
{
this
.
poorType
=
poor
Type
;
this
.
inventType
=
invent
Type
;
}
}
/**
/**
* get the
problemDesc - 质量问题描述
.
* get the
inventCode - 存货编码
.
* @return the
problemDesc
* @return the
inventCode
*/
*/
public
String
get
ProblemDesc
()
{
public
String
get
InventCode
()
{
return
this
.
problemDesc
;
return
this
.
inventCode
;
}
}
/**
/**
* set the
problemDesc - 质量问题描述
.
* set the
inventCode - 存货编码
.
*
*
* @param
problemDesc - 质量问题描述
* @param
inventCode - 存货编码
*/
*/
public
void
set
ProblemDesc
(
String
problemDesc
)
{
public
void
set
InventCode
(
String
inventCode
)
{
this
.
problemDesc
=
problemDesc
;
this
.
inventCode
=
inventCode
;
}
}
/**
/**
* get the
checkUser - 检查人
.
* get the
inventName - 存货名称
.
* @return the
checkUser
* @return the
inventName
*/
*/
public
String
get
CheckUser
()
{
public
String
get
InventName
()
{
return
this
.
checkUser
;
return
this
.
inventName
;
}
}
/**
/**
* set the
checkUser - 检查人
.
* set the
inventName - 存货名称
.
*
*
* @param
checkUser - 检查人
* @param
inventName - 存货名称
*/
*/
public
void
set
CheckUser
(
String
checkUser
)
{
public
void
set
InventName
(
String
inventName
)
{
this
.
checkUser
=
checkUser
;
this
.
inventName
=
inventName
;
}
}
/**
/**
* get the
checkUserName - 检查人名称
.
* get the
specId - 规格ID
.
* @return the
checkUserName
* @return the
specId
*/
*/
public
String
getCheckUserName
()
{
public
Long
getSpecId
()
{
return
this
.
checkUserName
;
return
this
.
specId
;
}
}
/**
/**
* set the
checkUserName - 检查人名称
.
* set the
specId - 规格ID
.
*
*
* @param
checkUserName - 检查人名称
* @param
specId - 规格ID
*/
*/
public
void
set
CheckUserName
(
String
checkUserName
)
{
public
void
set
SpecId
(
Long
specId
)
{
this
.
checkUserName
=
checkUserName
;
this
.
specId
=
specId
;
}
}
/**
/**
* get the s
tatus - 单据状态 0未处理 1已处理
.
* get the s
pec - 规格
.
* @return the s
tatus
* @return the s
pec
*/
*/
public
Integer
getStatus
()
{
public
String
getSpec
()
{
return
this
.
s
tatus
;
return
this
.
s
pec
;
}
}
/**
/**
* set the s
tatus - 单据状态 0未处理 1已处理
.
* set the s
pec - 规格
.
*
*
* @param s
tatus - 单据状态 0未处理 1已处理
* @param s
pec - 规格
*/
*/
public
void
setS
tatus
(
Integer
status
)
{
public
void
setS
pec
(
String
spec
)
{
this
.
s
tatus
=
status
;
this
.
s
pec
=
spec
;
}
}
/**
/**
* get the
createdBy - 创建人
.
* get the
material - 材质
.
* @return the
createdBy
* @return the
material
*/
*/
public
String
get
CreatedBy
()
{
public
String
get
Material
()
{
return
this
.
createdBy
;
return
this
.
material
;
}
}
/**
/**
* set the
createdBy - 创建人
.
* set the
material - 材质
.
*
*
* @param
createdBy - 创建人
* @param
material - 材质
*/
*/
public
void
set
CreatedBy
(
String
createdBy
)
{
public
void
set
Material
(
String
material
)
{
this
.
createdBy
=
createdBy
;
this
.
material
=
material
;
}
}
/**
/**
* get the
createdName - 创建人名称
.
* get the
unit - 单位
.
* @return the
createdName
* @return the
unit
*/
*/
public
String
get
CreatedName
()
{
public
String
get
Unit
()
{
return
this
.
createdName
;
return
this
.
unit
;
}
}
/**
/**
* set the
createdName - 创建人名称
.
* set the
unit - 单位
.
*
*
* @param
createdName - 创建人名称
* @param
unit - 单位
*/
*/
public
void
set
CreatedName
(
String
createdName
)
{
public
void
set
Unit
(
String
unit
)
{
this
.
createdName
=
createdName
;
this
.
unit
=
unit
;
}
}
/**
/**
* get the
createdTime - 创建时间
.
* get the
length - 长度
.
* @return the
createdTime
* @return the
length
*/
*/
public
String
getCreatedTime
()
{
public
BigDecimal
getLength
()
{
return
this
.
createdTime
;
return
this
.
length
;
}
}
/**
/**
* set the
createdTime - 创建时间
.
* set the
length - 长度
.
*
*
* @param
createdTime - 创建时间
* @param
length - 长度
*/
*/
public
void
set
CreatedTime
(
String
createdTime
)
{
public
void
set
Length
(
BigDecimal
length
)
{
this
.
createdTime
=
createdTime
;
this
.
length
=
length
;
}
}
/**
/**
* get the
updatedBy - 更新人
.
* get the
width - 宽度
.
* @return the
updatedBy
* @return the
width
*/
*/
public
String
getUpdatedBy
()
{
public
BigDecimal
getWidth
()
{
return
this
.
updatedBy
;
return
this
.
width
;
}
}
/**
/**
* set the
updatedBy - 更新人
.
* set the
width - 宽度
.
*
*
* @param
updatedBy - 更新人
* @param
width - 宽度
*/
*/
public
void
set
UpdatedBy
(
String
updatedBy
)
{
public
void
set
Width
(
BigDecimal
width
)
{
this
.
updatedBy
=
updatedBy
;
this
.
width
=
width
;
}
}
/**
/**
* get the
updatedName - 更新人名称
.
* get the
thick - 厚度
.
* @return the
updatedName
* @return the
thick
*/
*/
public
String
getUpdatedName
()
{
public
BigDecimal
getThick
()
{
return
this
.
updatedName
;
return
this
.
thick
;
}
}
/**
/**
* set the
updatedName - 更新人名称
.
* set the
thick - 厚度
.
*
*
* @param
updatedName - 更新人名称
* @param
thick - 厚度
*/
*/
public
void
set
UpdatedName
(
String
updatedName
)
{
public
void
set
Thick
(
BigDecimal
thick
)
{
this
.
updatedName
=
updatedName
;
this
.
thick
=
thick
;
}
}
/**
/**
* get the
updatedTime - 更新时间
.
* get the
receiveQty - 收货数量
.
* @return the
updatedTime
* @return the
receiveQty
*/
*/
public
String
getUpdatedTime
()
{
public
BigDecimal
getReceiveQty
()
{
return
this
.
updatedTime
;
return
this
.
receiveQty
;
}
}
/**
/**
* set the
updatedTime - 更新时间
.
* set the
receiveQty - 收货数量
.
*
*
* @param
updatedTime - 更新时间
* @param
receiveQty - 收货数量
*/
*/
public
void
set
UpdatedTime
(
String
updatedTime
)
{
public
void
set
ReceiveQty
(
BigDecimal
receiveQty
)
{
this
.
updatedTime
=
updatedTime
;
this
.
receiveQty
=
receiveQty
;
}
}
/**
/**
* get the del
eteFlag - 是否删除
.
* get the del
iverQty - 退货数量
.
* @return the del
eteFlag
* @return the del
iverQty
*/
*/
public
Integer
getDeleteFlag
()
{
public
BigDecimal
getDeliverQty
()
{
return
this
.
del
eteFlag
;
return
this
.
del
iverQty
;
}
}
/**
/**
* set the del
eteFlag - 是否删除
.
* set the del
iverQty - 退货数量
.
*
*
* @param del
eteFlag - 是否删除
* @param del
iverQty - 退货数量
*/
*/
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
public
void
setDeliverQty
(
BigDecimal
deliverQty
)
{
this
.
deleteFlag
=
deleteFlag
;
this
.
deliverQty
=
deliverQty
;
}
/**
* get the depositQty - 入库数量.
* @return the depositQty
*/
public
BigDecimal
getDepositQty
()
{
return
this
.
depositQty
;
}
/**
* set the depositQty - 入库数量.
*
* @param depositQty - 入库数量
*/
public
void
setDepositQty
(
BigDecimal
depositQty
)
{
this
.
depositQty
=
depositQty
;
}
/**
* get the receiveUnitWeight - 收货单重.
* @return the receiveUnitWeight
*/
public
BigDecimal
getReceiveUnitWeight
()
{
return
this
.
receiveUnitWeight
;
}
/**
* set the receiveUnitWeight - 收货单重.
*
* @param receiveUnitWeight - 收货单重
*/
public
void
setReceiveUnitWeight
(
BigDecimal
receiveUnitWeight
)
{
this
.
receiveUnitWeight
=
receiveUnitWeight
;
}
}
/**
/**
* get the
factoryCode - 厂区编码
.
* get the
receiveWeight - 收货重量
.
* @return the
factoryCode
* @return the
receiveWeight
*/
*/
public
String
getFactoryCode
()
{
public
BigDecimal
getReceiveWeight
()
{
return
this
.
factoryCode
;
return
this
.
receiveWeight
;
}
}
/**
/**
* set the
factoryCode - 厂区编码
.
* set the
receiveWeight - 收货重量
.
*
*
* @param
factoryCode - 厂区编码
* @param
receiveWeight - 收货重量
*/
*/
public
void
set
FactoryCode
(
String
factoryCode
)
{
public
void
set
ReceiveWeight
(
BigDecimal
receiveWeight
)
{
this
.
factoryCode
=
factoryCode
;
this
.
receiveWeight
=
receiveWeight
;
}
}
/**
/**
* get the
factoryName - 工厂
.
* get the
status - 状态:0-质检中,1-质检完成
.
* @return the
factoryName
* @return the
status
*/
*/
public
String
getFactoryName
()
{
public
Integer
getStatus
()
{
return
this
.
factoryName
;
return
this
.
status
;
}
}
/**
/**
* set the
factoryName - 工厂
.
* set the
status - 状态:0-质检中,1-质检完成
.
*
*
* @param
factoryName - 工厂
* @param
status - 状态:0-质检中,1-质检完成
*/
*/
public
void
set
FactoryName
(
String
factoryName
)
{
public
void
set
Status
(
Integer
status
)
{
this
.
factoryName
=
factoryName
;
this
.
status
=
status
;
}
}
/**
/**
* get the value from Map.
* get the value from Map.
...
@@ -721,27 +793,10 @@ public class HPZL001 extends DaoEPBase {
...
@@ -721,27 +793,10 @@ public class HPZL001 extends DaoEPBase {
*/
*/
@Override
@Override
public
void
fromMap
(
Map
map
)
{
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
set
CompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
company
Code
));
set
AccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
account
Code
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setReceiptDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIPT_DATE
)),
receiptDate
));
setCheckNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_NO
)),
checkNo
));
setProdOrderNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROD_ORDER_NO
)),
prodOrderNo
));
setProdTaskNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROD_TASK_NO
)),
prodTaskNo
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_CODE
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROJ_NAME
)),
projName
));
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
));
setOrgNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ORG_NO
)),
orgNo
));
setOrgName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ORG_NAME
)),
orgName
));
setPoorType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_POOR_TYPE
)),
poorType
));
setProblemDesc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROBLEM_DESC
)),
problemDesc
));
setCheckUser
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_USER
)),
checkUser
));
setCheckUserName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_USER_NAME
)),
checkUserName
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
...
@@ -749,37 +804,39 @@ public class HPZL001 extends DaoEPBase {
...
@@ -749,37 +804,39 @@ public class HPZL001 extends DaoEPBase {
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setFactoryCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FACTORY_CODE
)),
factoryCode
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setFactoryName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_FACTORY_NAME
)),
factoryName
));
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_NAME
)),
companyName
));
setReceiptDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIPT_DATE
)),
receiptDate
));
setCheckNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_NO
)),
checkNo
));
setReceiveNo
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_NO
)),
receiveNo
));
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_TYPE
)),
inventType
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_CODE
)),
inventCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_INVENT_NAME
)),
inventName
));
setSpecId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC_ID
)),
specId
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SPEC
)),
spec
));
setMaterial
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MATERIAL
)),
material
));
setUnit
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT
)),
unit
));
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
));
setReceiveQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_QTY
)),
receiveQty
));
setDeliverQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELIVER_QTY
)),
deliverQty
));
setDepositQty
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEPOSIT_QTY
)),
depositQty
));
setReceiveUnitWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_UNIT_WEIGHT
)),
receiveUnitWeight
));
setReceiveWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_RECEIVE_WEIGHT
)),
receiveWeight
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
}
}
/**
/**
* set the value to Map.
* set the value to Map.
*/
*/
@Override
@Override
public
Map
toMap
()
{
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
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_
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_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_RECEIPT_DATE
,
StringUtils
.
toString
(
receiptDate
,
eiMetadata
.
getMeta
(
FIELD_RECEIPT_DATE
)));
map
.
put
(
FIELD_CHECK_NO
,
StringUtils
.
toString
(
checkNo
,
eiMetadata
.
getMeta
(
FIELD_CHECK_NO
)));
map
.
put
(
FIELD_PROD_ORDER_NO
,
StringUtils
.
toString
(
prodOrderNo
,
eiMetadata
.
getMeta
(
FIELD_PROD_ORDER_NO
)));
map
.
put
(
FIELD_PROD_TASK_NO
,
StringUtils
.
toString
(
prodTaskNo
,
eiMetadata
.
getMeta
(
FIELD_PROD_TASK_NO
)));
map
.
put
(
FIELD_PROJ_CODE
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_PROJ_CODE
)));
map
.
put
(
FIELD_PROJ_NAME
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_PROJ_NAME
)));
map
.
put
(
FIELD_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_ORG_NO
,
StringUtils
.
toString
(
orgNo
,
eiMetadata
.
getMeta
(
FIELD_ORG_NO
)));
map
.
put
(
FIELD_ORG_NAME
,
StringUtils
.
toString
(
orgName
,
eiMetadata
.
getMeta
(
FIELD_ORG_NAME
)));
map
.
put
(
FIELD_POOR_TYPE
,
StringUtils
.
toString
(
poorType
,
eiMetadata
.
getMeta
(
FIELD_POOR_TYPE
)));
map
.
put
(
FIELD_PROBLEM_DESC
,
StringUtils
.
toString
(
problemDesc
,
eiMetadata
.
getMeta
(
FIELD_PROBLEM_DESC
)));
map
.
put
(
FIELD_CHECK_USER
,
StringUtils
.
toString
(
checkUser
,
eiMetadata
.
getMeta
(
FIELD_CHECK_USER
)));
map
.
put
(
FIELD_CHECK_USER_NAME
,
StringUtils
.
toString
(
checkUserName
,
eiMetadata
.
getMeta
(
FIELD_CHECK_USER_NAME
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
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_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_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
...
@@ -787,8 +844,28 @@ public class HPZL001 extends DaoEPBase {
...
@@ -787,8 +844,28 @@ public class HPZL001 extends DaoEPBase {
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
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_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
map
.
put
(
FIELD_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
map
.
put
(
FIELD_FACTORY_CODE
,
StringUtils
.
toString
(
factoryCode
,
eiMetadata
.
getMeta
(
FIELD_FACTORY_CODE
)));
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_FACTORY_NAME
,
StringUtils
.
toString
(
factoryName
,
eiMetadata
.
getMeta
(
FIELD_FACTORY_NAME
)));
map
.
put
(
FIELD_COMPANY_NAME
,
StringUtils
.
toString
(
companyName
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_NAME
)));
map
.
put
(
FIELD_RECEIPT_DATE
,
StringUtils
.
toString
(
receiptDate
,
eiMetadata
.
getMeta
(
FIELD_RECEIPT_DATE
)));
map
.
put
(
FIELD_CHECK_NO
,
StringUtils
.
toString
(
checkNo
,
eiMetadata
.
getMeta
(
FIELD_CHECK_NO
)));
map
.
put
(
FIELD_RECEIVE_NO
,
StringUtils
.
toString
(
receiveNo
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_NO
)));
map
.
put
(
FIELD_INVENT_TYPE
,
StringUtils
.
toString
(
inventType
,
eiMetadata
.
getMeta
(
FIELD_INVENT_TYPE
)));
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_SPEC_ID
,
StringUtils
.
toString
(
specId
,
eiMetadata
.
getMeta
(
FIELD_SPEC_ID
)));
map
.
put
(
FIELD_SPEC
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
FIELD_SPEC
)));
map
.
put
(
FIELD_MATERIAL
,
StringUtils
.
toString
(
material
,
eiMetadata
.
getMeta
(
FIELD_MATERIAL
)));
map
.
put
(
FIELD_UNIT
,
StringUtils
.
toString
(
unit
,
eiMetadata
.
getMeta
(
FIELD_UNIT
)));
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_RECEIVE_QTY
,
StringUtils
.
toString
(
receiveQty
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_QTY
)));
map
.
put
(
FIELD_DELIVER_QTY
,
StringUtils
.
toString
(
deliverQty
,
eiMetadata
.
getMeta
(
FIELD_DELIVER_QTY
)));
map
.
put
(
FIELD_DEPOSIT_QTY
,
StringUtils
.
toString
(
depositQty
,
eiMetadata
.
getMeta
(
FIELD_DEPOSIT_QTY
)));
map
.
put
(
FIELD_RECEIVE_UNIT_WEIGHT
,
StringUtils
.
toString
(
receiveUnitWeight
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_UNIT_WEIGHT
)));
map
.
put
(
FIELD_RECEIVE_WEIGHT
,
StringUtils
.
toString
(
receiveWeight
,
eiMetadata
.
getMeta
(
FIELD_RECEIVE_WEIGHT
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
return
map
;
return
map
;
}
}
}
}
src/main/java/com/baosight/hggp/hg/zl/domain/HPZL001A.java
deleted
100644 → 0
View file @
fa7f83d3
package
com
.
baosight
.
hggp
.
hg
.
zl
.
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.util.HashMap
;
import
java.util.Map
;
/**
* Project: <br>
* Title:THpzl001a.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-02-02 16:50:31 create
*/
public
class
HPZL001A
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
/* 主键ID*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码 预留*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码 预留*/
public
static
final
String
FIELD_DOC_TYPE
=
"docType"
;
/* 附件类型*/
public
static
final
String
FIELD_CHECK_ID
=
"checkId"
;
/* 质量巡检单ID*/
public
static
final
String
FIELD_DOC_ID
=
"docId"
;
/* 文件ID*/
public
static
final
String
FIELD_DOC_NAME
=
"docName"
;
/* 文件名称*/
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_BIZ_TYPE
=
"bizType"
;
/* 业务类型*/
public
static
final
String
COL_ID
=
"ID"
;
/* 主键ID*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码 预留*/
public
static
final
String
COL_DEPT_CODE
=
"DEPT_CODE"
;
/* 部门编码 预留*/
public
static
final
String
COL_DOC_TYPE
=
"DOC_TYPE"
;
/* 附件类型*/
public
static
final
String
COL_CHECK_ID
=
"CHECK_ID"
;
/* 质量巡检单ID*/
public
static
final
String
COL_DOC_ID
=
"DOC_ID"
;
/* 文件ID*/
public
static
final
String
COL_DOC_NAME
=
"DOC_NAME"
;
/* 文件文件*/
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_BIZ_TYPE
=
"BIZ_TYPE"
;
/* 业务类型*/
public
static
final
String
QUERY
=
"HPZL001A.query"
;
public
static
final
String
COUNT
=
"HPZL001A.count"
;
public
static
final
String
INSERT
=
"HPZL001A.insert"
;
public
static
final
String
UPDATE
=
"HPZL001A.update"
;
public
static
final
String
DELETE
=
"HPZL001A.delete"
;
private
Long
id
;
/* 主键ID*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
depCode
=
" "
;
/* 部门编码 预留*/
private
Integer
docType
;
/* 附件类型*/
private
Long
checkId
;
/* 质量巡检单ID*/
private
String
docId
=
" "
;
/* 文件ID*/
private
String
docName
=
" "
;
/* 文件名称*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 修改人*/
private
String
updatedName
=
" "
;
/* 修改人名称*/
private
String
updatedTime
=
" "
;
/* 修改时间*/
private
String
bizType
=
" "
;
/* 业务类型*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"主键ID"
);
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_DOC_TYPE
);
eiColumn
.
setDescName
(
"附件类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CHECK_ID
);
eiColumn
.
setDescName
(
"质量巡检单ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_ID
);
eiColumn
.
setDescName
(
"文件ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_NAME
);
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_BIZ_TYPE
);
eiColumn
.
setDescName
(
"业务类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPZL001A
()
{
initMetaData
();
}
/**
* get the id - 主键ID.
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id - 主键ID.
*
* @param id - 主键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 docType - 附件类型.
* @return the docType
*/
public
Integer
getDocType
()
{
return
this
.
docType
;
}
/**
* set the docType - 附件类型.
*
* @param docType - 附件类型
*/
public
void
setDocType
(
Integer
docType
)
{
this
.
docType
=
docType
;
}
/**
* get the checkId - 质量巡检单ID.
* @return the checkId
*/
public
Long
getCheckId
()
{
return
this
.
checkId
;
}
/**
* set the checkId - 质量巡检单ID.
*
* @param checkId - 质量巡检单ID
*/
public
void
setCheckId
(
Long
checkId
)
{
this
.
checkId
=
checkId
;
}
/**
* get the docId - 文件ID.
* @return the docId
*/
public
String
getDocId
()
{
return
this
.
docId
;
}
/**
* set the docId - 文件ID.
*
* @param docId - 文件ID
*/
public
void
setDocId
(
String
docId
)
{
this
.
docId
=
docId
;
}
/**
* get the docName - 文件名称.
* @return the docName
*/
public
String
getDocName
()
{
return
this
.
getDocName
();
}
/**
* set the docName - 文件名称.
*
* @param docName - 文件名称
*/
public
void
setDocName
(
String
docName
)
{
this
.
docName
=
docName
;
}
/**
* 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 bizType - 业务类型.
* @return the bizType
*/
public
String
getBizType
()
{
return
this
.
bizType
;
}
/**
* set the bizType - 业务类型.
*
* @param bizType - 业务类型
*/
public
void
setBizType
(
String
bizType
)
{
this
.
bizType
=
bizType
;
}
/**
* 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
));
setDocType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_TYPE
)),
docType
));
setCheckId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHECK_ID
)),
checkId
));
setDocId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_ID
)),
docId
));
setDocName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_NAME
)),
docName
));
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
));
setBizType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_BIZ_TYPE
)),
bizType
));
}
/**
* 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_DOC_TYPE
,
StringUtils
.
toString
(
docType
,
eiMetadata
.
getMeta
(
FIELD_DOC_TYPE
)));
map
.
put
(
FIELD_CHECK_ID
,
StringUtils
.
toString
(
checkId
,
eiMetadata
.
getMeta
(
FIELD_CHECK_ID
)));
map
.
put
(
FIELD_DOC_ID
,
StringUtils
.
toString
(
docId
,
eiMetadata
.
getMeta
(
FIELD_DOC_ID
)));
map
.
put
(
FIELD_DOC_NAME
,
StringUtils
.
toString
(
docName
,
eiMetadata
.
getMeta
(
FIELD_DOC_NAME
)));
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_BIZ_TYPE
,
StringUtils
.
toString
(
bizType
,
eiMetadata
.
getMeta
(
FIELD_BIZ_TYPE
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/zl/service/ServiceH
P
ZL001.java
→
src/main/java/com/baosight/hggp/hg/zl/service/ServiceH
G
ZL001.java
View file @
ef56de18
...
@@ -6,7 +6,7 @@ import com.baosight.hggp.core.constant.CommonConstant;
...
@@ -6,7 +6,7 @@ import com.baosight.hggp.core.constant.CommonConstant;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
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.zl.domain.H
P
ZL001
;
import
com.baosight.hggp.hg.zl.domain.H
G
ZL001
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
...
@@ -26,7 +26,7 @@ import java.util.Map;
...
@@ -26,7 +26,7 @@ import java.util.Map;
* @author ZJH
* @author ZJH
* @date 2024年01月09日 10:18
* @date 2024年01月09日 10:18
*/
*/
public
class
ServiceH
P
ZL001
extends
ServiceBase
{
public
class
ServiceH
G
ZL001
extends
ServiceBase
{
/**
/**
* 画面初始化
* 画面初始化
...
@@ -40,7 +40,7 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -40,7 +40,7 @@ public class ServiceHPZL001 extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
USER_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
USER_BLOCK_ID
),
null
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
H
P
ZL001
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
H
G
ZL001
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
...
@@ -61,7 +61,7 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -61,7 +61,7 @@ public class ServiceHPZL001 extends ServiceBase {
String
receiptDate
=
MapUtils
.
getString
(
queryMap
,
"receiptDate"
);
String
receiptDate
=
MapUtils
.
getString
(
queryMap
,
"receiptDate"
);
queryMap
.
put
(
"receiptDate"
,
StringUtil
.
removeSpecifiedCharacter
(
receiptDate
,
queryMap
.
put
(
"receiptDate"
,
StringUtil
.
removeSpecifiedCharacter
(
receiptDate
,
StringUtil
.
DEFAULT_CHARACTER_TO_BE_REMOVED
));
StringUtil
.
DEFAULT_CHARACTER_TO_BE_REMOVED
));
inInfo
=
super
.
query
(
inInfo
,
H
PZL001
.
QUERY
,
new
HP
ZL001
());
inInfo
=
super
.
query
(
inInfo
,
H
GZL001
.
QUERY
,
new
HG
ZL001
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
}
...
@@ -80,17 +80,17 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -80,17 +80,17 @@ public class ServiceHPZL001 extends ServiceBase {
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPZL001
fZl001
=
new
HPZL001
();
//
HPZL001 fZl001 = new HPZL001();
fZl001
.
fromMap
(
resultRows
.
get
(
i
));
//
fZl001.fromMap(resultRows.get(i));
// 去除日期字符串中的-
//
// 去除日期字符串中的-
fZl001
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fZl001
.
getReceiptDate
()));
//
fZl001.setReceiptDate(StringUtil.removeHorizontalLine(fZl001.getReceiptDate()));
// 设置基础信息
//
// 设置基础信息
this
.
setBaseInfo
(
fZl001
);
//
this.setBaseInfo(fZl001);
// 生成单据号
//
// 生成单据号
fZl001
.
setCheckNo
(
SequenceGenerator
.
getNextSequence
(
//
fZl001.setCheckNo(SequenceGenerator.getNextSequence(
HGConstant
.
SequenceId
.
HPZL001_NUMBER
));
//
HGConstant.SequenceId.HPZL001_NUMBER));
fZl001
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
//
fZl001.setDeleteFlag(CommonConstant.YesNo.NO_0);
DaoUtils
.
insert
(
HPZL001
.
INSERT
,
fZl001
);
//
DaoUtils.insert(HPZL001.INSERT, fZl001);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
@@ -112,15 +112,15 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -112,15 +112,15 @@ public class ServiceHPZL001 extends ServiceBase {
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPZL001
fZl001
=
new
HPZL001
();
//
HPZL001 fZl001 = new HPZL001();
fZl001
.
fromMap
(
resultRows
.
get
(
i
));
//
fZl001.fromMap(resultRows.get(i));
AssertUtils
.
isTrue
(
CommonConstant
.
YesNo
.
YES_1
.
equals
(
fZl001
.
getStatus
()),
//
AssertUtils.isTrue(CommonConstant.YesNo.YES_1.equals(fZl001.getStatus()),
String
.
format
(
"单号[%s]的状态为\"已处理\"不允许修改"
,
fZl001
.
getCheckNo
()));
//
String.format("单号[%s]的状态为\"已处理\"不允许修改", fZl001.getCheckNo()));
// 去除日期字符串中的-
//
// 去除日期字符串中的-
fZl001
.
setReceiptDate
(
StringUtil
.
removeHorizontalLine
(
fZl001
.
getReceiptDate
()));
//
fZl001.setReceiptDate(StringUtil.removeHorizontalLine(fZl001.getReceiptDate()));
// 设置基础信息
//
// 设置基础信息
this
.
setBaseInfo
(
fZl001
);
//
this.setBaseInfo(fZl001);
DaoUtils
.
update
(
HPZL001
.
UPDATE
,
fZl001
);
//
DaoUtils.update(HPZL001.UPDATE, fZl001);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
@@ -136,7 +136,7 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -136,7 +136,7 @@ public class ServiceHPZL001 extends ServiceBase {
*
*
* @param fZl001
* @param fZl001
*/
*/
private
void
setBaseInfo
(
H
P
ZL001
fZl001
)
{
private
void
setBaseInfo
(
H
G
ZL001
fZl001
)
{
// 项目名称
// 项目名称
// fZl001.setProjName(HPSCTools.HpSc001.get(fZl001.getProjCode()).getProjName());
// fZl001.setProjName(HPSCTools.HpSc001.get(fZl001.getProjCode()).getProjName());
// 部件名称
// 部件名称
...
@@ -161,11 +161,11 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -161,11 +161,11 @@ public class ServiceHPZL001 extends ServiceBase {
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPZL001
fZl001
=
new
HPZL001
();
//
HPZL001 fZl001 = new HPZL001();
fZl001
.
fromMap
(
resultRows
.
get
(
i
));
//
fZl001.fromMap(resultRows.get(i));
AssertUtils
.
isTrue
(
CommonConstant
.
YesNo
.
YES_1
.
equals
(
fZl001
.
getStatus
()),
//
AssertUtils.isTrue(CommonConstant.YesNo.YES_1.equals(fZl001.getStatus()),
String
.
format
(
"单号[%s]的状态为\"已处理\"不允许删除"
,
fZl001
.
getCheckNo
()));
//
String.format("单号[%s]的状态为\"已处理\"不允许删除", fZl001.getCheckNo()));
DaoUtils
.
update
(
HPZL001
.
DELETE
,
resultRows
.
get
(
i
));
//
DaoUtils.update(HPZL001.DELETE, resultRows.get(i));
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
@@ -187,12 +187,12 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -187,12 +187,12 @@ public class ServiceHPZL001 extends ServiceBase {
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPZL001
fZl001
=
new
HPZL001
();
//
HPZL001 fZl001 = new HPZL001();
fZl001
.
fromMap
(
resultRows
.
get
(
i
));
//
fZl001.fromMap(resultRows.get(i));
/* fZl001.setCheckUser(UserSession.getLoginName());
/
//
* fZl001.setCheckUser(UserSession.getLoginName());
fZl001.setCheckUserName(UserSession.getLoginCName());*/
//
fZl001.setCheckUserName(UserSession.getLoginCName());*/
fZl001
.
setStatus
(
CommonConstant
.
YesNo
.
YES_1
);
//
fZl001.setStatus(CommonConstant.YesNo.YES_1);
DaoUtils
.
update
(
HGSqlConstant
.
HPZL001
.
DO_PROCESS
,
fZl001
);
//
DaoUtils.update(HGSqlConstant.HPZL001.DO_PROCESS, fZl001);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
src/main/java/com/baosight/hggp/hg/zl/service/ServiceHPZL001A.java
deleted
100644 → 0
View file @
fa7f83d3
package
com
.
baosight
.
hggp
.
hg
.
zl
.
service
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.zl.domain.HPZL001
;
import
com.baosight.hggp.hg.zl.domain.HPZL001A
;
import
com.baosight.hggp.hg.zl.tools.HPZLTools
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.iplat4j.core.ProjectInfo
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author:songx
* @date:2024/1/25,15:25
*/
public
class
ServiceHPZL001A
extends
ServiceEPBase
{
/**
* 画面初始化
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"附件清单"
,
operType
=
"查询"
,
operDesc
=
"质量巡检单-附件清单-初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
// 查询物料ID所对应的项目名称和部件名称
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
queryMap
.
put
(
"id"
,
queryMap
.
get
(
"checkId"
));
List
<
HPZL001
>
dbZl001s
=
dao
.
query
(
HPZL001
.
QUERY
,
queryMap
);
if
(
CollectionUtils
.
isNotEmpty
(
dbZl001s
))
{
inInfo
.
addBlock
(
"detail"
).
addRow
(
dbZl001s
.
get
(
0
));
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPZL001A
().
eiMetadata
);
}
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
/**
* 查询操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"附件清单"
,
operType
=
"查询"
,
operDesc
=
"质量巡检单-附件清单-查询"
)
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
// 项目环境
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
if
(
CommonConstant
.
projectEnv
.
RUN
.
equalsIgnoreCase
(
projectEnv
))
{
inInfo
=
super
.
query
(
inInfo
,
"HPZL001A.queryRun"
,
new
HPZL001A
());
}
else
{
inInfo
=
super
.
query
(
inInfo
,
"HPZL001A.queryDev"
,
new
HPZL001A
());
}
}
catch
(
Throwable
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
/**
* 新增操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"附件清单"
,
operType
=
"新增"
,
operDesc
=
"质量巡检单-附件清单-新增操作"
)
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPZL001A
fZl001A
=
new
HPZL001A
();
fZl001A
.
fromMap
(
resultRows
.
get
(
i
));
// 校验质检单是否已处理
HPZL001
dbZl001
=
HPZLTools
.
getById
(
fZl001A
.
getCheckId
());
AssertUtils
.
isTrue
(
CommonConstant
.
YesNo
.
YES_1
.
equals
(
dbZl001
.
getStatus
()),
String
.
format
(
"质检单[%s]状态为\"已处理\",不能上传附件"
,
dbZl001
.
getCheckNo
()));
DaoUtils
.
insert
(
HPZL001A
.
INSERT
,
fZl001A
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"新增失败"
);
}
return
inInfo
;
}
/**
* 删除操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"附件清单"
,
operType
=
"删除"
,
operDesc
=
"质量巡检单-附件清单-删除操作"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPZL001A
fZl001A
=
new
HPZL001A
();
fZl001A
.
fromMap
(
resultRows
.
get
(
i
));
// 校验质检单是否已处理
HPZL001
dbZl001
=
HPZLTools
.
getById
(
fZl001A
.
getCheckId
());
AssertUtils
.
isTrue
(
CommonConstant
.
YesNo
.
YES_1
.
equals
(
dbZl001
.
getStatus
()),
String
.
format
(
"质检单[%s]状态为\"已处理\",不能删除附件"
,
dbZl001
.
getCheckNo
()));
DaoUtils
.
update
(
HPZL001A
.
DELETE
,
fZl001A
);
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"删除失败"
);
}
return
inInfo
;
}
}
src/main/java/com/baosight/hggp/hg/zl/service/ServiceHPZL001B.java
deleted
100644 → 0
View file @
fa7f83d3
package
com
.
baosight
.
hggp
.
hg
.
zl
.
service
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.ProdOrderStatusEnum
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.zl.domain.HPZL001
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.BeanUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.ObjectUtils
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.util.List
;
import
java.util.Map
;
/**
* 选择生产任务
*
* @author:songx
* @date:2022/7/11,11:08
*/
public
class
ServiceHPZL001B
extends
ServiceEPBase
{
/**
* 初始化
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"生产任务查询"
,
operType
=
"查询"
,
operDesc
=
"质量巡检单-生产任务查询-初始化"
)
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
// inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPSC005B().eiMetadata);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
/**
* 查询数据列表
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"生产任务查询"
,
operType
=
"查询"
,
operDesc
=
"质量巡检单-生产任务查询-查询"
)
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
// 1.部分派工,2.全部派工
queryMap
.
put
(
"statuses"
,
new
Integer
[]{
1
,
2
});
// inInfo = super.query(inInfo, HPSC005B.QUERY, new HPSC005B());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
/**
* 生成巡检单
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"生产任务查询"
,
operType
=
"新增"
,
operDesc
=
"质量巡检单-生产任务查询-生成巡检单"
)
public
EiInfo
select
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 订单号
List
<
String
>
prodOrderNos
=
ObjectUtils
.
listKey
(
resultRows
,
"prodOrderNo"
);
// 任务号
List
<
String
>
prodTaskNos
=
ObjectUtils
.
listKey
(
resultRows
,
"prodTaskNo"
);
// 锁订单
// HPSCTools.HpSc005.lock(prodOrderNos);
// 锁任务
// HPSCTools.HpSc005a.lock(prodTaskNos);
// 查询任务信息
// Map<String, HPSC005B> dbSc005bMap = HPSCTools.HpSc005b.map(prodTaskNos);
// 数据校验
// for (Map row : resultRows) {
// HPSC005B fSc005b = new HPSC005B();
// fSc005b.fromMap(row);
// HPSC005B dbSc005b = dbSc005bMap.get(fSc005b.getProdTaskNo());
// AssertUtils.isTrue(ProdOrderStatusEnum.NOT_ASSIGN.getCode().equals(dbSc005b.getStatus()),
// String.format("生产任务ID[%s]状态不是已分派,不允许操作", fSc005b.getId()));
// }
// 生成巡检单
// for (Map row : resultRows) {
// Integer poorType = MapUtils.getInteger(row, "poorType");
// String problemDesc = MapUtils.getString(row, "problemDesc");
// HPSC005B fSc005b = new HPSC005B();
// fSc005b.fromMap(row);
// 生成新数据
// HPSC005B dbSc005b = dbSc005bMap.get(fSc005b.getProdTaskNo());
// HPZL001 newZl001 = BeanUtils.copy(dbSc005b, HPZL001.class);
// newZl001.setCheckNo(SequenceGenerator.getNextSequence(HPConstant.SequenceId.HPZL001_NUMBER));
// newZl001.setReceiptDate(DateUtils.shortDate());
// newZl001.setStatus(CommonConstant.YesNo.NO_0);
// newZl001.setInventCode(dbSc005b.getPrdtCode());
// newZl001.setInventName(dbSc005b.getPrdtName());
// newZl001.setSubInventCode(dbSc005b.getPartCode());
// newZl001.setSubInventName(dbSc005b.getPartName());
// newZl001.setPoorType(poorType);
// newZl001.setProblemDesc(problemDesc);
// newZl001.setProdOrderNo(dbSc005b.getProdOrderNo());
// newZl001.setProdTaskNo(dbSc005b.getProdTaskNo());
// newZl001.setDeleteFlag(CommonConstant.YesNo.NO_0);
// newZl001.setCheckUser(UserSession.getLoginName());
// newZl001.setCheckUserName(UserSession.getLoginCName());
// newZl001.setFactoryCode(dbSc005b.getFactoryCode());
// newZl001.setFactoryName(dbSc005b.getFactoryName());
// DaoUtils.insert(HPZL001.INSERT, newZl001);
// }
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"生成巡检单失败"
);
}
return
inInfo
;
}
}
src/main/java/com/baosight/hggp/hg/zl/sql/HGZL001.xml
0 → 100644
View file @
ef56de18
<?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=
"HGZL001"
>
<sql
id=
"column"
>
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",
<!-- 记录修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
RECEIPT_DATE as "receiptDate",
<!-- 单据日期 -->
CHECK_NO as "checkNo",
<!-- 检查单号 -->
RECEIVE_NO as "receiveNo",
<!-- 收货单号 -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC_ID as "specId",
<!-- 规格ID -->
SPEC as "spec",
<!-- 规格 -->
MATERIAL as "material",
<!-- 材质 -->
UNIT as "unit",
<!-- 单位 -->
LENGTH as "length",
<!-- 长度 -->
WIDTH as "width",
<!-- 宽度 -->
THICK as "thick",
<!-- 厚度 -->
RECEIVE_QTY as "receiveQty",
<!-- 收货数量 -->
DELIVER_QTY as "deliverQty",
<!-- 退货数量 -->
DEPOSIT_QTY as "depositQty",
<!-- 入库数量 -->
RECEIVE_UNIT_WEIGHT as "receiveUnitWeight",
<!-- 收货单重 -->
RECEIVE_WEIGHT as "receiveWeight",
<!-- 收货重量 -->
STATUS as "status"
<!-- 状态:0-质检中,1-质检完成 -->
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiptDate"
>
RECEIPT_DATE = #receiptDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkNo"
>
CHECK_NO = #checkNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiveNo"
>
RECEIVE_NO = #receiveNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventType"
>
INVENT_TYPE = #inventType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"specId"
>
SPEC_ID = #specId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"spec"
>
SPEC = #spec#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"material"
>
MATERIAL = #material#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"unit"
>
UNIT = #unit#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
</sql>
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.zl.domain.HGZL001"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGZL001 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}.HGZL001 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="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="receiptDate">
RECEIPT_DATE = #receiptDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkNo">
CHECK_NO = #checkNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="receiveNo">
RECEIVE_NO = #receiveNo#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventType">
INVENT_TYPE = #inventType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCode">
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventName">
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="specId">
SPEC_ID = #specId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="spec">
SPEC = #spec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="material">
MATERIAL = #material#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="unit">
UNIT = #unit#
</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="receiveQty">
RECEIVE_QTY = #receiveQty#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deliverQty">
DELIVER_QTY = #deliverQty#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depositQty">
DEPOSIT_QTY = #depositQty#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="receiveUnitWeight">
RECEIVE_UNIT_WEIGHT = #receiveUnitWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="receiveWeight">
RECEIVE_WEIGHT = #receiveWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="status">
STATUS = #status#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGZL001 (ID,
ACCOUNT_CODE,
<!-- 企业编码 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
DELETE_FLAG,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE,
<!-- 公司编码 -->
COMPANY_NAME,
<!-- 公司名称 -->
RECEIPT_DATE,
<!-- 单据日期 -->
CHECK_NO,
<!-- 检查单号 -->
RECEIVE_NO,
<!-- 收货单号 -->
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_NAME,
<!-- 存货名称 -->
SPEC_ID,
<!-- 规格ID -->
SPEC,
<!-- 规格 -->
MATERIAL,
<!-- 材质 -->
UNIT,
<!-- 单位 -->
LENGTH,
<!-- 长度 -->
WIDTH,
<!-- 宽度 -->
THICK,
<!-- 厚度 -->
RECEIVE_QTY,
<!-- 收货数量 -->
DELIVER_QTY,
<!-- 退货数量 -->
DEPOSIT_QTY,
<!-- 入库数量 -->
RECEIVE_UNIT_WEIGHT,
<!-- 收货单重 -->
RECEIVE_WEIGHT,
<!-- 收货重量 -->
STATUS
<!-- 状态:0-质检中,1-质检完成 -->
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #receiptDate#, #checkNo#, #receiveNo#, #inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#, #unit#, #length#, #width#, #thick#, #receiveQty#, #deliverQty#, #depositQty#, #receiveUnitWeight#, #receiveWeight#, #status#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGZL001 WHERE
ID = #id#
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGZL001
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#,
<!-- 记录修改时间 -->
DELETE_FLAG = #deleteFlag#,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE = #companyCode#,
<!-- 公司编码 -->
COMPANY_NAME = #companyName#,
<!-- 公司名称 -->
RECEIPT_DATE = #receiptDate#,
<!-- 单据日期 -->
CHECK_NO = #checkNo#,
<!-- 检查单号 -->
RECEIVE_NO = #receiveNo#,
<!-- 收货单号 -->
INVENT_TYPE = #inventType#,
<!-- 存货类型 -->
INVENT_CODE = #inventCode#,
<!-- 存货编码 -->
INVENT_NAME = #inventName#,
<!-- 存货名称 -->
SPEC_ID = #specId#,
<!-- 规格ID -->
SPEC = #spec#,
<!-- 规格 -->
MATERIAL = #material#,
<!-- 材质 -->
UNIT = #unit#,
<!-- 单位 -->
LENGTH = #length#,
<!-- 长度 -->
WIDTH = #width#,
<!-- 宽度 -->
THICK = #thick#,
<!-- 厚度 -->
RECEIVE_QTY = #receiveQty#,
<!-- 收货数量 -->
DELIVER_QTY = #deliverQty#,
<!-- 退货数量 -->
DEPOSIT_QTY = #depositQty#,
<!-- 入库数量 -->
RECEIVE_UNIT_WEIGHT = #receiveUnitWeight#,
<!-- 收货单重 -->
RECEIVE_WEIGHT = #receiveWeight#,
<!-- 收货重量 -->
STATUS = #status#
<!-- 状态:0-质检中,1-质检完成 -->
WHERE
ID = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hggp/hg/zl/sql/HPZL001.xml
deleted
100644 → 0
View file @
fa7f83d3
<?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=
"HPZL001"
>
<sql
id=
"column"
>
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
RECEIPT_DATE as "receiptDate",
<!-- 单据日期 -->
CHECK_NO as "checkNo",
<!-- 检查单号 -->
PROD_ORDER_NO as "prodOrderNo",
<!-- 生产订单号 -->
PROD_TASK_NO as "prodTaskNo",
<!-- 生产任务号 -->
PROJ_CODE as "projCode",
<!-- 项目号 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
FACTORY_CODE as "factoryCode",
<!-- 厂区编码 -->
FACTORY_NAME as "factoryName",
<!-- 工厂 -->
INVENT_CODE as "inventCode",
<!-- 部件编码 -->
INVENT_NAME as "inventName",
<!-- 部件名称 -->
SUB_INVENT_CODE as "subInventCode",
<!-- 零件编码 -->
SUB_INVENT_NAME as "subInventName",
<!-- 零件名称 -->
ORG_NO as "orgNo",
<!-- 生产组编码 -->
ORG_NAME as "orgName",
<!-- 生产组名称 -->
POOR_TYPE as "poorType",
<!-- 不良品类 -->
PROBLEM_DESC as "problemDesc",
<!-- 质量问题描述 -->
CHECK_USER as "checkUser",
<!-- 检查人 -->
CHECK_USER_NAME as "checkUserName",
<!-- 检查人名称 -->
STATUS as "status",
<!-- 单据状态 0未处理 1已处理 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
DELETE_FLAG as "deleteFlag"
<!-- 是否删除 -->
</sql>
<sql
id=
"authCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCodes"
>
DEP_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"depCodes"
>
#depCodes[]#
</iterate>
</isNotEmpty>
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<include
refid=
"authCondition"
/>
<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=
"receiptDate"
>
RECEIPT_DATE = #receiptDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkNo"
>
CHECK_NO = #checkNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prodOrderNo"
>
PROD_ORDER_NO = #prodOrderNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prodTaskNo"
>
PROD_TASK_NO = #prodTaskNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME LIKE CONCAT('%', #projName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME LIKE CONCAT('%', #inventName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"subInventCode"
>
SUB_INVENT_CODE = #subInventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"subInventName"
>
SUB_INVENT_NAME LIKE CONCAT('%', #subInventName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orgNo"
>
ORG_NO = #orgNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orgName"
>
ORG_NAME LIKE CONCAT('%', #orgName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"poorType"
>
POOR_TYPE = #poorType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkUser"
>
CHECK_USER = #checkUser#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkUserName"
>
CHECK_USER_NAME LIKE CONCAT('%', #checkUserName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
</sql>
<!-- 公共修改字段 -->
<sql
id=
"updateRevise"
>
UPDATED_BY = #updatedBy#,
UPDATED_NAME = #updatedName#,
UPDATED_TIME = #updatedTime#
</sql>
<sql
id=
"order"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"order"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"order"
>
ID DESC
</isEmpty>
</dynamic>
</sql>
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.zl.domain.HPZL001"
>
SELECT
<include
refid=
"column"
/>
FROM hpjx.t_hpzl001 WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"order"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM hpjx.t_hpzl001 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hpzl001 (
COMPANY_CODE,
<!-- 企业编码 预留 -->
DEP_CODE,
<!-- 部门编码 -->
RECEIPT_DATE,
<!-- 单据日期 -->
CHECK_NO,
<!-- 检查单号 -->
PROD_ORDER_NO,
<!-- 生产订单号 -->
PROD_TASK_NO,
<!-- 生产任务号 -->
PROJ_CODE,
<!-- 项目号 -->
PROJ_NAME,
<!-- 项目名称 -->
INVENT_CODE,
<!-- 部件编码 -->
INVENT_NAME,
<!-- 部件名称 -->
SUB_INVENT_CODE,
<!-- 零件编码 -->
SUB_INVENT_NAME,
<!-- 零件名称 -->
FACTORY_CODE,
<!-- 厂区编码 -->
FACTORY_NAME,
<!-- 工厂 -->
ORG_NO,
<!-- 生产组编码 -->
ORG_NAME,
<!-- 生产组名称 -->
POOR_TYPE,
<!-- 不良品类 -->
PROBLEM_DESC,
<!-- 质量问题描述 -->
CHECK_USER ,
<!-- 检查人 -->
CHECK_USER_NAME,
<!-- 检查人名称 -->
STATUS,
<!-- 单据状态 0未处理 1已处理 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
DELETE_FLAG
<!-- 是否删除 -->
) VALUES (
#companyCode#, #depCode#, #receiptDate#, #checkNo#, #prodOrderNo#, #prodTaskNo#,
#projCode#, #projName#, #inventCode#, #inventName#, #subInventCode#, #subInventName#,#factoryCode#,#factoryName#,
#orgNo#, #orgName#, #poorType#, #problemDesc#,#checkUser#,#checkUserName#, #status#,
#createdBy#, #createdName#, #createdTime#, #deleteFlag#)
</insert>
<!-- 逻辑删除-->
<delete
id=
"delete"
>
UPDATE hpjx.t_hpzl001
SET DELETE_FLAG = 1,
<include
refid=
"updateRevise"
/>
WHERE ID = #id#
</delete>
<update
id=
"update"
>
UPDATE hpjx.t_hpzl001
SET
POOR_TYPE = #poorType#,
<!-- 不良品类 -->
PROBLEM_DESC = #problemDesc#,
<!-- 质量问题描述 -->
CHECK_USER = #checkUser#,
<!-- 检查人 -->
CHECK_USER_NAME = #checkUserName#,
<!-- 检查人名称 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#
<!-- 更新时间 -->
WHERE ID = #id#
</update>
<!-- 已处理 -->
<update
id=
"doProcess"
>
UPDATE hpjx.t_hpzl001
SET
STATUS = #status#,
CHECK_USER = #checkUser#,
<!-- 检查人 -->
CHECK_USER_NAME = #checkUserName#,
<!-- 检查人名称 -->
<include
refid=
"updateRevise"
/>
WHERE ID = #id#
</update>
<!-- 移动端已处理 -->
<update
id=
"doProcess2"
>
UPDATE hpjx.t_hpzl001
SET
STATUS = #status#,
CHECK_USER = #checkUser#,
<!-- 检查人 -->
CHECK_USER_NAME = #checkUserName#,
<!-- 检查人名称 -->
<include
refid=
"updateRevise"
/>
WHERE CHECK_NO = #checkNo#
</update>
<!-- 更新附件信息 -->
<update
id=
"updateAffix"
>
UPDATE hpjx.t_hpzl001
SET
AFFIX = #affix#,
<!-- 附件 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_TIME = #updatedTime#
<!-- 更新时间 -->
WHERE ID = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hggp/hg/zl/sql/HPZL001A.xml
deleted
100644 → 0
View file @
fa7f83d3
<?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=
"HPZL001A"
>
<sql
id=
"column"
>
A.ID as "id",
A.COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
A.DEP_CODE as "depCode",
<!-- 部门编码 预留 -->
A.CHECK_ID as "checkId",
<!-- 检查单ID -->
A.DOC_TYPE as "docType",
<!-- 文件类型 -->
A.DOC_ID as "docId",
<!-- 文件ID -->
A.CREATED_BY as "createdBy",
<!-- 创建人 -->
A.CREATED_NAME as "createdName",
<!-- 创建人名称 -->
A.CREATED_TIME as "createdTime",
<!-- 创建时间 -->
A.UPDATED_BY as "updatedBy",
<!-- 修改人 -->
A.UPDATED_NAME as "updatedName",
<!-- 修改人名称 -->
A.UPDATED_TIME as "updatedTime"
<!-- 修改时间 -->
</sql>
<sql
id=
"columnDev"
>
<include
refid=
"column"
/>
,
B.DOC_NAME as "docName"
<!-- 文件名称 -->
</sql>
<sql
id=
"columnRun"
>
<include
refid=
"column"
/>
,
B.RES_CNAME as "docName"
<!-- 文件名称 -->
</sql>
<sql
id=
"authCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
A.DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCodes"
>
A.DEP_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"depCodes"
>
#depCodes[]#
</iterate>
</isNotEmpty>
</sql>
<sql
id=
"condition"
>
<include
refid=
"authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
A.ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
A.DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkId"
>
A.CHECK_ID = #checkId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docType"
>
A.DOC_TYPE = #docType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docId"
>
A.DOC_ID = #docId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
A.CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
A.CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
A.CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
A.UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
A.UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
A.UPDATED_TIME = #updatedTime#
</isNotEmpty>
</sql>
<!-- 开发环境 -->
<sql
id=
"conditionDev"
>
AND A.DOC_ID = B.DOC_ID
<include
refid=
"condition"
/>
<isNotEmpty
prepend=
" AND "
property=
"docName"
>
B.DOC_NAME LIKE CONCAT('%', #docName#, '%')
</isNotEmpty>
</sql>
<!-- 正式环境 -->
<sql
id=
"conditionRun"
>
AND A.DOC_ID = B.RES_ID
<include
refid=
"condition"
/>
<isNotEmpty
prepend=
" AND "
property=
"docName"
>
B.RES_CNAME LIKE CONCAT('%', #docName#, '%')
</isNotEmpty>
</sql>
<sql
id=
"customCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"createdDateFrom"
>
A.CREATED_TIME
>
= CONCAT(REPLACE(#createdDateFrom#, '-', ''), '000000')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdDateTo"
>
A.CREATED_TIME
<
= CONCAT(REPLACE(#createdDateTo#, '-', ''), '235959')
</isNotEmpty>
</sql>
<sql
id=
"order"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"order"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"order"
>
A.ID DESC
</isEmpty>
</dynamic>
</sql>
<select
id=
"queryDev"
resultClass=
"com.baosight.hpjx.hp.zl.domain.HPZL001A"
>
SELECT
<include
refid=
"columnDev"
/>
FROM ${hpjxSchema}.T_HPZL001A A, ${platSchema}.TEUDM02 B
WHERE 1=1
<include
refid=
"conditionDev"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"order"
/>
</select>
<select
id=
"countDev"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPZL001A A, ${platSchema}.TEUDM02 B
WHERE 1=1
<include
refid=
"conditionDev"
/>
<include
refid=
"customCondition"
/>
</select>
<select
id=
"queryRun"
resultClass=
"com.baosight.hpjx.hp.zl.domain.HPZL001A"
>
SELECT
<include
refid=
"columnRun"
/>
FROM ${hpjxSchema}.T_HPZL001A A, ${platSchema}.TEUDM05 B
WHERE 1=1
<include
refid=
"conditionRun"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"order"
/>
</select>
<select
id=
"countRun"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPZL001A A, ${platSchema}.TEUDM05 B
WHERE 1=1
<include
refid=
"conditionRun"
/>
<include
refid=
"customCondition"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPZL001A (
COMPANY_CODE,
<!-- 企业编码 预留 -->
DEP_CODE,
<!-- 部门编码 预留 -->
CHECK_ID,
<!-- 巡检单ID -->
DOC_TYPE,
<!-- 文件类型 -->
DOC_ID,
<!-- 文件ID -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME
<!-- 创建时间 -->
) VALUES (
#companyCode#, #depCode#, #checkId#, #docType#, #docId#, #createdBy#,
#createdName#, #createdTime#
)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.T_HPZL001A WHERE ID = #id#
</delete>
</sqlMap>
src/main/java/com/baosight/hggp/hg/zl/tools/HPZLTools.java
deleted
100644 → 0
View file @
fa7f83d3
package
com
.
baosight
.
hggp
.
hg
.
zl
.
tools
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.hg.zl.domain.HPZL001
;
import
com.baosight.hggp.util.AssertUtils
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author:songx
* @date:2024/2/4,11:23
*/
public
class
HPZLTools
{
/**
* 查询
*
* @param id
* @return
*/
public
static
HPZL001
getById
(
Long
id
)
{
AssertUtils
.
isNull
(
id
,
"质检单号不能为空"
);
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"id"
,
id
);
List
<
HPZL001
>
results
=
DaoBase
.
getInstance
().
query
(
HPZL001
.
QUERY
,
queryMap
);
AssertUtils
.
isEmpty
(
results
,
String
.
format
(
"质检单[%s]信息不存在"
,
id
));
return
results
.
get
(
0
);
}
/**
* 查询
*
* @param checkNo
* @return
*/
public
static
HPZL001
get
(
String
checkNo
)
{
AssertUtils
.
isEmpty
(
checkNo
,
"质检单号不能为空"
);
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"checkNo"
,
checkNo
);
List
<
HPZL001
>
results
=
DaoBase
.
getInstance
().
query
(
HPZL001
.
QUERY
,
queryMap
);
AssertUtils
.
isEmpty
(
results
,
String
.
format
(
"质检单号[%s]信息不存在"
,
checkNo
));
return
results
.
get
(
0
);
}
}
src/main/resources/resources/ibatis/sqlmap-config.xml
View file @
ef56de18
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC003.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC003.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC010.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC010.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC011.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC011.xml"
/>
<!-- 质量 -->
<sqlMap
resource=
"com/baosight/hggp/hg/zl/sql/HGZL001.xml"
/>
<!-- 生产 -->
<!-- 生产 -->
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC001.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC001.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC001A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC001A.xml"
/>
...
...
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