代码提交 用章

This commit is contained in:
123 2025-05-16 18:32:05 +08:00
parent 3069c1bc44
commit 238ecbfb78
3 changed files with 34 additions and 1 deletions

View File

@ -19,4 +19,6 @@ public interface LxOaSealMapper extends BaseMapperPlus<LxOaSeal, LxOaSealVVo> {
Page<LxOaSealVVo> queryPageOaSealVoList(@Param("page") Page<LxOaSealVo> page, @Param(Constants.WRAPPER) Wrapper<LxOaSeal> queryWrapper);
LxOaSealVVo queryPageOaSealVoInfo(@Param("id") Long id);
}

View File

@ -71,7 +71,7 @@ public class LxOaSealServiceImpl implements ILxOaSealService {
*/
@Override
public LxOaSealVVo queryById(Long id) {
return baseMapper.selectVoById(id);
return baseMapper.queryPageOaSealVoInfo(id);
}
/**

View File

@ -55,4 +55,35 @@
on m_seal.id = rel.seal_id
${ew.getCustomSqlSegment}
</select>
<select id="queryPageOaSealVoInfo" resultMap="sealUsageWithSealsResultMap">
select oa.id,
oa.tenant_id,
oa.business_type,
oa.seal_date,
oa.take_out_flag,
oa.seal_money,
oa.remark,
oa.status,
oa.create_dept,
oa.create_by,
oa.create_time,
oa.update_by,
oa.update_time,
oa.attachment,
oa.seal_id,
oa.file_name,
oa.file_code,
oa.take_out_start_date,
oa.take_out_end_date,
oa.file_count,
oa.initiator_type,
m_seal.id,
m_seal.seal_type,
m_seal.seal_name
from lx_oa_seal oa
left join lx_oa_seal_relation rel on oa.id = rel.oa_seal_id
left join lx_material_seal m_seal
on m_seal.id = rel.seal_id
where oa.id = #{id}
</select>
</mapper>