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
8d88e3de
Commit
8d88e3de
authored
May 20, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-05-20 优化库存档案
parent
e2a30dfe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
5 deletions
+27
-5
HGPZ005A.java
src/main/java/com/baosight/hggp/hg/pz/domain/HGPZ005A.java
+18
-0
ServiceHGPZ005.java
.../java/com/baosight/hggp/hg/pz/service/ServiceHGPZ005.java
+1
-0
HGPZ005A.xml
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ005A.xml
+8
-5
No files found.
src/main/java/com/baosight/hggp/hg/pz/domain/HGPZ005A.java
View file @
8d88e3de
...
@@ -42,6 +42,7 @@ public class HGPZ005A extends DaoEPBase {
...
@@ -42,6 +42,7 @@ public class HGPZ005A extends DaoEPBase {
public
static
final
String
FIELD_UNIT_COEFF
=
"unitCoeff"
;
/* 单价系数*/
public
static
final
String
FIELD_UNIT_COEFF
=
"unitCoeff"
;
/* 单价系数*/
public
static
final
String
FIELD_PROCESS_CLASS
=
"processClass"
;
/* 工序类别*/
public
static
final
String
FIELD_PROCESS_CLASS
=
"processClass"
;
/* 工序类别*/
public
static
final
String
FIELD_PARENT_ID
=
"parentId"
;
/* 上级ID*/
public
static
final
String
FIELD_PARENT_ID
=
"parentId"
;
/* 上级ID*/
public
static
final
String
FIELD_PROCESS_ORDER
=
"processOrder"
;
/* 加工顺序*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 帐套编码*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 帐套编码*/
...
@@ -87,6 +88,7 @@ public class HGPZ005A extends DaoEPBase {
...
@@ -87,6 +88,7 @@ public class HGPZ005A extends DaoEPBase {
private
BigDecimal
unitCoeff
=
new
BigDecimal
(
0
);
/* 单价系数*/
private
BigDecimal
unitCoeff
=
new
BigDecimal
(
0
);
/* 单价系数*/
private
String
processClass
=
" "
;
/* 工序分类*/
private
String
processClass
=
" "
;
/* 工序分类*/
private
Long
parentId
=
new
Long
(
0
);
/* 上级ID*/
private
Long
parentId
=
new
Long
(
0
);
/* 上级ID*/
private
Long
processOrder
=
new
Long
(
0
);
/* 加工顺序*/
/**
/**
* initialize the metadata.
* initialize the metadata.
...
@@ -177,6 +179,11 @@ public class HGPZ005A extends DaoEPBase {
...
@@ -177,6 +179,11 @@ public class HGPZ005A extends DaoEPBase {
eiColumn
.
setDescName
(
"上级ID"
);
eiColumn
.
setDescName
(
"上级ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PROCESS_ORDER
);
eiColumn
.
setDescName
(
"加工顺序"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
...
@@ -468,6 +475,15 @@ public class HGPZ005A extends DaoEPBase {
...
@@ -468,6 +475,15 @@ public class HGPZ005A extends DaoEPBase {
public
void
setParentId
(
Long
parentId
)
{
public
void
setParentId
(
Long
parentId
)
{
this
.
parentId
=
parentId
;
this
.
parentId
=
parentId
;
}
}
public
Long
getProcessOrder
()
{
return
processOrder
;
}
public
void
setProcessOrder
(
Long
processOrder
)
{
this
.
processOrder
=
processOrder
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -495,6 +511,7 @@ public class HGPZ005A extends DaoEPBase {
...
@@ -495,6 +511,7 @@ public class HGPZ005A extends DaoEPBase {
setUnitCoeff
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT_COEFF
)),
unitCoeff
));
setUnitCoeff
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT_COEFF
)),
unitCoeff
));
setProcessClass
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROCESS_CLASS
)),
processClass
));
setProcessClass
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROCESS_CLASS
)),
processClass
));
setParentId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PARENT_ID
)),
parentId
));
setParentId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PARENT_ID
)),
parentId
));
setProcessOrder
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PROCESS_ORDER
)),
processOrder
));
}
}
/**
/**
...
@@ -523,6 +540,7 @@ public class HGPZ005A extends DaoEPBase {
...
@@ -523,6 +540,7 @@ public class HGPZ005A extends DaoEPBase {
map
.
put
(
FIELD_UNIT_COEFF
,
StringUtils
.
toString
(
unitCoeff
,
eiMetadata
.
getMeta
(
FIELD_UNIT_COEFF
)));
map
.
put
(
FIELD_UNIT_COEFF
,
StringUtils
.
toString
(
unitCoeff
,
eiMetadata
.
getMeta
(
FIELD_UNIT_COEFF
)));
map
.
put
(
FIELD_PROCESS_CLASS
,
StringUtils
.
toString
(
processClass
,
eiMetadata
.
getMeta
(
FIELD_PROCESS_CLASS
)));
map
.
put
(
FIELD_PROCESS_CLASS
,
StringUtils
.
toString
(
processClass
,
eiMetadata
.
getMeta
(
FIELD_PROCESS_CLASS
)));
map
.
put
(
FIELD_PARENT_ID
,
StringUtils
.
toString
(
parentId
,
eiMetadata
.
getMeta
(
FIELD_PARENT_ID
)));
map
.
put
(
FIELD_PARENT_ID
,
StringUtils
.
toString
(
parentId
,
eiMetadata
.
getMeta
(
FIELD_PARENT_ID
)));
map
.
put
(
FIELD_PROCESS_ORDER
,
StringUtils
.
toString
(
processOrder
,
eiMetadata
.
getMeta
(
FIELD_PROCESS_ORDER
)));
return
map
;
return
map
;
}
}
...
...
src/main/java/com/baosight/hggp/hg/pz/service/ServiceHGPZ005.java
View file @
8d88e3de
...
@@ -320,6 +320,7 @@ public class ServiceHGPZ005 extends ServiceBase {
...
@@ -320,6 +320,7 @@ public class ServiceHGPZ005 extends ServiceBase {
hgpz005A
.
setUnitCoeff
(
BigDecimal
.
ONE
);
hgpz005A
.
setUnitCoeff
(
BigDecimal
.
ONE
);
hgpz005A
.
setComposingCoeff
(
BigDecimal
.
ONE
);
hgpz005A
.
setComposingCoeff
(
BigDecimal
.
ONE
);
hgpz005A
.
setParentId
(
hppz005
.
getId
());
hgpz005A
.
setParentId
(
hppz005
.
getId
());
hgpz005A
.
setProcessOrder
(
hgsj002a
.
getProcessOrder
());
DaoUtils
.
insert
(
HGPZ005A
.
INSERT
,
hgpz005A
.
toMap
());
DaoUtils
.
insert
(
HGPZ005A
.
INSERT
,
hgpz005A
.
toMap
());
}
}
}
}
...
...
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ005A.xml
View file @
8d88e3de
...
@@ -104,7 +104,8 @@
...
@@ -104,7 +104,8 @@
COMPOSING_COEFF as "composingCoeff",
<!-- 排产系数 -->
COMPOSING_COEFF as "composingCoeff",
<!-- 排产系数 -->
UNIT_COEFF as "unitCoeff",
<!-- 单价系数 -->
UNIT_COEFF as "unitCoeff",
<!-- 单价系数 -->
PROCESS_CLASS as "processClass",
<!-- 工序类别 -->
PROCESS_CLASS as "processClass",
<!-- 工序类别 -->
PARENT_ID as "parentId"
<!-- 上级ID -->
PARENT_ID as "parentId",
<!-- 上级ID -->
PROCESS_ORDER as "processOrder"
FROM ${hggpSchema}.HGPZ005A WHERE 1=1
FROM ${hggpSchema}.HGPZ005A WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
...
@@ -112,7 +113,7 @@
...
@@ -112,7 +113,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
CREATED_TIME asc, ID asc
PROCESS_CLASS asc ,
CREATED_TIME asc, ID asc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
...
@@ -193,9 +194,10 @@
...
@@ -193,9 +194,10 @@
COMPOSING_COEFF,
<!-- 排产系数 -->
COMPOSING_COEFF,
<!-- 排产系数 -->
UNIT_COEFF,
<!-- 单价系数 -->
UNIT_COEFF,
<!-- 单价系数 -->
PROCESS_CLASS,
<!-- 工序类别 -->
PROCESS_CLASS,
<!-- 工序类别 -->
PARENT_ID
<!-- 上级ID -->
PARENT_ID,
<!-- 上级ID -->
PROCESS_ORDER
)
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #inventCode#, #processCode#, #processName#, #composingCoeff#, #unitCoeff#, #processClass#, #parentId#)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #inventCode#, #processCode#, #processName#, #composingCoeff#, #unitCoeff#, #processClass#, #parentId#
,#processOrder#
)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -227,7 +229,8 @@
...
@@ -227,7 +229,8 @@
COMPOSING_COEFF = #composingCoeff#,
<!-- 排产系数 -->
COMPOSING_COEFF = #composingCoeff#,
<!-- 排产系数 -->
UNIT_COEFF = #unitCoeff#,
<!-- 单价系数 -->
UNIT_COEFF = #unitCoeff#,
<!-- 单价系数 -->
PROCESS_CLASS = #processClass#,
<!-- 工序类别 -->
PROCESS_CLASS = #processClass#,
<!-- 工序类别 -->
PARENT_ID = #parentId#
<!-- 上级ID -->
PARENT_ID = #parentId#,
<!-- 上级ID -->
PROCESS_ORDER = #processOrder#
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
...
...
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