fix(equipment): 修复设备保养配置查询逻辑

This commit is contained in:
zxy 2026-04-22 16:15:43 +08:00
parent 74f3f429c0
commit 4987f328f2

View File

@ -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);