模版修改

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") @Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('base:tmpl-insc-bsn-rel:query')") @PreAuthorize("@ss.hasPermission('base:tmpl-insc-bsn-rel:query')")
public CommonResult<TmplInscBsnRelRespVO> getTmplInscBsnRel(@RequestParam("id") Long id) { public CommonResult<TmplInscBsnRelRespVO> getTmplInscBsnRel(@RequestParam("id") Long id) {
TmplInscBsnRelDO tmplInscBsnRel = tmplInscBsnRelService.getTmplInscBsnRel(id); return success(tmplInscBsnRelService.getTmplInscBsnRel(id));
TmplInscBsnRelRespVO tmplInscBsnRelRespVO = BeanUtils.toBean(tmplInscBsnRel, TmplInscBsnRelRespVO.class);
if (tmplInscBsnRelRespVO != null) {
tmplInscBsnRelService.getTmplInscBsnRelDetails(tmplInscBsnRelRespVO);
}
return success(tmplInscBsnRelRespVO);
} }
@GetMapping("/page") @GetMapping("/page")

View File

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

View File

@@ -119,8 +119,14 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
} }
@Override @Override
public TmplInscBsnRelDO getTmplInscBsnRel(Long id) { public TmplInscBsnRelRespVO getTmplInscBsnRel(Long id) {
return tmplInscBsnRelMapper.selectById(id); TmplInscBsnRelDO tmplInscBsnRelDO = tmplInscBsnRelMapper.selectById(id);
TmplInscBsnRelRespVO tmplInscBsnRelRespVO = BeanUtils.toBean(tmplInscBsnRelDO, TmplInscBsnRelRespVO.class);
if (tmplInscBsnRelRespVO != null){
getTmplInscBsnRelDetails(tmplInscBsnRelRespVO);
}
return tmplInscBsnRelRespVO;
} }
@Override @Override

View File

@@ -19,6 +19,7 @@
po.SPLR_NUM, po.SPLR_NUM,
po.SPLR_NAME, po.SPLR_NAME,
po.TP, po.TP,
po.MTRG_TP,
po.VCHR_DT, po.VCHR_DT,
po.PRCH_ORGZ_CD, po.PRCH_ORGZ_CD,
po.RCV_FACT_NAME, po.RCV_FACT_NAME,
@@ -143,6 +144,7 @@
po.PPR_CTRT_NUM, po.PPR_CTRT_NUM,
po.AGR_NUM, po.AGR_NUM,
po.RMK, po.RMK,
po.MTRG_TP,
po.UNT, po.UNT,
po.AGT_NUM, po.AGT_NUM,
po.AGT_NAME, po.AGT_NAME,
@@ -264,6 +266,7 @@
<result column="PPR_CTRT_NUM" property="paperContractNumber"/> <result column="PPR_CTRT_NUM" property="paperContractNumber"/>
<result column="AGR_NUM" property="agreementNumber"/> <result column="AGR_NUM" property="agreementNumber"/>
<result column="RMK" property="remark"/> <result column="RMK" property="remark"/>
<result column="MTRG_TP" property="meteringType"/>
<result column="AGT_NUM" property="agentNumber"/> <result column="AGT_NUM" property="agentNumber"/>
<result column="AGT_NAME" property="agentName"/> <result column="AGT_NAME" property="agentName"/>
<result column="CTRT_NUM" property="contractNumber"/> <result column="CTRT_NUM" property="contractNumber"/>