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
e2a30dfe
Commit
e2a30dfe
authored
May 20, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
9c3bc30e
510c8c5a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
1 deletions
+55
-1
ProductTypeEnum.java
src/main/java/com/baosight/hggp/common/ProductTypeEnum.java
+54
-0
HGSC005A.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC005A.xml
+1
-1
No files found.
src/main/java/com/baosight/hggp/common/ProductTypeEnum.java
0 → 100644
View file @
e2a30dfe
package
com
.
baosight
.
hggp
.
common
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
public
enum
ProductTypeEnum
{
STRUCT
(
1
,
"构建"
),
PART
(
2
,
"零件"
);
private
Integer
code
;
private
String
value
;
ProductTypeEnum
(
Integer
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
static
EiBlock
generatorEiBlock
()
{
EiBlock
block
=
new
EiBlock
(
"product_type_block_id"
);
List
<
Map
<
String
,
Object
>>
rows
=
new
ArrayList
<
Map
<
String
,
Object
>>()
{{
add
(
new
HashMap
<
String
,
Object
>()
{{
put
(
HGConstants
.
TEXT_FIELD
,
STRUCT
.
code
+
"-"
+
STRUCT
.
value
);
put
(
HGConstants
.
VALUE_FIELD
,
STRUCT
.
code
);
}});
add
(
new
HashMap
<
String
,
Object
>()
{{
put
(
HGConstants
.
TEXT_FIELD
,
PART
.
code
+
"-"
+
PART
.
value
);
put
(
HGConstants
.
VALUE_FIELD
,
PART
.
code
);
}});
}};
block
.
setRows
(
rows
);
return
block
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
}
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC005A.xml
View file @
e2a30dfe
...
...
@@ -170,7 +170,7 @@
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
id
asc
product_type asc ,plan_start_date
asc
</isEmpty>
</dynamic>
...
...
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