WholeProcessPlatform/backend/src/main/resources/mapper/qgc_base/SdHbrvDicMapper.xml

52 lines
2.0 KiB
XML
Raw Normal View History

2026-04-27 11:24:42 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2026-05-29 11:04:27 +08:00
<mapper namespace="com.yfd.platform.qgc_base.mapper.SdHbrvDicMapper">
2026-04-27 11:24:42 +08:00
2026-05-29 11:04:27 +08:00
<resultMap id="BaseResultMap" type="com.yfd.platform.qgc_base.domain.SdHbrvDic">
2026-04-27 11:24:42 +08:00
<id column="HBRVCD" property="hbrvcd"/>
<result column="HBRVNM" property="hbrvnm"/>
2026-06-04 14:50:59 +08:00
<result column="PHBRVCD" property="phbrvcd"/>
<result column="BASEID" property="baseid"/>
2026-04-27 11:24:42 +08:00
<result column="GRD" property="grd"/>
<result column="PATH" property="path"/>
<result column="ORDER_INDEX" property="orderIndex"/>
2026-06-04 14:50:59 +08:00
<result column="REMARK" property="remark"/>
2026-04-27 11:24:42 +08:00
<result column="ENABLED" property="enabled"/>
2026-06-04 14:50:59 +08:00
<result column="RECORD_USER" property="recordUser"/>
<result column="RECORD_TIME" property="recordTime"/>
<result column="MODIFY_USER" property="modifyUser"/>
<result column="MODIFY_TIME" property="modifyTime"/>
<result column="IS_DELETED" property="isDeleted"/>
<result column="DELETE_USER" property="deleteUser"/>
<result column="DELETE_TIME" property="deleteTime"/>
2026-04-27 11:24:42 +08:00
</resultMap>
<select id="selectByBaseid" resultMap="BaseResultMap">
SELECT * FROM SD_HBRV_DIC
WHERE BASEID = #{baseid}
2026-06-04 14:50:59 +08:00
AND NVL(ENABLED, 1) = 1
AND NVL(IS_DELETED, 0) = 0
2026-04-27 11:24:42 +08:00
ORDER BY ORDER_INDEX ASC
</select>
<select id="selectByPhycd" resultMap="BaseResultMap">
SELECT * FROM SD_HBRV_DIC
2026-06-04 14:50:59 +08:00
WHERE PHBRVCD = #{hbrvcd}
AND NVL(ENABLED, 1) = 1
AND NVL(IS_DELETED, 0) = 0
<if test="baseid != null and baseid != ''">
2026-04-27 11:24:42 +08:00
AND BASEID = #{baseid}
2026-06-04 14:50:59 +08:00
</if>
2026-04-27 11:24:42 +08:00
ORDER BY ORDER_INDEX ASC
</select>
<select id="selectEnabledList" resultMap="BaseResultMap">
SELECT * FROM SD_HBRV_DIC
2026-06-04 14:50:59 +08:00
WHERE NVL(ENABLED, 1) = 1
AND NVL(IS_DELETED, 0) = 0
2026-04-27 11:24:42 +08:00
ORDER BY ORDER_INDEX ASC
</select>
2026-06-04 14:50:59 +08:00
</mapper>