Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fill-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
fill-system
Commits
54a8c009
Commit
54a8c009
authored
Feb 17, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改热门词汇
parent
cb2dd0da
Pipeline
#2473
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
fill-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
...als/xhx/module/device/service/impl/DeviceServiceImpl.java
+4
-1
fill-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
...a/com/mortals/xhx/module/device/web/DeviceController.java
+11
-0
No files found.
fill-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
View file @
54a8c009
...
@@ -46,6 +46,7 @@ public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, Device
...
@@ -46,6 +46,7 @@ public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, Device
String
productName
=
GlobalSysInfo
.
getParamValue
(
Constant
.
PARAMS_PRODUCT_NAME
,
"填单机"
);
String
productName
=
GlobalSysInfo
.
getParamValue
(
Constant
.
PARAMS_PRODUCT_NAME
,
"填单机"
);
devicePdu
.
setProductName
(
productName
);
devicePdu
.
setProductName
(
productName
);
devicePdu
.
setSiteId
(
entity
.
getSiteId
());
Rest
<
RespData
<
List
<
DevicePdu
>>>
rest
=
deviceFeign
.
list
(
devicePdu
);
Rest
<
RespData
<
List
<
DevicePdu
>>>
rest
=
deviceFeign
.
list
(
devicePdu
);
if
(
rest
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
if
(
rest
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
...
@@ -55,10 +56,12 @@ public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, Device
...
@@ -55,10 +56,12 @@ public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, Device
return
deviceEntity
;
return
deviceEntity
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
result
.
setList
(
collect
);
result
.
setList
(
collect
);
result
.
setDict
(
rest
.
getDict
());
result
.
setDict
(
rest
.
getDict
());
}
}
this
.
findAfter
(
entity
,
pageInfo
,
context
,
result
.
getList
());
return
result
;
return
result
;
}
}
}
}
\ No newline at end of file
fill-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
View file @
54a8c009
package
com.mortals.xhx.module.device.web
;
package
com.mortals.xhx.module.device.web
;
import
com.alibaba.fastjson.JSON
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.service.DeviceService
;
import
com.mortals.xhx.module.device.service.DeviceService
;
...
@@ -7,6 +11,8 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -7,6 +11,8 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Map
;
/**
/**
* 设备
* 设备
*
*
...
@@ -19,4 +25,9 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -19,4 +25,9 @@ import org.springframework.web.bind.annotation.RestController;
public
class
DeviceController
extends
BaseCRUDJsonBodyMappingController
<
DeviceService
,
DeviceEntity
,
Long
>
{
public
class
DeviceController
extends
BaseCRUDJsonBodyMappingController
<
DeviceService
,
DeviceEntity
,
Long
>
{
@Override
protected
int
doListAfter
(
DeviceEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
log
.
info
(
"result:{}"
,
JSON
.
toJSONString
(
model
));
return
super
.
doListAfter
(
query
,
model
,
context
);
}
}
}
\ No newline at end of file
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