fix(equipment): 修复设备保养配置查询逻辑
This commit is contained in:
parent
74f3f429c0
commit
4987f328f2
@ -55,6 +55,9 @@ public class EqMainConfigController {
|
|||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public ActionResult info(@PathVariable("id") Integer id) {
|
public ActionResult info(@PathVariable("id") Integer id) {
|
||||||
EqMainConfigEntity entity = eqMainConfigService.getInfo(id);
|
EqMainConfigEntity entity = eqMainConfigService.getInfo(id);
|
||||||
|
if (entity == null) {
|
||||||
|
return ActionResult.fail("该设备保养配置不存在,请刷新界面!");
|
||||||
|
}
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
Map<String, Object> result = JsonUtil.entityToMap(entity);
|
Map<String, Object> result = JsonUtil.entityToMap(entity);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user