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
5c38830e
Commit
5c38830e
authored
Apr 03, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com/platform/hp-smart
into dev-ly
parents
e8831ee6
edba8447
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
59 additions
and
32 deletions
+59
-32
ServiceHPBI002.java
.../java/com/baosight/hpjx/hp/bi/service/ServiceHPBI002.java
+3
-2
ServiceHPSC002.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
+18
-22
ServiceHPSC008.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC008.java
+18
-0
HPSC002.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002.xml
+2
-2
HPSC008.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC008.xml
+12
-1
HPSCTools.java
src/main/java/com/baosight/hpjx/hp/sc/tools/HPSCTools.java
+3
-0
HPSC002.js
src/main/webapp/HP/SC/HPSC002.js
+0
-0
HPSC002.jsp
src/main/webapp/HP/SC/HPSC002.jsp
+3
-5
No files found.
src/main/java/com/baosight/hpjx/hp/bi/service/ServiceHPBI002.java
View file @
5c38830e
...
...
@@ -665,7 +665,7 @@ public class ServiceHPBI002 extends ServiceBase {
Map
result1
=
(
Map
)
result
.
get
(
"a02eed6a3e3f4dd39dbd0851e6a7572a"
);
List
<
Map
>
list1
=
(
List
)
result1
.
get
(
"data"
);
JSONArray
tempArr
=
new
JSONArray
();
String
json
=
"项目名称,计划完成时间,计划产量,实际产量,进度"
;
String
json
=
"项目名称,计划完成时间,计划产量,实际产量,
生产进度,发货
进度"
;
List
tempContentList
=
Arrays
.
asList
(
json
.
split
(
","
));
tempArr
.
add
(
tempContentList
);
JSONObject
item
=
new
JSONObject
();
...
...
@@ -676,7 +676,8 @@ public class ServiceHPBI002 extends ServiceBase {
datalist
.
add
(
obj
.
get
(
"计划完成时间"
));
datalist
.
add
(
obj
.
get
(
"计划产量"
));
datalist
.
add
(
obj
.
get
(
"实际产量"
));
datalist
.
add
(
obj
.
get
(
"进度"
));
datalist
.
add
(
obj
.
get
(
"生产进度"
));
datalist
.
add
(
obj
.
get
(
"发货进度"
));
tempArr
.
add
(
datalist
);
});
JSONArray
ids
=
new
JSONArray
();
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
View file @
5c38830e
...
...
@@ -658,32 +658,28 @@ public class ServiceHPSC002 extends ServiceBase {
inInfo
.
set
(
"root"
,
root
);
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"物料清单"
,
operType
=
"查询"
,
operDesc
=
"树查询服务"
)
//树查询服务
/**
* 查询树
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"物料清单"
,
operType
=
"查询"
,
operDesc
=
"树查询服务"
)
public
EiInfo
queryTreeNode
(
EiInfo
inInfo
)
{
//1 获取参数
String
pEname
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
0
,
"node"
);
if
(
StringUtils
.
equals
(
"$"
,
pEname
)){
pEname
=
"root"
;
}
String
proj
=
inInfo
.
get
(
CommonConstant
.
Field
.
PROJ_ID
).
toString
();
Long
projId
=
NumberUtils
.
toLong
(
proj
.
split
(
"&"
)[
0
]);
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"pEname"
,
pEname
);
if
(
projId
!=
null
)
{
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
node
=
MapUtils
.
getString
(
queryRow
,
"node"
);
Map
map
=
new
HashMap
();
map
.
put
(
"id"
,
projId
);
List
list
=
dao
.
query
(
"HPSC001.queryDomainById"
,
map
);
if
(
list
.
size
()
>
0
)
{
String
projCode
=
((
HPSC001
)
list
.
get
(
0
)).
getProjCode
();
queryMap
.
put
(
"projCode"
,
projCode
);
}
}
//2 查询节点
map
.
put
(
"id"
,
queryRow
.
get
(
CommonConstant
.
Field
.
PROJ_ID
));
List
<
HPSC001
>
dbSc001s
=
dao
.
query
(
"HPSC001.queryDomainById"
,
map
);
// 查询节点
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"projCode"
,
CollectionUtils
.
isEmpty
(
dbSc001s
)
?
"null"
:
dbSc001s
.
get
(
0
).
getProjCode
());
queryMap
.
put
(
"pEname"
,
"$"
.
equals
(
node
)
?
"root"
:
node
);
List
rows
=
dao
.
query
(
"HPSC002.queryTree"
,
queryMap
);
//3
增加节点block块
//
增加节点block块
EiInfo
outInfo
=
new
EiInfo
();
EiBlock
outBlock
=
outInfo
.
addBlock
(
BeanUtil
.
isEmpty
(
pEname
)
?
""
:
pEnam
e
);
EiBlock
outBlock
=
outInfo
.
addBlock
(
nod
e
);
outBlock
.
addRows
(
rows
);
return
outInfo
;
}
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC008.java
View file @
5c38830e
...
...
@@ -20,6 +20,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -184,4 +185,21 @@ public class ServiceHPSC008 extends ServiceEPBase {
}});
return
inInfo
;
}
public
EiInfo
queryMaxDate
(
EiInfo
inInfo
)
{
String
companyCode
=
UserSessionUtils
.
getCompanyCode
();
Map
sqlMap
=
new
HashMap
();
sqlMap
.
put
(
"companyCode"
,
companyCode
);
List
<
Map
>
result
=
this
.
dao
.
query
(
"HPSC008.queryMaxDate"
,
sqlMap
);
String
registerDate
=
(
String
)
result
.
get
(
0
).
get
(
"registerDate"
);
registerDate
=
registerDate
.
substring
(
0
,
4
)+
"-"
+
registerDate
.
substring
(
4
,
6
)+
"-"
+
registerDate
.
substring
(
6
,
8
);
inInfo
.
set
(
"registerDate"
,
registerDate
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
return
inInfo
;
}
}
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC002.xml
View file @
5c38830e
...
...
@@ -185,7 +185,7 @@
$order$
</isNotEmpty>
<isEmpty
property=
"order"
>
A.ID
DE
SC
A.ID
A
SC
</isEmpty>
</dynamic>
</sql>
...
...
@@ -335,7 +335,7 @@
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
ORDER BY
CREATED_TIME DE
SC
ORDER BY
ID A
SC
</select>
...
...
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC008.xml
View file @
5c38830e
...
...
@@ -450,7 +450,18 @@
CREATED_TIME desc
</isEmpty>
</dynamic>
</select>
<select
id=
"queryMaxDate"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
MAX(REGISTER_DATE) as "registerDate"
<!-- 最新登记日期 -->
FROM ${hpjxSchema}.T_HPXS001
WHERE 1=1 AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<!-- <isNotEmpty prepend=" AND " property="factoryCode">
FACTORY_CODE = #factoryCode#
</isNotEmpty>-->
</select>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/sc/tools/HPSCTools.java
View file @
5c38830e
...
...
@@ -943,6 +943,9 @@ public class HPSCTools {
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"id"
,
id
);
List
<
HPSC006
>
results
=
DaoBase
.
getInstance
().
query
(
HPSC006
.
QUERY
,
queryMap
);
if
(
results
!=
null
&&
results
.
size
()==
0
){
results
=
null
;
}
AssertUtils
.
isNull
(
results
,
String
.
format
(
"生产下料ID[%s]信息不存在"
,
id
));
return
results
.
get
(
0
);
}
...
...
src/main/webapp/HP/SC/HPSC002.js
View file @
5c38830e
This diff is collapsed.
Click to expand it.
src/main/webapp/HP/SC/HPSC002.jsp
View file @
5c38830e
...
...
@@ -4,11 +4,10 @@
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<head>
<
%
--
<
link
rel=
"stylesheet"
href=
"${ctx}/css/simulatedOperation.css"
/>
--%>
</head>
<EF:EFPage
title=
"物料清单"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFInput
ename=
"inqu_status-0-projId"
type=
"hidden"
/>
<div
class=
"row"
>
<
%
--
<
EF:EFSelect
ename=
"inqu_status-0-prdtType"
cname=
"部件类型"
colWidth=
"3"
filter=
"contains"
template=
"#=textField#"
valueTemplate=
"#=textField#"
>
...
...
@@ -23,10 +22,9 @@
<EF:EFOption
label=
"未提交"
value=
"0"
/>
<EF:EFOption
label=
"已提交"
value=
"1"
/>
</EF:EFSelect>
<EF:EFInput
ename=
"inqu_status-0-projId"
hidden=
"true"
/>
</div>
<
%
--
<
EF:EFButton
ename=
"QUERY"
cname=
"查询"
row=
"1"
class=
"btn-align-right"
></EF:EFButton>
--%>
</EF:EFRegion>
<div
id=
"splitter"
class=
"i-fit-height"
style=
"display: inline"
>
<div
id=
"left-pane"
class=
"i-fit-height"
style=
"width: 20%;float:left;"
>
<EF:EFRegion
id=
"projTree"
title=
"BOM结构图"
fitHeight=
"true"
>
...
...
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