Browse Source

人房管理代码迁移

feature/codemove
wanggongfeng 3 years ago
parent
commit
ffe065eb4f
  1. 14
      epdc-cloud-custom/src/main/resources/mapper/personroom/EpidemicPlotBuildingDao.xml

14
epdc-cloud-custom/src/main/resources/mapper/personroom/EpidemicPlotBuildingDao.xml

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

Loading…
Cancel
Save