You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
5 years ago
|
<?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="com.epmet.dao.CodeExtDao">
|
||
|
|
||
|
<resultMap type="com.epmet.entity.CodeExtEntity" id="codeExtMap">
|
||
|
<result property="id" column="ID"/>
|
||
|
<result property="customerId" column="CUSTOMER_ID"/>
|
||
|
<result property="clientType" column="CLIENT_TYPE"/>
|
||
|
<result property="appId" column="APP_ID"/>
|
||
|
<result property="extJson" column="EXT_JSON"/>
|
||
|
<result property="revision" column="REVISION"/>
|
||
|
<result property="delFlag" column="DEL_FLAG"/>
|
||
|
<result property="createdBy" column="CREATED_BY"/>
|
||
|
<result property="createdTime" column="CREATED_TIME"/>
|
||
|
<result property="updatedBy" column="UPDATED_BY"/>
|
||
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
||
|
</resultMap>
|
||
|
<select id="selectExtTemplate" resultType="java.lang.String">
|
||
|
SELECT
|
||
|
EXT_JSON
|
||
|
FROM
|
||
|
code_ext
|
||
|
WHERE
|
||
|
DEL_FLAG = '0'
|
||
|
AND CUSTOMER_ID = '*'
|
||
|
AND CLIENT_TYPE = #{clientType}
|
||
|
</select>
|
||
|
<select id="selectExtByCustomerId" resultType="com.epmet.dto.CodeExtDTO">
|
||
|
SELECT
|
||
|
*
|
||
|
FROM
|
||
|
code_ext
|
||
|
WHERE
|
||
|
DEL_FLAG = '0'
|
||
|
AND CUSTOMER_ID = #{customerId}
|
||
|
AND CLIENT_TYPE = #{clientType}
|
||
|
</select>
|
||
|
|
||
|
|
||
|
</mapper>
|