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
fda0871e
Commit
fda0871e
authored
Feb 29, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
eecda842
73bbf479
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
4 deletions
+43
-4
HPKC012.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC012.java
+30
-1
ServiceHPKC012.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC012.java
+1
-0
HPKC012.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC012.xml
+3
-1
HPKC012.jsp
src/main/webapp/HP/KC/HPKC012.jsp
+9
-2
No files found.
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC012.java
View file @
fda0871e
...
@@ -24,12 +24,18 @@ public class HPKC012 extends HPKC010 {
...
@@ -24,12 +24,18 @@ public class HPKC012 extends HPKC010 {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_WARN_NUM
=
"warnNum"
;
/* 预警数量*/
public
static
final
String
FIELD_WARN_NUM
=
"warnNum"
;
/* 预警数量*/
public
static
final
String
FIELD_PRINC
=
"princ"
;
/* 负责人*/
public
static
final
String
COL_WARN_NUM
=
"WARN_NUM"
;
/* 预警数量*/
public
static
final
String
COL_WARN_NUM
=
"WARN_NUM"
;
/* 预警数量*/
public
static
final
String
COL_PRINC
=
"PRINC"
;
/* 负责人*/
public
static
final
String
QUERY
=
"HPKC012.query"
;
public
static
final
String
QUERY
=
"HPKC012.query"
;
private
BigDecimal
warnNum
=
new
BigDecimal
(
"0"
);
/* 预警数量*/
private
BigDecimal
warnNum
=
new
BigDecimal
(
"0"
);
/* 预警数量*/
private
String
princ
=
" "
;
/* 负责人*/
/**
/**
* initialize the metadata.
* initialize the metadata.
...
@@ -43,6 +49,10 @@ public class HPKC012 extends HPKC010 {
...
@@ -43,6 +49,10 @@ public class HPKC012 extends HPKC010 {
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"预警数量"
);
eiColumn
.
setDescName
(
"预警数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRINC
);
eiColumn
.
setDescName
(
"负责人"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
/**
/**
...
@@ -73,10 +83,29 @@ public class HPKC012 extends HPKC010 {
...
@@ -73,10 +83,29 @@ public class HPKC012 extends HPKC010 {
*
*
* @param map - source data map
* @param map - source data map
*/
*/
/**
* get the princ - 负责人.
* @return the princ
*/
public
String
getPrinc
()
{
return
this
.
princ
;
}
/**
* set the princ - 负责人.
*
* @param princ - 负责人
*/
public
void
setPrinc
(
String
princ
)
{
this
.
princ
=
princ
;
}
@Override
@Override
public
void
fromMap
(
Map
map
)
{
public
void
fromMap
(
Map
map
)
{
super
.
fromMap
(
map
);
super
.
fromMap
(
map
);
setWarnNum
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WARN_NUM
)),
warnNum
));
setWarnNum
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WARN_NUM
)),
warnNum
));
setPrinc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRINC
)),
princ
));
}
}
/**
/**
...
@@ -87,7 +116,7 @@ public class HPKC012 extends HPKC010 {
...
@@ -87,7 +116,7 @@ public class HPKC012 extends HPKC010 {
Map
map
=
super
.
toMap
();
Map
map
=
super
.
toMap
();
map
.
put
(
FIELD_WARN_NUM
,
StringUtils
.
toString
(
warnNum
,
eiMetadata
.
getMeta
(
FIELD_WARN_NUM
)));
map
.
put
(
FIELD_WARN_NUM
,
StringUtils
.
toString
(
warnNum
,
eiMetadata
.
getMeta
(
FIELD_WARN_NUM
)));
map
.
put
(
FIELD_PRINC
,
StringUtils
.
toString
(
princ
,
eiMetadata
.
getMeta
(
FIELD_PRINC
)));
return
map
;
return
map
;
}
}
}
}
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC012.java
View file @
fda0871e
...
@@ -39,6 +39,7 @@ public class ServiceHPKC012 extends ServiceBase {
...
@@ -39,6 +39,7 @@ public class ServiceHPKC012 extends ServiceBase {
try
{
try
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"inventTypes"
,
DEFAULT_INVENT_CODE
);
queryMap
.
put
(
"inventTypes"
,
DEFAULT_INVENT_CODE
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
USER_BLOCK_ID
),
null
,
true
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
queryMap
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
queryMap
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
queryMap
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
queryMap
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
),
queryMap
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
),
queryMap
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC012.xml
View file @
fda0871e
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
A.UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
A.UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
A.UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
A.UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
A.VERSION as "version",
<!-- 版本号 -->
A.VERSION as "version",
<!-- 版本号 -->
B.WARN_NUM as warnNum
<!-- 预警值 -->
B.WARN_NUM as warnNum,
<!-- 预警值 -->
C.PRINC as "princ"
<!-- 负责人 -->
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
...
@@ -77,6 +78,7 @@
...
@@ -77,6 +78,7 @@
SELECT
<include
refid=
"column"
/>
SELECT
<include
refid=
"column"
/>
FROM hpjx.T_HPKC010 A
FROM hpjx.T_HPKC010 A
INNER JOIN hpjx.T_HPPZ012 B ON A.INVENT_RECORD_ID = B.INVENT_RECORD_ID
INNER JOIN hpjx.T_HPPZ012 B ON A.INVENT_RECORD_ID = B.INVENT_RECORD_ID
LEFT JOIN hpjx.t_hppz007 C ON A.WH_CODE = C.WH_CODE
WHERE 1=1
WHERE 1=1
AND A.AMOUNT
<
= B.WARN_NUM
AND A.AMOUNT
<
= B.WARN_NUM
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
...
...
src/main/webapp/HP/KC/HPKC012.jsp
View file @
fda0871e
...
@@ -58,9 +58,16 @@
...
@@ -58,9 +58,16 @@
<EF:EFColumn
ename=
"amount"
cname=
"库存数量"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"amount"
cname=
"库存数量"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"warnNum"
cname=
"预警值"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"warnNum"
cname=
"预警值"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"库存重量"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"库存重量"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFComboColumn
ename=
"princ"
cname=
"仓库负责人"
width=
"120"
align=
"center"
enable=
"false"
blockName=
"user_block_id"
textField=
"textField"
valueField=
"valueField"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
filter=
"contains"
>
</EF:EFComboColumn>
<
%
--
<
EF:EFColumn
ename=
"princ"
cname=
"仓库负责人"
width=
"120"
align=
"center"
/>
--%>
<
%
--
<
EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时刻"
enable=
"false"
width=
"140"
align=
"center"
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时刻"
enable=
"false"
width=
"140"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
--%>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
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