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
0c8ed011
Commit
0c8ed011
authored
Nov 15, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
d22f5a97
5833fc8b
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
75 additions
and
25 deletions
+75
-25
ServiceHGSC007.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
+4
-4
HGSC007.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
+10
-4
HGSJ001.java
src/main/java/com/baosight/hggp/hg/sj/domain/HGSJ001.java
+35
-1
HGSJ001.xml
src/main/java/com/baosight/hggp/hg/sj/sql/HGSJ001.xml
+15
-5
HGYX010.java
src/main/java/com/baosight/hggp/hg/yx/domain/HGYX010.java
+2
-1
ServiceHGZL003.java
.../java/com/baosight/hggp/hg/zl/service/ServiceHGZL003.java
+1
-1
application.properties
src/main/resources/application.properties
+0
-3
quartz.properties
src/main/resources/quartz.properties
+0
-3
left-manage-cockpit.vue
.../webapp/HG/BI/components/hipi/002/left-manage-cockpit.vue
+3
-3
HGSJ001.jsp
src/main/webapp/HG/SJ/HGSJ001.jsp
+5
-0
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
View file @
0c8ed011
...
...
@@ -317,10 +317,10 @@ public class ServiceHGSC007 extends ServiceEPBase {
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
}
queryRow
.
put
(
"processNames"
,
Arrays
.
asList
(
"切割下料"
,
"烧焊"
,
"车加工"
,
"铣加工"
,
"动平衡"
,
"装配"
));
//
queryRow.put("processNames",Arrays.asList("切割下料","烧焊","车加工","铣加工","动平衡","装配"));
// List<Map> result = DaoBase.getInstance().query("HGSC007.queryBySunWt", queryRow);
List
<
HashMap
<
String
,
Object
>>
result
=
(
List
<
HashMap
<
String
,
Object
>>)
DaoBase
.
getInstance
().
query
(
"HGSC007.queryBySunWt"
,
queryRow
);
List
<
String
>
processNamesList
=
Arrays
.
asList
(
"切割下料"
,
"烧焊"
,
"车加工"
,
"铣加工"
,
"动平衡"
,
"装配"
);
//"组立", "油漆", "埋弧盖面", "抛丸除锈", "拼装", "焊接"
/*
List<String> processNamesList = Arrays.asList("切割下料","烧焊","车加工","铣加工","动平衡","装配"); //"组立", "油漆", "埋弧盖面", "抛丸除锈", "拼装", "焊接"
List<Object> resultList = new ArrayList<>();
for (String processNames:processNamesList){
for(Map<String, Object> item :result){
...
...
@@ -328,9 +328,9 @@ public class ServiceHGSC007 extends ServiceEPBase {
resultList.add(item.get("totalWeight"));
}
}
}
}
*/
EiBlock
block
=
new
EiBlock
(
"result"
);
block
.
set
(
"processNameList"
,
result
List
);
block
.
set
(
"processNameList"
,
result
);
inInfo
.
addBlock
(
block
);
// Object processNames = queryRow.get("processNames");
// for(Object item:processNames){
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
View file @
0c8ed011
...
...
@@ -1268,12 +1268,14 @@
<!--工序累计产量-->
<select
id=
"queryBySunWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
select
A.SORT as "sort",
A.process_name as "processName",
ROUND(ifnull(SUM(B.INV_WEIGHT),0)/1000, 4) "totalWeight"
from ${hggpSchema}.HGGY001 A
join ${platSchema}.TXSOG01 C on A.FACTORY_CODE = C.COMPANY_CODE
left join (
select
h.COMPANY_CODE,
h2.process_code ,
ROUND(ifnull(SUM(h.INV_WEIGHT), 0)/ 1000, 4) "INV_WEIGHT"
from ${hggpSchema}.hgkc003 h
...
...
@@ -1285,20 +1287,24 @@
<isNotEmpty
prepend=
" AND "
property=
"depositDate"
>
left(h.DEPOSIT_DATE,6) = left(#depositDate#,6)
</isNotEmpty>
group by h2.process_code
) B on A.process_code = B.process_code
where 1=1 and DELETE_FLAG = '0'
group by h
.COMPANY_CODE, h
2.process_code
) B on A.
FACTORY_CODE = B.COMPANY_CODE AND A.
process_code = B.process_code
where 1=1 and DELETE_FLAG = '0'
and reveal = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
A.account_code = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processNames"
>
A.process_name IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"processNames"
>
#processNames[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
C.factory_code = #factoryCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
C.factory_name = #factoryName#
</isNotEmpty>
group by
A.process_name
A.SORT, A.process_name
order by A.SORT
</select>
<!--日期到条件7天日产量-->
<select
id=
"queryByDayWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
...
...
src/main/java/com/baosight/hggp/hg/sj/domain/HGSJ001.java
View file @
0c8ed011
...
...
@@ -47,6 +47,8 @@ public class HGSJ001 extends DaoEPBase {
public
static
final
String
FIELD_COMPUTE_TYPE
=
"computeType"
;
/* 计算类型*/
public
static
final
String
FIELD_COST_WEIGHT
=
"costWeight"
;
public
static
final
String
FIELD_OVERLAP_DAY
=
"overlapDay"
;
/* 前后工序重叠天数*/
public
static
final
String
FIELD_REVEAL
=
"reveal"
;
/*是否驾驶舱显示*/
public
static
final
String
FIELD_SORT
=
"sort"
;
/*排序*/
public
static
final
String
COL_ID
=
"ID"
;
/* 主键id*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 企业编码 预留*/
...
...
@@ -102,6 +104,8 @@ public class HGSJ001 extends DaoEPBase {
private
Integer
computeType
=
0
;
private
BigDecimal
costWeight
=
new
BigDecimal
(
0.000
);
private
Integer
overlapDay
=
0
;
/* 前后工序重叠天数*/
private
Integer
reveal
=
0
;
/*是否驾驶舱显示*/
private
Integer
sort
=
0
;
/*排序*/
/**
* initialize the metadata.
...
...
@@ -219,6 +223,16 @@ public class HGSJ001 extends DaoEPBase {
eiColumn
.
setDescName
(
"前后工序重叠天数"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_REVEAL
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setDescName
(
"是否驾驶舱显示"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_SORT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setDescName
(
"排序"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
...
...
@@ -581,7 +595,23 @@ public class HGSJ001 extends DaoEPBase {
public
void
setOverlapDay
(
Integer
overlapDay
)
{
this
.
overlapDay
=
overlapDay
;
}
public
Integer
getReveal
()
{
return
reveal
;
}
public
void
setReveal
(
Integer
reveal
)
{
this
.
reveal
=
reveal
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
/**
* get the value from Map.
*
...
...
@@ -614,6 +644,8 @@ public class HGSJ001 extends DaoEPBase {
setComputeType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPUTE_TYPE
)),
computeType
));
setCostWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COST_WEIGHT
)),
costWeight
));
setOverlapDay
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OVERLAP_DAY
)),
overlapDay
));
setReveal
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REVEAL
)),
reveal
));
setSort
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SORT
)),
sort
));
}
/**
...
...
@@ -647,6 +679,8 @@ public class HGSJ001 extends DaoEPBase {
map
.
put
(
FIELD_COMPUTE_TYPE
,
StringUtils
.
toString
(
computeType
,
eiMetadata
.
getMeta
(
FIELD_COMPUTE_TYPE
)));
map
.
put
(
FIELD_COST_WEIGHT
,
StringUtils
.
toString
(
costWeight
,
eiMetadata
.
getMeta
(
FIELD_COST_WEIGHT
)));
map
.
put
(
FIELD_OVERLAP_DAY
,
StringUtils
.
toString
(
overlapDay
,
eiMetadata
.
getMeta
(
FIELD_OVERLAP_DAY
)));
map
.
put
(
FIELD_REVEAL
,
StringUtils
.
toString
(
reveal
,
eiMetadata
.
getMeta
(
FIELD_REVEAL
)));
map
.
put
(
FIELD_SORT
,
StringUtils
.
toString
(
sort
,
eiMetadata
.
getMeta
(
FIELD_SORT
)));
return
map
;
}
...
...
src/main/java/com/baosight/hggp/hg/sj/sql/HGSJ001.xml
View file @
0c8ed011
...
...
@@ -26,7 +26,9 @@
STATUS as "status",
<!-- 状态0.停止1.启动 -->
COMPUTE_TYPE as "computeType",
COST_WEIGHT as "costWeight",
<!-- 费用权重 -->
OVERLAP_DAY as "overlapDay"
<!-- 前后工序重叠天数 -->
OVERLAP_DAY as "overlapDay",
<!-- 前后工序重叠天数 -->
REVEAL as "reveal",
SORT as "sort"
</sql>
<sql
id=
"condition"
>
...
...
@@ -107,6 +109,12 @@
<isNotEmpty
prepend=
" AND "
property=
"computeType"
>
COMPUTE_TYPE = #computeType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"reveal"
>
REVEAL = #reveal#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"sort"
>
SORT = #sort#
</isNotEmpty>
</sql>
<sql
id=
"orderBy"
>
...
...
@@ -115,7 +123,7 @@
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
CREATED_TIME DESC, ID ASC
SORT,
CREATED_TIME DESC, ID ASC
</isEmpty>
</dynamic>
</sql>
...
...
@@ -152,12 +160,12 @@
PRINC,
<!-- 负责人 -->
PRINC_NAME,
STATUS,
<!-- 状态0.停止1.启动 -->
COMPUTE_TYPE, COST_WEIGHT, OVERLAP_DAY
COMPUTE_TYPE, COST_WEIGHT, OVERLAP_DAY
, REVEAL, SORT
) VALUES (
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#deleteFlag#, #factoryCode#, #factoryName#, #processCode#, #processName#,
#unit#, #standardJob#, #standardDays#, #standardNum#, #princ#, #princName#,
#status#, #computeType#, #costWeight#, #overlapDay#)
#status#, #computeType#, #costWeight#, #overlapDay#
,#reveal#,#sort#
)
</insert>
<delete
id=
"delete"
>
...
...
@@ -195,7 +203,9 @@
STATUS = #status#,
<!-- 状态0.停止1.启动 -->
COMPUTE_TYPE = #computeType#,
COST_WEIGHT = #costWeight#,
OVERLAP_DAY = #overlapDay#
OVERLAP_DAY = #overlapDay#,
REVEAL = #reveal#,
SORT = #sort#
WHERE ID = #id#
</update>
...
...
src/main/java/com/baosight/hggp/hg/yx/domain/HGYX010.java
View file @
0c8ed011
package
com
.
baosight
.
hggp
.
hg
.
yx
.
domain
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
...
...
@@ -558,7 +559,7 @@ public class HGYX010 extends DaoEPBase {
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setSellDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SELL_DATE
)),
sellDate
));
setSellDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_SELL_DATE
)
)),
sellDate
));
setSourceFunds
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_SOURCE_FUNDS
)),
sourceFunds
));
setDistrict
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DISTRICT
)),
district
));
setContent
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CONTENT
)),
content
));
...
...
src/main/java/com/baosight/hggp/hg/zl/service/ServiceHGZL003.java
View file @
0c8ed011
...
...
@@ -85,7 +85,7 @@ public class ServiceHGZL003 extends ServiceBase {
List
<
HGZL003
>
fZl003s
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGZL003
.
class
);
for
(
HGZL003
fZl003
:
fZl003s
)
{
fZl003
.
setCheckDate
(
DateUtils
.
formatShort
(
fZl003
.
getCheckDate
()));
if
(
StringUtils
.
is
Empty
(
fZl003
.
getCheckCode
()))
{
if
(
StringUtils
.
is
Blank
(
fZl003
.
getCheckCode
()))
{
this
.
add
(
fZl003
);
}
else
{
this
.
modify
(
fZl003
);
...
...
src/main/resources/application.properties
View file @
0c8ed011
...
...
@@ -33,11 +33,8 @@ customerName=\u6B66\u6C49\u5B9D\u4FE1\u5927\u6570\u636E\u4E8B\u4E1A\u90E8
enterpriseName
=
\u
6B66
\u
6C49
\u
5B9D
\u
4FE1
\u5927\u6570\u
636E
\u
4E8B
\u
4E1A
\u
90E8
datasource.type
=
dbcp
jdbc.driverClassName
=
com.mysql.cj.jdbc.Driver
#jdbc.url=jdbc:mysql://rm-uf60e9vbmanleydq4.mysql.rds.aliyuncs.com:3306/iplat_hggp?useSSL=false&useUnicode=true&characterEncoding=utf-8
jdbc.url
=
jdbc:mysql://129.211.46.84:3306/iplat_hggp?useSSL=false&useUnicode=true&characterEncoding=utf-8
#jdbc.username=hggp
jdbc.username
=
root
#jdbc.password=hggp_Twhxz2024Aly
jdbc.password
=
Whxz@2019
jdbc.maxActive
=
20
jdbc.validationQuery
=
SELECT 1 FROM ${platSchema}.TEDFA00
...
...
src/main/resources/quartz.properties
View file @
0c8ed011
...
...
@@ -22,11 +22,8 @@ org.quartz.jobStore.isClustered = true
#\u6570\u636E\u5E93\u8FDE\u63A5\u914D\u7F6E\u4FE1\u606F
org.quartz.jobStore.clusterCheckinInterval
=
20000
org.quartz.dataSource.appDS.driver
=
com.mysql.cj.jdbc.Driver
#org.quartz.dataSource.appDS.URL = jdbc:mysql://rm-uf60e9vbmanleydq4.mysql.rds.aliyuncs.com:3306/iplat_hggp?useSSL=false&useUnicode=true&characterEncoding=utf-8
org.quartz.dataSource.appDS.URL
=
jdbc:mysql://129.211.46.84:3306/iplat_hggp?useSSL=false&useUnicode=true&characterEncoding=utf-8
#org.quartz.dataSource.appDS.user = hggp
org.quartz.dataSource.appDS.user
=
root
#org.quartz.dataSource.appDS.password = hggp_Twhxz2024Aly
org.quartz.dataSource.appDS.password
=
Whxz@2019
org.quartz.dataSource.appDS.maxConnections
=
30
...
...
src/main/webapp/HG/BI/components/hipi/002/left-manage-cockpit.vue
View file @
0c8ed011
...
...
@@ -23,15 +23,15 @@
</div>
</div>
<div
class=
"page-content-main"
style=
"flex-wrap: wrap"
>
<div
style=
"width: 45%;height: 30%;display: flex;flex-wrap: wrap;justify-content: space-between;"
v-for=
"(item,index) in queryBySunWt
Date
"
<div
style=
"width: 45%;height: 30%;display: flex;flex-wrap: wrap;justify-content: space-between;"
v-for=
"(item,index) in queryBySunWt
List
"
:key=
"index"
>
<div
class=
"page-content-left"
style=
"position: relative"
>
<div
class=
"data-title-span temp"
>
{{
queryBySunWtList
[
index
]
||
0
}}
</div>
<div
class=
"data-title-span temp"
>
{{
item
.
totalWeight
||
0
}}
</div>
<div
style=
"width: 100%;display: flex;"
class=
"temp"
>
<img
:src=
"`$
{ctx}/common/img/produce-img.png`" class="produce-img " alt/>
</div>
<div
class=
"content-main-footer temp"
data-process=
"组立"
>
{{
queryBySunWtDate
[
index
]
}}
/ 吨
</div>
<div
class=
"content-main-footer temp"
data-process=
"组立"
>
{{
item
.
processName
}}
/ 吨
</div>
<div
style=
"width: 100%;display: flex;"
class=
"temp"
>
<img
:src=
"`$
{ctx}/common/img/produce-put.png`" v-if="index
<
4
"
alt
/>
</div>
...
...
src/main/webapp/HG/SJ/HGSJ001.jsp
View file @
0c8ed011
...
...
@@ -76,6 +76,11 @@
required=
"true"
defaultValue=
"1"
>
<EF:EFCodeOption
codeName=
"hpjx.hpjx.status"
/>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"reveal"
cname=
"驾驶舱显示"
width=
"100"
enable=
"true"
readonly=
"false"
align=
"center"
required=
"false"
defaultValue=
"0"
>
<EF:EFCodeOption
codeName=
"hggp.common.yesNo"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"sort"
cname=
"排序"
width=
"80"
enable=
"true"
readonly=
"false"
align=
"center"
/>
<EF:EFColumn
cname=
"创建人"
ename=
"createdName"
align=
"center"
width=
"100"
readonly=
"true"
required=
"false"
enable=
"false"
/>
<EF:EFColumn
cname=
"创建时间"
ename=
"createdTime"
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
...
...
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