Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
a4d2a5b3
Commit
a4d2a5b3
authored
Jan 06, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):延炼八大类设备导入
parent
af793dfb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
EquCategoryConverter.java
...os/boot/module/jg/api/converter/EquCategoryConverter.java
+10
-1
EquDefineConverter.java
...amos/boot/module/jg/api/converter/EquDefineConverter.java
+9
-0
DataDockController.java
...mos/boot/module/jg/biz/controller/DataDockController.java
+8
-0
DataDockServiceImpl.java
.../boot/module/jg/biz/service/impl/DataDockServiceImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/converter/EquCategoryConverter.java
View file @
a4d2a5b3
...
@@ -11,7 +11,7 @@ import java.util.Map;
...
@@ -11,7 +11,7 @@ import java.util.Map;
public
class
EquCategoryConverter
implements
Converter
<
String
>
{
public
class
EquCategoryConverter
implements
Converter
<
String
>
{
p
rivate
static
final
Map
<
String
,
String
>
equipmentMap
=
new
HashMap
<>();
p
ublic
static
final
Map
<
String
,
String
>
equipmentMap
=
new
HashMap
<>();
static
{
static
{
// 填充映射关系
// 填充映射关系
...
@@ -80,4 +80,13 @@ public class EquCategoryConverter implements Converter<String> {
...
@@ -80,4 +80,13 @@ public class EquCategoryConverter implements Converter<String> {
public
CellData
convertToExcelData
(
String
o
,
ExcelContentProperty
excelContentProperty
,
GlobalConfiguration
globalConfiguration
)
throws
Exception
{
public
CellData
convertToExcelData
(
String
o
,
ExcelContentProperty
excelContentProperty
,
GlobalConfiguration
globalConfiguration
)
throws
Exception
{
return
new
CellData
(
""
);
return
new
CellData
(
""
);
}
}
public
static
String
getKeyByValue
(
String
value
)
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
equipmentMap
.
entrySet
())
{
if
(
entry
.
getValue
().
equals
(
value
))
{
return
entry
.
getKey
();
}
}
return
null
;
}
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/converter/EquDefineConverter.java
View file @
a4d2a5b3
...
@@ -108,4 +108,13 @@ public class EquDefineConverter implements Converter<String> {
...
@@ -108,4 +108,13 @@ public class EquDefineConverter implements Converter<String> {
public
CellData
convertToExcelData
(
String
o
,
ExcelContentProperty
excelContentProperty
,
GlobalConfiguration
globalConfiguration
)
throws
Exception
{
public
CellData
convertToExcelData
(
String
o
,
ExcelContentProperty
excelContentProperty
,
GlobalConfiguration
globalConfiguration
)
throws
Exception
{
return
new
CellData
(
""
);
return
new
CellData
(
""
);
}
}
public
static
String
getKeyByValue
(
String
value
)
{
for
(
Map
.
Entry
<
String
,
String
>
entry
:
equipmentMap
.
entrySet
())
{
if
(
entry
.
getValue
().
equals
(
value
))
{
return
entry
.
getKey
();
}
}
return
null
;
}
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/DataDockController.java
View file @
a4d2a5b3
...
@@ -58,5 +58,13 @@ public class DataDockController {
...
@@ -58,5 +58,13 @@ public class DataDockController {
}
}
return
ResponseHelper
.
buildResponse
(
dataDockService
.
dataCheckAndImportEquipmentData
(
remark
,
file
));
return
ResponseHelper
.
buildResponse
(
dataDockService
.
dataCheckAndImportEquipmentData
(
remark
,
file
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/delete"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"八大类历史设备导入shanchu"
,
notes
=
"八大类历史设备导入shachu"
)
public
Object
importData
()
{
dataDockService
.
delete
();
return
ResponseHelper
.
buildResponse
(
"ok"
);
}
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/DataDockServiceImpl.java
View file @
a4d2a5b3
This diff is collapsed.
Click to expand it.
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