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.
37 lines
1.6 KiB
37 lines
1.6 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.elink.esua.epdc.dao.StreetPersonBaseDao">
|
|
|
|
<resultMap type="com.elink.esua.epdc.entity.StreetPersonBaseEntity" id="streetPersonBaseMap">
|
|
<result property="id" column="ID"/>
|
|
<result property="street" column="STREET"/>
|
|
<result property="streetId" column="STREET_ID"/>
|
|
<result property="residentBaseNum" column="RESIDENT_BASE_NUM"/>
|
|
<result property="partyBaseNum" column="PARTY_BASE_NUM"/>
|
|
<result property="companyBaseNum" column="COMPANY_BASE_NUM"/>
|
|
<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"/>
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
</resultMap>
|
|
|
|
<select id="selectOneStreetPersonBase" resultType="com.elink.esua.epdc.dto.StreetPersonBaseDTO">
|
|
SELECT
|
|
STREET_ID streetId,
|
|
RESIDENT_BASE_NUM residentBaseNum,
|
|
PARTY_BASE_NUM partyBaseNum,
|
|
COMPANY_BASE_NUM companyBaseNum
|
|
FROM epdc_street_person_base
|
|
WHERE STREET_ID = #{streetId} AND DEL_FLAG = 0
|
|
</select>
|
|
|
|
<select id="checkStreetIsExist" resultType="int">
|
|
SELECT
|
|
COUNT(1)
|
|
FROM epdc_street_person_base
|
|
WHERE STREET_ID = #{streetId} AND DEL_FLAG = 0
|
|
</select>
|
|
</mapper>
|