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.
45 lines
1.5 KiB
45 lines
1.5 KiB
<?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.ExternalCustomerDao">
|
|
|
|
<resultMap type="com.epmet.entity.ExternalCustomerEntity" id="externalCustomerMap">
|
|
<result property="id" column="ID"/>
|
|
<result property="customerName" column="CUSTOMER_NAME"/>
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
<result property="revision" column="REVISION"/>
|
|
<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="listBaseInfo" resultType="com.epmet.dto.result.ExternalCustomerResultDTO">
|
|
SELECT
|
|
id customerId,
|
|
CUSTOMER_NAME
|
|
FROM
|
|
external_customer
|
|
WHERE
|
|
DEL_FLAG = 0
|
|
</select>
|
|
|
|
<select id="getByCustomerName" resultType="com.epmet.dto.result.ExternalCustomerResultDTO">
|
|
SELECT
|
|
ID, CUSTOMER_NAME
|
|
from
|
|
external_customer
|
|
WHERE CUSTOMER_NAME = #{customerName}
|
|
</select>
|
|
|
|
<select id="countByCustomerName" resultType="int">
|
|
SELECT
|
|
count(1)
|
|
from
|
|
external_customer
|
|
WHERE CUSTOMER_NAME = #{customerName}
|
|
</select>
|
|
|
|
|
|
</mapper>
|