From 9b51b2a07769ee049937e16dd45d8c36c87dcc3c Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 08 十二月 2023 17:13:01 +0800 Subject: [PATCH] 主数据 枚举配置模板配置 参照配置表格显示问题处理 --- Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClassifyValueMapper.xml | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClassifyValueMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClassifyValueMapper.xml index 7918a49..25fe4da 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClassifyValueMapper.xml +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeClassifyValueMapper.xml @@ -2,5 +2,33 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.vci.ubcs.code.mapper.CodeClassifyValueMapper"> + <select id="selectAllLevelChildOid" resultType="java.lang.String"> + SELECT OID + FROM PL_CODE_CLASSIFYVALUE + START WITH PARENTCLASSIFYVALUEOID = #{oid} + CONNECT BY PRIOR PARENTCLASSIFYVALUEOID = OID + </select> + + <select id="selectChildOid" resultType="java.lang.String"> + select OID from PL_CODE_CLASSIFYVALUE where PARENTCLASSIFYVALUEOID =#{oid} + </select> + + <select id="countAllLevelChildOid" resultType="java.lang.Long"> + select count(OID) countsize + FROM PL_CODE_CLASSIFYVALUE + START WITH PARENTCLASSIFYVALUEOID = #{oid} + CONNECT BY PRIOR PARENTCLASSIFYVALUEOID = OID + </select> + + + <select id="getClassifyValueStr" resultType="java.lang.String"> + SELECT + listagg(PCC.ID,'-') WITHIN GROUP(ORDER BY PCC.ORDERNUM ASC) + FROM + PL_CODE_CLASSIFYVALUE PCC + WHERE + PCC.CODECLASSIFYSECOID = #{oid} + </select> + </mapper> -- Gitblit v1.9.3