模版修改

This commit is contained in:
潘荣晟
2025-11-11 17:10:00 +08:00
parent 49fbe4c6f8
commit 5b55175310
4 changed files with 13 additions and 9 deletions

View File

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

View File

@@ -53,7 +53,7 @@ public interface TmplInscBsnRelService {
* @param id 编号
* @return 模板实例与业务中间
*/
TmplInscBsnRelDO getTmplInscBsnRel(Long id);
TmplInscBsnRelRespVO getTmplInscBsnRel(Long id);
/**
* 获得模板实例与业务中间分页

View File

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