代码提交

This commit is contained in:
2023-06-06 16:43:40 +08:00
parent 2f4d0be940
commit d4372dca40
6 changed files with 33 additions and 1 deletions

View File

@@ -127,5 +127,17 @@ public class EleEpdPqdController extends BaseController {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, map, methodDescribe);
}
@PostMapping("/selectById")
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@ApiOperation("根据id查询字典数据")
@ApiImplicitParam(name = "id", value = "字典id", required = true)
public HttpResult<EleEpdPqd> selectById(@RequestParam("id") @Validated String id){
log.info("根据id查询字典数据");
String methodDescribe = getMethodDescribe("selectById");
LogUtil.njcnDebug(log, "{}根据id查询字典数据:", methodDescribe);
EleEpdPqd eleEpdPqd = eleEpdPqdService.selectById(id);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, eleEpdPqd, methodDescribe);
}
}

View File

@@ -60,4 +60,10 @@ public interface IEleEpdPqdService {
* @param eleEpdPqdParam
*/
Map<String,String> saveEvt(List<EleEpdPqdParam> eleEpdPqdParam);
/**
* 存储事件的字典数据
* @param id
*/
EleEpdPqd selectById(String id);
}

View File

@@ -127,6 +127,11 @@ public class EleEpdPqdServiceImpl extends ServiceImpl<EleEpdPqdMapper, EleEpdPqd
return map;
}
@Override
public EleEpdPqd selectById(String id) {
return this.lambdaQuery().eq(EleEpdPqd::getId,id).one();
}
/**
* 校验参数,
* 1.检查是否存在相同名称的菜单