Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ask_data_ai_admin
Project
Project
Details
Activity
Releases
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
linyangyang
ask_data_ai_admin
Commits
25f5cb16
Commit
25f5cb16
authored
Aug 01, 2025
by
林洋洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改DCS模板
parent
846aed0e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
20 deletions
+14
-20
ExcelTools.java
...k-data-ai-biz/src/main/java/com/ask/tools/ExcelTools.java
+14
-20
dcs卡件日报模板.docx
...ata-ai/ask-data-ai-boot/src/main/resources/dcs卡件日报模板.docx
+0
-0
No files found.
ask-data-ai/ask-data-ai-biz/src/main/java/com/ask/tools/ExcelTools.java
View file @
25f5cb16
...
@@ -124,7 +124,7 @@ public class ExcelTools {
...
@@ -124,7 +124,7 @@ public class ExcelTools {
return
jsonObject
.
toString
();
return
jsonObject
.
toString
();
}
}
@Tool
(
description
=
"获取天津智深DCS卡件日报"
)
@Tool
(
description
=
"获取天津智深DCS卡件日报"
,
returnDirect
=
true
)
public
String
getDcsFile
(
@ToolParam
(
description
=
"时间(yyyy-M-d)"
)
String
dateStr
)
{
public
String
getDcsFile
(
@ToolParam
(
description
=
"时间(yyyy-M-d)"
)
String
dateStr
)
{
var
ref
=
new
Object
()
{
var
ref
=
new
Object
()
{
...
@@ -132,15 +132,15 @@ public class ExcelTools {
...
@@ -132,15 +132,15 @@ public class ExcelTools {
"\n"
+
"\n"
+
"| 产线 | 计划产量 | 实际产量 | 成品率 |\n"
+
"| 产线 | 计划产量 | 实际产量 | 成品率 |\n"
+
"| --- | --- | --- | --- |\n"
+
"| --- | --- | --- | --- |\n"
+
"| iICTS |
@天津智深数据.iICTS_MoQty | @天津智深数据.iICTS_CompletionQty | @天津智深数据.
iICTS_OKRate |\n"
+
"| iICTS |
iICTS_MoQty | iICTS_CompletionQty |
iICTS_OKRate |\n"
+
"| iAS |
@天津智深数据.日iAS计划数量 | @天津智深数据.iAS_CompletionQty | @天津智深数据.
iAS_OKRate |\n"
+
"| iAS |
日iAS计划数量 | iAS_CompletionQty |
iAS_OKRate |\n"
+
"| iSMTS |
@天津智深数据.iSMTS_MoQty | @天津智深数据.iSMTS_CompletionQty | @天津智深数据.
iSMTS_OKRate |\n"
+
"| iSMTS |
iSMTS_MoQty | iSMTS_CompletionQty |
iSMTS_OKRate |\n"
+
"| iDIPS |
@天津智深数据.iDIPS_MoQty | @天津智深数据.iDIPS_CompletionQty | @天津智深数据.
iDIPS_OKRate |\n"
+
"| iDIPS |
iDIPS_MoQty | iDIPS_CompletionQty |
iDIPS_OKRate |\n"
+
"| iFCTS |
@天津智深数据.iFCTS_MoQty | @天津智深数据.iFCTS_CompletionQty | @天津智深数据.
iFCTS_OKRate |\n"
+
"| iFCTS |
iFCTS_MoQty | iFCTS_CompletionQty |
iFCTS_OKRate |\n"
+
"| iCCS |
@天津智深数据.iCCS_MoQty | @天津智深数据.iCCS_CompletionQty | @天津智深数据.
iDIPS_OKRate |\n"
+
"| iCCS |
iCCS_MoQty | iCCS_CompletionQty |
iDIPS_OKRate |\n"
+
"| iPS |
@天津智深数据.iPS_MoQty | @天津智深数据.
iPS_CompletionQty | \\- |\n"
+
"| iPS |
iPS_MoQty |
iPS_CompletionQty | \\- |\n"
+
"| iBS |
@天津智深数据.iBS_MoQty | @天津智深数据.iBS_CompletionQty | @天津智深数据.
iBS_OKRate |\n"
+
"| iBS |
iBS_MoQty | iBS_CompletionQty |
iBS_OKRate |\n"
+
"| **总计** |
@天津智深数据.今日_PlanQty | @天津智深数据.
今日生产成品 | \\- |\n"
+
"| **总计** |
今日_PlanQty |
今日生产成品 | \\- |\n"
+
"\n"
+
"\n"
+
"下载连接:[@fileName](@fileUrl)"
;
"下载连接:[@fileName](@fileUrl)"
;
};
};
...
@@ -253,17 +253,11 @@ public class ExcelTools {
...
@@ -253,17 +253,11 @@ public class ExcelTools {
Map
<
String
,
Double
>
result
=
askHistoryCollectDataList
.
stream
()
Map
<
String
,
Double
>
result
=
askHistoryCollectDataList
.
stream
()
.
collect
(
Collectors
.
toMap
(
.
collect
(
Collectors
.
toMap
(
AskHistoryCollectData:
:
getPath
,
// 获取 path 作为键
data
->
data
.
getPath
().
replace
(
"@天津智深数据."
,
""
),
// 去掉 @
AskHistoryCollectData:
:
getValue
,
// 获取 value 作为值
AskHistoryCollectData:
:
getValue
,
(
existingValue
,
newValue
)
->
existingValue
//
如果有重复的键,这里决定如何处理。这里选择保留现有的值。
(
existingValue
,
newValue
)
->
existingValue
//
保留第一个值
));
));
params
.
forEach
(
param
->
{
paramMap
.
putAll
(
result
);
paramMap
.
put
(
param
,
""
);
if
(
result
.
containsKey
(
param
))
{
paramMap
.
put
(
param
,
result
.
get
(
param
));
}
});
return
paramMap
;
return
paramMap
;
}
}
...
...
ask-data-ai/ask-data-ai-boot/src/main/resources/dcs卡件日报模板.docx
View file @
25f5cb16
No preview for this file type
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