Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
8be369a9
Commit
8be369a9
authored
Jan 12, 2024
by
971729
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat():完成HPKC006
parent
d5ae1751
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
274 additions
and
294 deletions
+274
-294
HPKC006.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC006.java
+272
-246
ServiceHPKC006.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC006.java
+2
-0
HPKC006.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC006.xml
+0
-48
No files found.
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC006.java
View file @
8be369a9
/**
* Generate time : 2024-01-10 10:28:03
* Version : 1.0
*/
* Generate time : 2024-01-10 10:28:03
* Version : 1.0
*/
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
import
com.baosight.iplat4j.core.util.DateUtils
;
import
java.sql.Timestamp
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
* THpkc006
*
*/
* THpkc006
*
*/
public
class
HPKC006
extends
DaoEPBase
{
private
Integer
id
=
0
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
depCode
=
" "
;
/* 部门编码 预留*/
private
Timestamp
receiptTime
;
/* 单据日期*/
private
String
otherEnthouse
=
" "
;
/* 其他入库单号*/
private
String
whCode
=
" "
;
/* 仓库编码*/
private
String
whName
=
" "
;
/* 仓库名称*/
private
String
matType
=
" "
;
/* 物料类型*/
private
String
matCode
=
" "
;
/* 物料编码*/
private
String
matName
=
" "
;
/* 物料名称*/
private
String
spec
=
" "
;
/* 规格*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 数量*/
private
BigDecimal
weight
=
new
BigDecimal
(
"0"
);
/* 重量*/
private
int
status
;
/* 状态 0审核 1保存*/
private
String
remark
=
" "
;
/* 备注*/
/**
* initialize the metadata
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
private
Integer
id
=
0
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
depCode
=
" "
;
/* 部门编码 预留*/
private
Timestamp
receiptTime
;
/* 单据日期*/
private
String
otherEnthouse
=
" "
;
/* 其他入库单号*/
private
String
whCode
=
" "
;
/* 仓库编码*/
private
String
whName
=
" "
;
/* 仓库名称*/
private
String
matType
=
" "
;
/* 物料类型*/
private
String
matCode
=
" "
;
/* 物料编码*/
private
String
matName
=
" "
;
/* 物料名称*/
private
String
spec
=
" "
;
/* 规格*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 数量*/
private
BigDecimal
weight
=
new
BigDecimal
(
"0"
);
/* 重量*/
private
int
status
;
/* 状态 0审核 1保存*/
private
String
remark
=
" "
;
/* 备注*/
/**
* initialize the metadata
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
"id"
);
eiColumn
.
setPrimaryKey
(
true
);
...
...
@@ -108,269 +116,286 @@ EiColumn eiColumn;
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor
*/
public
HPKC006
()
{
initMetaData
();
}
/**
* get the id
* @return the id
*/
public
Integer
getId
()
{
}
/**
* the constructor
*/
public
HPKC006
()
{
initMetaData
();
}
/**
* get the id
* @return the id
*/
public
Integer
getId
()
{
return
this
.
id
;
}
}
/**
* set the id
*/
public
void
setId
(
Integer
id
)
{
/**
* set the id
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* get the companyCode - 企业编码 预留
* @return the companyCode
*/
public
String
getCompanyCode
()
{
}
/**
* get the companyCode - 企业编码 预留
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
}
/**
* set the companyCode - 企业编码 预留
*/
public
void
setCompanyCode
(
String
companyCode
)
{
/**
* set the companyCode - 企业编码 预留
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the depCode - 部门编码 预留
* @return the depCode
*/
public
String
getDepCode
()
{
}
/**
* get the depCode - 部门编码 预留
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
}
/**
* set the depCode - 部门编码 预留
*/
public
void
setDepCode
(
String
depCode
)
{
/**
* set the depCode - 部门编码 预留
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* get the receiptTime - 单据日期
* @return the receiptTime
*/
public
Timestamp
getReceiptTime
()
{
}
/**
* get the receiptTime - 单据日期
* @return the receiptTime
*/
public
Timestamp
getReceiptTime
()
{
return
this
.
receiptTime
;
}
}
/**
* set the receiptTime - 单据日期
*/
public
void
setReceiptTime
(
Timestamp
receiptTime
)
{
/**
* set the receiptTime - 单据日期
*/
public
void
setReceiptTime
(
Timestamp
receiptTime
)
{
this
.
receiptTime
=
receiptTime
;
}
/**
* get the otherEnthouse - 其他入库单号
* @return the otherEnthouse
*/
public
String
getOtherEnthouse
()
{
}
/**
* get the otherEnthouse - 其他入库单号
* @return the otherEnthouse
*/
public
String
getOtherEnthouse
()
{
return
this
.
otherEnthouse
;
}
}
/**
* set the otherEnthouse - 其他入库单号
*/
public
void
setOtherEnthouse
(
String
otherEnthouse
)
{
/**
* set the otherEnthouse - 其他入库单号
*/
public
void
setOtherEnthouse
(
String
otherEnthouse
)
{
this
.
otherEnthouse
=
otherEnthouse
;
}
/**
* get the whCode - 仓库编码
* @return the whCode
*/
public
String
getWhCode
()
{
}
/**
* get the whCode - 仓库编码
* @return the whCode
*/
public
String
getWhCode
()
{
return
this
.
whCode
;
}
}
/**
* set the whCode - 仓库编码
*/
public
void
setWhCode
(
String
whCode
)
{
/**
* set the whCode - 仓库编码
*/
public
void
setWhCode
(
String
whCode
)
{
this
.
whCode
=
whCode
;
}
/**
* get the whName - 仓库名称
* @return the whName
*/
public
String
getWhName
()
{
}
/**
* get the whName - 仓库名称
* @return the whName
*/
public
String
getWhName
()
{
return
this
.
whName
;
}
}
/**
* set the whName - 仓库名称
*/
public
void
setWhName
(
String
whName
)
{
/**
* set the whName - 仓库名称
*/
public
void
setWhName
(
String
whName
)
{
this
.
whName
=
whName
;
}
/**
* get the matType - 物料类型
* @return the matType
*/
public
String
getMatType
()
{
}
/**
* get the matType - 物料类型
* @return the matType
*/
public
String
getMatType
()
{
return
this
.
matType
;
}
}
/**
* set the matType - 物料类型
*/
public
void
setMatType
(
String
matType
)
{
/**
* set the matType - 物料类型
*/
public
void
setMatType
(
String
matType
)
{
this
.
matType
=
matType
;
}
/**
* get the matCode - 物料编码
* @return the matCode
*/
public
String
getMatCode
()
{
}
/**
* get the matCode - 物料编码
* @return the matCode
*/
public
String
getMatCode
()
{
return
this
.
matCode
;
}
}
/**
* set the matCode - 物料编码
*/
public
void
setMatCode
(
String
matCode
)
{
/**
* set the matCode - 物料编码
*/
public
void
setMatCode
(
String
matCode
)
{
this
.
matCode
=
matCode
;
}
/**
* get the matName - 物料名称
* @return the matName
*/
public
String
getMatName
()
{
}
/**
* get the matName - 物料名称
* @return the matName
*/
public
String
getMatName
()
{
return
this
.
matName
;
}
}
/**
* set the matName - 物料名称
*/
public
void
setMatName
(
String
matName
)
{
/**
* set the matName - 物料名称
*/
public
void
setMatName
(
String
matName
)
{
this
.
matName
=
matName
;
}
/**
* get the spec - 规格
* @return the spec
*/
public
String
getSpec
()
{
}
/**
* get the spec - 规格
* @return the spec
*/
public
String
getSpec
()
{
return
this
.
spec
;
}
}
/**
* set the spec - 规格
*/
public
void
setSpec
(
String
spec
)
{
/**
* set the spec - 规格
*/
public
void
setSpec
(
String
spec
)
{
this
.
spec
=
spec
;
}
/**
* get the amount - 数量
* @return the amount
*/
public
BigDecimal
getAmount
()
{
}
/**
* get the amount - 数量
* @return the amount
*/
public
BigDecimal
getAmount
()
{
return
this
.
amount
;
}
}
/**
* set the amount - 数量
*/
public
void
setAmount
(
BigDecimal
amount
)
{
/**
* set the amount - 数量
*/
public
void
setAmount
(
BigDecimal
amount
)
{
this
.
amount
=
amount
;
}
/**
* get the weight - 重量
* @return the weight
*/
public
BigDecimal
getWeight
()
{
}
/**
* get the weight - 重量
* @return the weight
*/
public
BigDecimal
getWeight
()
{
return
this
.
weight
;
}
}
/**
* set the weight - 重量
*/
public
void
setWeight
(
BigDecimal
weight
)
{
/**
* set the weight - 重量
*/
public
void
setWeight
(
BigDecimal
weight
)
{
this
.
weight
=
weight
;
}
/**
* get the status - 状态 0审核 1保存
* @return the status
*/
public
int
getStatus
()
{
}
/**
* get the status - 状态 0审核 1保存
* @return the status
*/
public
int
getStatus
()
{
return
this
.
status
;
}
}
/**
* set the status - 状态 0审核 1保存
*/
public
void
setStatus
(
int
status
)
{
/**
* set the status - 状态 0审核 1保存
*/
public
void
setStatus
(
int
status
)
{
this
.
status
=
status
;
}
/**
* get the remark - 备注
* @return the remark
*/
public
String
getRemark
()
{
}
/**
* get the remark - 备注
* @return the remark
*/
public
String
getRemark
()
{
return
this
.
remark
;
}
}
/**
* set the remark - 备注
*/
public
void
setRemark
(
String
remark
)
{
/**
* set the remark - 备注
*/
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
/**
* get the value from Map
*/
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"depCode"
)),
depCode
));
setReceiptTime
(
DateUtils
.
toTimestamp
(
StringUtils
.
toString
(
map
.
get
(
"receiptTime"
))));
setOtherEnthouse
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"otherEnthouse"
)),
otherEnthouse
));
setWhCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"whCode"
)),
whCode
));
setWhName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"whName"
)),
whName
));
setMatType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"matType"
)),
matType
));
setMatCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"matCode"
)),
matCode
));
setMatName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"matName"
)),
matName
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"spec"
)),
spec
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"amount"
)),
amount
));
setWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"weight"
)),
weight
));
setStatus
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"remark"
)),
remark
));
}
/**
* set the value to Map
*/
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
"id"
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
"id"
)));
map
.
put
(
"companyCode"
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
"companyCode"
)));
map
.
put
(
"depCode"
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
"depCode"
)));
map
.
put
(
"receiptTime"
,
StringUtils
.
toString
(
receiptTime
,
eiMetadata
.
getMeta
(
"receiptTime"
)));
map
.
put
(
"otherEnthouse"
,
StringUtils
.
toString
(
otherEnthouse
,
eiMetadata
.
getMeta
(
"otherEnthouse"
)));
map
.
put
(
"whCode"
,
StringUtils
.
toString
(
whCode
,
eiMetadata
.
getMeta
(
"whCode"
)));
map
.
put
(
"whName"
,
StringUtils
.
toString
(
whName
,
eiMetadata
.
getMeta
(
"whName"
)));
map
.
put
(
"matType"
,
StringUtils
.
toString
(
matType
,
eiMetadata
.
getMeta
(
"matType"
)));
map
.
put
(
"matCode"
,
StringUtils
.
toString
(
matCode
,
eiMetadata
.
getMeta
(
"matCode"
)));
map
.
put
(
"matName"
,
StringUtils
.
toString
(
matName
,
eiMetadata
.
getMeta
(
"matName"
)));
map
.
put
(
"spec"
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
"spec"
)));
map
.
put
(
"amount"
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
"amount"
)));
map
.
put
(
"weight"
,
StringUtils
.
toString
(
weight
,
eiMetadata
.
getMeta
(
"weight"
)));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
map
.
put
(
"remark"
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
"remark"
)));
return
map
;
}
}
/**
* get the value from Map
*/
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"depCode"
)),
depCode
));
setReceiptTime
(
DateUtils
.
toTimestamp
(
StringUtils
.
toString
(
map
.
get
(
"receiptTime"
))));
setOtherEnthouse
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"otherEnthouse"
)),
otherEnthouse
));
setWhCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"whCode"
)),
whCode
));
setWhName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"whName"
)),
whName
));
setMatType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"matType"
)),
matType
));
setMatCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"matCode"
)),
matCode
));
setMatName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"matName"
)),
matName
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"spec"
)),
spec
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"amount"
)),
amount
));
setWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"weight"
)),
weight
));
setStatus
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"remark"
)),
remark
));
}
/**
* set the value to Map
*/
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
"id"
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
"id"
)));
map
.
put
(
"companyCode"
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
"companyCode"
)));
map
.
put
(
"depCode"
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
"depCode"
)));
map
.
put
(
"receiptTime"
,
StringUtils
.
toString
(
receiptTime
,
eiMetadata
.
getMeta
(
"receiptTime"
)));
map
.
put
(
"otherEnthouse"
,
StringUtils
.
toString
(
otherEnthouse
,
eiMetadata
.
getMeta
(
"otherEnthouse"
)));
map
.
put
(
"whCode"
,
StringUtils
.
toString
(
whCode
,
eiMetadata
.
getMeta
(
"whCode"
)));
map
.
put
(
"whName"
,
StringUtils
.
toString
(
whName
,
eiMetadata
.
getMeta
(
"whName"
)));
map
.
put
(
"matType"
,
StringUtils
.
toString
(
matType
,
eiMetadata
.
getMeta
(
"matType"
)));
map
.
put
(
"matCode"
,
StringUtils
.
toString
(
matCode
,
eiMetadata
.
getMeta
(
"matCode"
)));
map
.
put
(
"matName"
,
StringUtils
.
toString
(
matName
,
eiMetadata
.
getMeta
(
"matName"
)));
map
.
put
(
"spec"
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
"spec"
)));
map
.
put
(
"amount"
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
"amount"
)));
map
.
put
(
"weight"
,
StringUtils
.
toString
(
weight
,
eiMetadata
.
getMeta
(
"weight"
)));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
map
.
put
(
"remark"
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
"remark"
)));
// System.out.println("map-->"+map);
return
map
;
}
}
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC006.java
View file @
8be369a9
...
...
@@ -40,11 +40,13 @@ public class ServiceHPKC006 extends ServiceBase {
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
HPKC006
hpkc006
=
new
HPKC006
();
// System.out.println(inInfo.getBlock("result"));
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
// System.out.println(map);
hpkc006
.
fromMap
(
map
);
this
.
dao
.
insert
(
"HPKC006.insert"
,
hpkc006
.
toMap
());
...
...
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC006.xml
View file @
8be369a9
...
...
@@ -72,54 +72,6 @@
ID = #id#
</isNotEmpty>
</select>
<!--
<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="receiptTime">
RECEIPT_TIME = #receiptTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="otherEnthouse">
OTHER_ENTHOUSE = #otherEnthouse#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="whCode">
WH_CODE = #whCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="whName">
WH_NAME = #whName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="matType">
MAT_TYPE = #matType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="matCode">
MAT_CODE = #matCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="matName">
MAT_NAME = #matName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="spec">
SPEC = #spec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="amount">
AMOUNT = #amount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="weight">
WEIGHT = #weight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="status">
STATUS = #status#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="remark">
REMARK = #remark#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hpkc006 (
...
...
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