<?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">
|
<mapper namespace="jnpf.dmsMapper.DmsWenjianBianhaoGuizeZixiangMapper">
|
|
<resultMap id="BaseResultMap" type="jnpf.dmsEntity.DmsWenjianBianhaoGuizeZixiangEntity">
|
<id column="f_id" property="id"/>
|
<result column="f_tenant_id" property="tenantId"/>
|
<result column="f_delete_mark" property="deleteMark"/>
|
<result column="f_foreign_id" property="foreignId"/>
|
<result column="bianhao_zuhe_leixing" property="bianhaoZuheLeixing"/>
|
<result column="zhi" property="zhi"/>
|
<result column="fengefu" property="fengefu"/>
|
</resultMap>
|
|
<select id="selectActiveByRule" resultMap="BaseResultMap">
|
SELECT f_id, f_tenant_id, f_delete_mark, f_foreign_id,
|
bianhao_zuhe_leixing, zhi, fengefu
|
FROM dms_wenjian_bianhao_guize_zixiang
|
WHERE f_tenant_id = #{tenantId}
|
AND f_foreign_id = #{ruleId}
|
AND (f_delete_mark IS NULL OR f_delete_mark <> 1)
|
ORDER BY f_id ASC
|
</select>
|
|
</mapper>
|