|
|
@ -1,9 +1,9 @@ |
|
|
|
<?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="io.pingyin.modules.personroom.dao.EpidemicPlotBuildingDao"> |
|
|
|
<mapper namespace="com.elink.esua.epdc.modules.personroom.dao.EpidemicPlotBuildingDao"> |
|
|
|
|
|
|
|
<resultMap type="io.pingyin.modules.personroom.entity.EpidemicPlotBuildingEntity" id="epidemicPlotBuildingMap"> |
|
|
|
<resultMap type="com.elink.esua.epdc.modules.personroom.entity.EpidemicPlotBuildingEntity" id="epidemicPlotBuildingMap"> |
|
|
|
<result property="id" column="ID"/> |
|
|
|
<result property="plotId" column="PLOT_ID"/> |
|
|
|
<result property="buildingName" column="BUILDING_NAME"/> |
|
|
@ -19,7 +19,7 @@ |
|
|
|
<result property="delFlag" column="DEL_FLAG"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<select id="selectByPlotId" resultType="io.pingyin.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
<select id="selectByPlotId" resultType="com.elink.esua.epdc.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
SELECT |
|
|
|
id |
|
|
|
FROM |
|
|
@ -134,7 +134,7 @@ |
|
|
|
order by building_code desc |
|
|
|
limit 1 |
|
|
|
</select> |
|
|
|
<select id="selectByGridPlotAndName" resultType="io.pingyin.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
<select id="selectByGridPlotAndName" resultType="com.elink.esua.epdc.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
select * |
|
|
|
from epidemic_plot_building |
|
|
|
where del_flag = '0' |
|
|
@ -144,19 +144,19 @@ |
|
|
|
and GRID_ID=#{gridId} |
|
|
|
and BUILDING_NAME = #{buildingName} |
|
|
|
</select> |
|
|
|
<select id="selectByBuildingCode" resultType="io.pingyin.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
<select id="selectByBuildingCode" resultType="com.elink.esua.epdc.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
select id,BUILDING_NAME |
|
|
|
from epidemic_plot_building |
|
|
|
where del_flag = '0' |
|
|
|
and building_code=#{buildingCode} |
|
|
|
</select> |
|
|
|
<select id="selectExistUpdate" resultType="io.pingyin.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
<select id="selectExistUpdate" resultType="com.elink.esua.epdc.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
select * from epidemic_plot_building |
|
|
|
where del_flag = '0' |
|
|
|
and building_code=#{buildingCode} |
|
|
|
and id!=#{id} |
|
|
|
</select> |
|
|
|
<select id="selectExistByName" resultType="io.pingyin.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
<select id="selectExistByName" resultType="com.elink.esua.epdc.modules.personroom.entity.EpidemicPlotBuildingEntity"> |
|
|
|
select * |
|
|
|
from epidemic_plot_building |
|
|
|
where del_flag = '0' |
|
|
|