模版修改
This commit is contained in:
@@ -85,12 +85,7 @@ public class TmplInscBsnRelController implements BusinessControllerMarker {
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:tmpl-insc-bsn-rel:query')")
|
||||
public CommonResult<TmplInscBsnRelRespVO> getTmplInscBsnRel(@RequestParam("id") Long id) {
|
||||
TmplInscBsnRelDO tmplInscBsnRel = tmplInscBsnRelService.getTmplInscBsnRel(id);
|
||||
TmplInscBsnRelRespVO tmplInscBsnRelRespVO = BeanUtils.toBean(tmplInscBsnRel, TmplInscBsnRelRespVO.class);
|
||||
if (tmplInscBsnRelRespVO != null) {
|
||||
tmplInscBsnRelService.getTmplInscBsnRelDetails(tmplInscBsnRelRespVO);
|
||||
}
|
||||
return success(tmplInscBsnRelRespVO);
|
||||
return success(tmplInscBsnRelService.getTmplInscBsnRel(id));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
|
||||
@@ -53,7 +53,7 @@ public interface TmplInscBsnRelService {
|
||||
* @param id 编号
|
||||
* @return 模板实例与业务中间
|
||||
*/
|
||||
TmplInscBsnRelDO getTmplInscBsnRel(Long id);
|
||||
TmplInscBsnRelRespVO getTmplInscBsnRel(Long id);
|
||||
|
||||
/**
|
||||
* 获得模板实例与业务中间分页
|
||||
|
||||
@@ -119,8 +119,14 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public TmplInscBsnRelDO getTmplInscBsnRel(Long id) {
|
||||
return tmplInscBsnRelMapper.selectById(id);
|
||||
public TmplInscBsnRelRespVO getTmplInscBsnRel(Long id) {
|
||||
TmplInscBsnRelDO tmplInscBsnRelDO = tmplInscBsnRelMapper.selectById(id);
|
||||
TmplInscBsnRelRespVO tmplInscBsnRelRespVO = BeanUtils.toBean(tmplInscBsnRelDO, TmplInscBsnRelRespVO.class);
|
||||
if (tmplInscBsnRelRespVO != null){
|
||||
getTmplInscBsnRelDetails(tmplInscBsnRelRespVO);
|
||||
}
|
||||
|
||||
return tmplInscBsnRelRespVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user