feature (办公基价迁移): 完成办公计价迁移
1. 办公案例下载 2. 办公案例清洗 3. 办公基价计算 4. 办公基价导入 5. 物业基价菜单调整 6. 住宅租赁挂牌案例下载 7. 住宅租赁案例清洗
This commit is contained in:
@ -2,13 +2,13 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.price.mapper.ArtificialResidenceRentPriceMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.price.mapper.ArtificialResidenceRentPriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.ArtificialResidenceRentBasePrice"
|
||||
<resultMap type="com.uvaluation.project.data.price.domain.ArtificialResidenceRentBasePrice"
|
||||
id="MainMappingResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="communityId" column="ProjectID"/>
|
||||
<result property="mainRentCoefficient" column="MainCoff_Rent"/>
|
||||
<result property="mainCoefficientRent" column="MainCoff_Rent"/>
|
||||
<result property="mainRentPrice" column="MainRentPrice"/>
|
||||
<result property="rentPrice" column="RentPrice"/>
|
||||
<result property="rentPrice_1" column="rentPrice_1"/>
|
||||
@ -22,7 +22,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectPageCount"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceRentBasePrice" resultType="int">
|
||||
parameterType="com.uvaluation.project.data.price.domain.ArtificialResidenceRentBasePrice" resultType="int">
|
||||
select count(1) from DWA_PROJECTBASEPRICE_RENT_MANU_${yearMonth}
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
@ -32,7 +32,7 @@
|
||||
</select>
|
||||
<!-- 分页 -->
|
||||
<select id="selectPageList"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceRentBasePrice"
|
||||
parameterType="com.uvaluation.project.data.price.domain.ArtificialResidenceRentBasePrice"
|
||||
resultMap="MainMappingResult">
|
||||
SELECT ID,ProjectID,MainCoff_Rent,RentPrice,MainRentPrice,RentPrice_1,VOPPAT,VOPPA
|
||||
FROM dbo.DWA_PROJECTBASEPRICE_RENT_MANU_${yearMonth}
|
||||
@ -45,7 +45,7 @@
|
||||
</select>
|
||||
|
||||
<!-- 获取表名 -->
|
||||
<select id="yearMonthList" resultType="com.ruoyi.project.common.VueSelectModel">
|
||||
<select id="yearMonthList" resultType="com.uvaluation.project.common.VueSelectModel">
|
||||
SELECT right(name,6) as value, right(name,6) as label
|
||||
FROM sys.tables
|
||||
where name like 'DWA_PROJECTBASEPRICE_RENT_MANU_%' and name not like '%_bak'
|
||||
@ -63,19 +63,24 @@
|
||||
truncate table DWA_PROJECTBASEPRICE_RENT_MANU_${yearMonth};
|
||||
</update>
|
||||
<!-- 更新人工修正租赁基价-->
|
||||
<update id="update" parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceRentBasePrice">
|
||||
<update id="update" parameterType="com.uvaluation.project.data.price.domain.ArtificialResidenceRentBasePrice">
|
||||
update dbo.DWA_PROJECTBASEPRICE_RENT_MANU_${yearMonth}
|
||||
set RentPrice=#{rentPrice},MainRentPrice=#{mainRentPrice},VOPPAT=#{voppat},VOPPA=#{voppa},RentPrice_1=#{rentPrice_1}
|
||||
,ModifyDate=getdate()
|
||||
where ID=#{id}
|
||||
</update>
|
||||
<update id="initProcedure">
|
||||
IF OBJECT_ID('BatchImportOfArtificialResidenceRent', 'P') IS NOT NULL
|
||||
drop procedure BatchImportOfArtificialResidenceRent;
|
||||
</update>
|
||||
<!-- 创建存储过程-->
|
||||
<update id="prepareBachImport" parameterType="int">
|
||||
create procedure dbo.BatchImportOfArtificialResidenceRent @table DWA_PROJECTBASEPRICE_RENT_MANU_Table readonly
|
||||
as
|
||||
begin
|
||||
insert into dbo.DWA_PROJECTBASEPRICE_RENT_MANU_${yearMonth}(ProjectID,MainCoff_Rent,RentPrice,MainRentPrice,RentPrice_1,VOPPAT,VOPPA,ModifyDate )
|
||||
select ProjectID,MainCoff_Rent,RentPrice,MainRentPrice,RentPrice_1,VOPPAT,VOPPA,ModifyDate
|
||||
insert into
|
||||
dbo.DWA_PROJECTBASEPRICE_RENT_MANU_${yearMonth}(ID,ProjectID,MainCoff_Rent,RentPrice,MainRentPrice,RentPrice_1,VOPPAT,VOPPA,ModifyDate)
|
||||
select id,ProjectID,MainCoff_Rent,RentPrice,MainRentPrice,RentPrice_1,VOPPAT,VOPPA,getdate()
|
||||
from @table;
|
||||
end;
|
||||
</update>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.price.mapper.ArtificialResidenceSaleBasePriceMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.price.mapper.ArtificialResidenceSalePriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.ArtificialResidenceSaleBasePrice"
|
||||
<resultMap type="com.uvaluation.project.data.price.domain.ArtificialResidenceSaleBasePrice"
|
||||
id="MainMappingResult">
|
||||
<result property="communityId" column="ProjectID"/>
|
||||
<result property="communityName" column="ProjectName"/>
|
||||
@ -134,7 +134,7 @@
|
||||
</sql>
|
||||
<!-- 分页总数 -->
|
||||
<select id="selectPageCount"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceSaleBasePrice" resultType="int">
|
||||
parameterType="com.uvaluation.project.data.price.domain.ArtificialResidenceSaleBasePrice" resultType="int">
|
||||
select count(1) from dbo.DWA_PROJECTBASEPRICE_MANU_${yearMonth}
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
@ -148,7 +148,7 @@
|
||||
</select>
|
||||
<!-- 分页列表 -->
|
||||
<select id="selectPageList"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceSaleBasePrice"
|
||||
parameterType="com.uvaluation.project.data.price.domain.ArtificialResidenceSaleBasePrice"
|
||||
resultMap="MainMappingResult">
|
||||
<include refid="selectAllField"/>
|
||||
<where>
|
||||
@ -169,7 +169,7 @@
|
||||
where id = #{id}
|
||||
</select>
|
||||
<!-- 获取表名 -->
|
||||
<select id="yearMonthList" resultType="com.ruoyi.project.common.VueSelectModel">
|
||||
<select id="yearMonthList" resultType="com.uvaluation.project.common.VueSelectModel">
|
||||
SELECT right(name,6) as value, right(name,6) as label
|
||||
FROM sys.tables
|
||||
where name like 'DWA_PROJECTBASEPRICE_MANU_%'
|
||||
@ -177,13 +177,13 @@
|
||||
</select>
|
||||
|
||||
<!-- 修改价格信息(基价、主力基价、上月基价、幅度)、注意修改上期基价问题、还要把基价更新一下。 -->
|
||||
<update id="updateEntity" parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceSaleBasePrice">
|
||||
<update id="updateEntity" parameterType="com.uvaluation.project.data.price.domain.ArtificialResidenceSaleBasePrice">
|
||||
update dbo.DWA_PROJECTBASEPRICE_MANU_${yearMonth} set
|
||||
BasePrice=#{basePrice},mainPrice=#{mainPrice},BasePrice_1=#{basePrice_1},VOPPAT=#{voppat},VOPPA=#{voppa},
|
||||
PriceNote=#{comment}
|
||||
where ProjectID=#{communityId};
|
||||
</update>
|
||||
<update id="initImport">
|
||||
<update id="initProcedure">
|
||||
IF OBJECT_ID('BatchImportOfArtificialResidenceSale', 'P') IS NOT NULL
|
||||
drop procedure BatchImportOfArtificialResidenceSale;
|
||||
</update>
|
||||
@ -198,7 +198,7 @@
|
||||
from @table;
|
||||
end;
|
||||
</update>
|
||||
<insert id="insert" parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceSaleBasePrice">
|
||||
<insert id="insert" parameterType="com.uvaluation.project.data.price.domain.ArtificialResidenceSaleBasePrice">
|
||||
insert into dbo.DWA_PROJECTBASEPRICE_MANU_${yearMonth}
|
||||
(
|
||||
ProjectID
|
||||
@ -322,7 +322,7 @@
|
||||
)
|
||||
</insert>
|
||||
<!-- 同步到基价库 -->
|
||||
<insert id="insertUVBasePrice" parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceSaleBasePrice">
|
||||
<insert id="insertUVBasePrice" parameterType="com.uvaluation.project.data.price.domain.ArtificialResidenceSaleBasePrice">
|
||||
insert into obpm_LianCheng_Data.dbo.TLK_基价信息
|
||||
(
|
||||
LASTMODIFIED
|
||||
@ -381,7 +381,7 @@
|
||||
, #{voppa}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertUVDocument" parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceSaleBasePrice">
|
||||
<insert id="insertUVDocument" parameterType="com.uvaluation.project.data.price.domain.ArtificialResidenceSaleBasePrice">
|
||||
insert into obpm_LianCheng_Data.dbo.T_DOCUMENT
|
||||
(
|
||||
ID
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.price.mapper.ComputeResidenceRentPriceMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.price.mapper.ComputeResidenceRentPriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.ComputeResidenceRentBasePrice"
|
||||
<resultMap type="com.uvaluation.project.data.price.domain.ComputeResidenceRentBasePrice"
|
||||
id="MainMappingResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="communityId" column="ProjectID"/>
|
||||
@ -131,7 +131,7 @@
|
||||
</sql>
|
||||
|
||||
<select id="selectPageCount"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ComputeResidenceRentBasePrice" resultType="int">
|
||||
parameterType="com.uvaluation.project.data.price.domain.ComputeResidenceRentBasePrice" resultType="int">
|
||||
select count(1) from DWA_PROJECTBASEPRICE_RENT_IMDT_${yearMonth}
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
@ -141,7 +141,7 @@
|
||||
</select>
|
||||
<!-- 分页 -->
|
||||
<select id="selectPageList"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ComputeResidenceRentBasePrice"
|
||||
parameterType="com.uvaluation.project.data.price.domain.ComputeResidenceRentBasePrice"
|
||||
resultMap="MainMappingResult">
|
||||
<![CDATA[ SELECT ID,ProjectID,ProjectName,ProjectAddr,County,Block,[Loop] as loopLine,IsIndxGen,IsPstCalc,StatusRun,PropertyType,ProjectType,ProjectTypeDtl,ProjectLevel,PropertyDevPeriod,BindClassID,MainCoff_Rent,RentPriceDft,MainRentPriceDft,RentPrice_1,PriceDealMean_1,PriceDealMax_1,SumDeal_1,PriceDeal_1_ToAI_Pst,PriceDealMean,PriceDealMax,SumDeal,PriceDeal_ToAI_Pst,PriceDeal_ToLst_Pst,PriceCaseOff,PriceCaseOff_ToLst_Pst,PriceListedMin,PriceLstMn_ToAI_Pst,PriceCase1_ToAI_Pst,PriceCase2_ToAI_Pst,PriceCase1_ToLst_Pst,PriceCase2_ToLst_Pst,PriceCase1,PriceCase1AdjPst,SumCase1,PriceCase2,PriceCase2AdjPst,SumCase2,VOPPBT,VOPPB,BindProjID,Bind_Proj_Pst,Bind_Block_Class,Bind_Block_Class_Pst,Bind_Block_Plevel,Bind_Block_Plevel_Pst,Bind_Block_PType,Bind_Block_Ptype_Pst,Bind_County_PType,Bind_County_Ptype_Pst,Bind_MixProject_PType,Bind_MixProject_Pst,VOPPAT,VOPPA ]]>
|
||||
FROM dbo.DWA_PROJECTBASEPRICE_RENT_IMDT_${yearMonth}
|
||||
@ -154,7 +154,7 @@
|
||||
where id = #{id}
|
||||
</select>
|
||||
<!-- 获取表名 -->
|
||||
<select id="yearMonthList" resultType="com.ruoyi.project.common.VueSelectModel">
|
||||
<select id="yearMonthList" resultType="com.uvaluation.project.common.VueSelectModel">
|
||||
SELECT right(name,6) as value, right(name,6) as label
|
||||
FROM sys.tables
|
||||
where name like 'DWA_PROJECTBASEPRICE_RENT_IMDT_%'
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.price.mapper.ComputeResidenceSalePriceMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.price.mapper.ComputeResidenceSalePriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.ComputeResidenceSaleBasePrice"
|
||||
<resultMap type="com.uvaluation.project.data.price.domain.ComputeResidenceSaleBasePrice"
|
||||
id="MainMappingResult">
|
||||
<result property="id" column="sid"/>
|
||||
<result property="communityId" column="ProjectID"/>
|
||||
@ -136,7 +136,7 @@
|
||||
</sql>
|
||||
<!-- 分页总数 -->
|
||||
<select id="selectPageCount"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ComputeResidenceRentBasePrice" resultType="int">
|
||||
parameterType="com.uvaluation.project.data.price.domain.ComputeResidenceRentBasePrice" resultType="int">
|
||||
select count(1) from dbo.DWA_PROJECTBASEPRICE_IMDT_${yearMonth}
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
@ -150,7 +150,7 @@
|
||||
</select>
|
||||
<!-- 分页列表 -->
|
||||
<select id="selectPageList"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ComputeResidenceSaleBasePrice"
|
||||
parameterType="com.uvaluation.project.data.price.domain.ComputeResidenceSaleBasePrice"
|
||||
resultMap="MainMappingResult">
|
||||
<include refid="selectAllField"/>
|
||||
<where>
|
||||
@ -171,14 +171,14 @@
|
||||
where id = #{id}
|
||||
</select>
|
||||
<!-- 获取表名 -->
|
||||
<select id="yearMonthList" resultType="com.ruoyi.project.common.VueSelectModel">
|
||||
<select id="yearMonthList" resultType="com.uvaluation.project.common.VueSelectModel">
|
||||
SELECT top 12 right(name,6) as value, right(name,6) as label
|
||||
FROM sys.tables
|
||||
where name like 'DWA_PROJECTBASEPRICE_IMDT_%'
|
||||
order by cast(right(name,6) as int) desc
|
||||
</select>
|
||||
<!-- 区域涨跌幅 -->
|
||||
<select id="getBlockChange" resultType="com.ruoyi.project.data.price.domain.DistrictBlockChange">
|
||||
<select id="getBlockChange" resultType="com.uvaluation.project.data.price.domain.DistrictBlockChange">
|
||||
select Block as name
|
||||
, avg(VOPPA) as value
|
||||
from dbo.DWA_PROJECTBASEPRICE_IMDT_${yearMonth}
|
||||
@ -187,7 +187,7 @@
|
||||
order by avg(VOPPA)
|
||||
</select>
|
||||
<!--区域涨跌幅-->
|
||||
<select id="getCountyChange" resultType="com.ruoyi.project.data.price.domain.DistrictBlockChange">
|
||||
<select id="getCountyChange" resultType="com.uvaluation.project.data.price.domain.DistrictBlockChange">
|
||||
select left(County,2) as name
|
||||
, avg(VOPPA) as value
|
||||
from dbo.DWA_PROJECTBASEPRICE_IMDT_${yearMonth}
|
||||
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.sync.DownloadOriginalOfficeCaseMapper">
|
||||
<resultMap id="DownloadMapping" type="com.ruoyi.project.data.cases.domain.OriginalOfficeCase">
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.sync.DownloadOriginalOfficeCaseMapper">
|
||||
<resultMap id="DownloadMapping" type="com.uvaluation.project.data.cases.domain.OriginalOfficeCase">
|
||||
<result property="url" column="url"/>
|
||||
<result property="title" column="title"/>
|
||||
<result property="floorAreaRatio" column="容积率"/>
|
||||
|
@ -0,0 +1,21 @@
|
||||
<?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.uvaluation.project.data.cases.mapper.sync.DownloadOriginalResidenceRentClosingCaseMapper">
|
||||
<select id="download" resultType="com.uvaluation.project.data.cases.domain.OriginalResidenceRentClosingCase">
|
||||
SELECT 合同编号 as caseContractNo
|
||||
,小区名称 as caseCommunityName
|
||||
,挂牌时间 as caseOpeningDate
|
||||
,交易时间 as caseClosingDate
|
||||
,租金 as caseRentPrice
|
||||
,建筑面积 as caseArea
|
||||
,住宅楼总楼层数 as caseTotalFloor
|
||||
,朝向 as caseToward
|
||||
,户型 as caseApartmentLayout
|
||||
,装修状况 as caseDecoration
|
||||
,小区ID as caseCommunityId
|
||||
,楼栋ID as caseBuildingId
|
||||
FROM dbo.ODS_HOUSINGCASEDEAL_RENT_${yearMonth}_RAW
|
||||
</select>
|
||||
</mapper>
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.sync.DownloadOriginalResidenceRentOpeningCaseMapper">
|
||||
<resultMap id="resultMapping" type="com.ruoyi.project.data.cases.domain.OriginalResidenceRentOpeningCase">
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.sync.DownloadOriginalResidenceRentOpeningCaseMapper">
|
||||
<resultMap id="resultMapping" type="com.uvaluation.project.data.cases.domain.OriginalResidenceRentOpeningCase">
|
||||
<result property="caseLianJiaId" column="llid"/>
|
||||
<result property="caseLianJiaCommunityId" column="lcid"/>
|
||||
<result property="cleanCommunityId" column="airaid" />
|
||||
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.sync.DownloadOriginalResidenceRentPlatformCaseMapper">
|
||||
<resultMap id="resultMapping" type="com.ruoyi.project.data.cases.domain.OriginalResidencePlatformRentOpeningCase">
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.sync.DownloadOriginalResidenceRentPlatformCaseMapper">
|
||||
<resultMap id="resultMapping" type="com.uvaluation.project.data.cases.domain.OriginalResidencePlatformRentOpeningCase">
|
||||
<result property="caseArea" column="面积" javaType="java.math.BigDecimal"/>
|
||||
<result property="caseBlock" column="block" />
|
||||
<result property="caseAddress" column="地址"/>
|
||||
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.sync.DownloadOriginalResidenceSaleClosingCaseMapper">
|
||||
<resultMap id="resultMapping" type="com.ruoyi.project.data.cases.domain.OriginalResidenceSaleClosingCase">
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.sync.DownloadOriginalResidenceSaleClosingCaseMapper">
|
||||
<resultMap id="resultMapping" type="com.uvaluation.project.data.cases.domain.OriginalResidenceSaleClosingCase">
|
||||
<result property="caseCountyName" column="区域"/>
|
||||
<result property="caseBlockName" column="板块"/>
|
||||
<result property="caseLoopName" column="环线"/>
|
||||
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.sync.DownloadOriginalResidenceSaleOpeningCaseMapper">
|
||||
<resultMap id="resultMapping" type="com.ruoyi.project.data.cases.domain.OriginalResidenceSaleOpeningCase">
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.sync.DownloadOriginalResidenceSaleOpeningCaseMapper">
|
||||
<resultMap id="resultMapping" type="com.uvaluation.project.data.cases.domain.OriginalResidenceSaleOpeningCase">
|
||||
<result property="caseLianJiaId" column="llid"/>
|
||||
<result property="caseLianJiaCommunityId" column="lcid"/>
|
||||
<result property="caseTitle" column="name"/>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.basis.mapper.LianJiaCommunityDictMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.basis.mapper.LianJiaCommunityDictMapper">
|
||||
|
||||
<select id="selectPageOfList" resultType="com.ruoyi.project.data.basis.domain.LianJiaCommunityDict">
|
||||
<select id="selectPageOfList" resultType="com.uvaluation.project.data.basis.domain.LianJiaCommunityDict">
|
||||
SELECT id
|
||||
,lianjia_community_id AS lianJiaCommunityid
|
||||
,lianjia_community_name as lianJiaCommunityName
|
||||
@ -59,7 +59,7 @@
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectById" resultType="com.ruoyi.project.data.basis.domain.LianJiaCommunityDict">
|
||||
<select id="selectById" resultType="com.uvaluation.project.data.basis.domain.LianJiaCommunityDict">
|
||||
SELECT id
|
||||
,lianjia_community_id AS lianJiaCommunityid
|
||||
,lianjia_community_name as lianJiaCommunityName
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.OriginalOfficeCaseMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.OriginalOfficeCaseMapper">
|
||||
<update id="createTable">
|
||||
<bind name="targetTableName" value="'dbo.ODS_OFFICECASELISTED_' + yearMonth + '_RAW'"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
|
@ -0,0 +1,270 @@
|
||||
<?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.uvaluation.project.data.cases.mapper.OriginalResidenceRentClosingCaseMapper">
|
||||
<update id="createRawTable">
|
||||
<bind name="targetTableName" value="'dbo.ODS_HOUSINGCASEDEAL_RENT_' + yearMonth+'_RAW'"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
CREATE TABLE ${targetTableName}
|
||||
(
|
||||
case_id varchar(32) not null,
|
||||
case_contract_no nvarchar (32) NOT null primary key,
|
||||
case_community_name nvarchar (512) NULL,
|
||||
case_opening_date date NULL,
|
||||
case_closing_date date NULL,
|
||||
case_rent_price decimal (18, 2) NULL,
|
||||
case_area decimal (18, 2) NULL,
|
||||
case_total_floor int NULL,
|
||||
case_toward nvarchar (16) NULL,
|
||||
case_apartment_layout nvarchar (16) NULL,
|
||||
case_decoration nvarchar (16) NULL,
|
||||
clean_community_id nvarchar (32) NULL,
|
||||
clean_building_id nvarchar (32) NULL
|
||||
)
|
||||
</update>
|
||||
<update id="createCleanTable">
|
||||
<bind name="targetTableName" value="'dbo.ODS_HOUSINGCASEDEAL_RENT_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
create table ${targetTableName}
|
||||
(
|
||||
case_id varchar(32) not null
|
||||
, HouseholdsID_SRC nvarchar(64) primary key
|
||||
, ProjectID_SRC nvarchar(64) not null
|
||||
, ProjectID bigint
|
||||
, BuildingID bigint
|
||||
, RentType tinyint
|
||||
, Room tinyint
|
||||
, Hall tinyint
|
||||
, Bashroom tinyint
|
||||
, Area decimal(18, 2)
|
||||
, Towards nvarchar(64)
|
||||
, UpperFloorSum nvarchar(32)
|
||||
, UpperFloorNum nvarchar(32)
|
||||
, Elevator tinyint
|
||||
, Decoration nvarchar(64)
|
||||
, Year int
|
||||
, AreaCoff decimal(7, 4)
|
||||
, TowardsCoff decimal(7, 4)
|
||||
, FloorCoff decimal(7, 4)
|
||||
, DecorationRng int
|
||||
, YearCoff decimal(7, 4)
|
||||
, BuildingCoff decimal(7, 4)
|
||||
, RoomTypeCoff decimal(7, 4)
|
||||
, PriceTotal decimal(18, 2) not null
|
||||
, PriceUnit decimal(18, 2) not null
|
||||
, PriceScatterRent decimal(18, 2)
|
||||
, PriceEntireRent decimal(18, 2)
|
||||
, PriceShareRent0 decimal(18, 2)
|
||||
, PriceShareRent decimal(18, 2)
|
||||
, Visited_Num int
|
||||
, First_Visit_Time date
|
||||
, Visited_Num_15 int
|
||||
, Visited_Num_30 int
|
||||
, Status tinyint
|
||||
, AdjustedValue decimal(18, 2)
|
||||
, AdjustedPst decimal(18, 6)
|
||||
, AdjustedCumValue decimal(18, 2)
|
||||
, AdjustedCumPst decimal(18, 6)
|
||||
, AdjustedCumValueAbs decimal(18, 2)
|
||||
, AdjustedCumPstAbs decimal(18, 6)
|
||||
, AdjustedCumNum int
|
||||
, PriceTotalIn decimal(18, 2)
|
||||
, PriceTotalOut decimal(18, 2)
|
||||
, PriceDateIn date
|
||||
, PriceDateOut date
|
||||
, Origin nvarchar(64)
|
||||
, UrlHouseholds nvarchar(max)
|
||||
, UrlProjects nvarchar(max)
|
||||
, CaseName nvarchar(1024)
|
||||
);
|
||||
</update>
|
||||
<update id="createAssembleTable">
|
||||
<bind name="targetTableName" value="'dbo.DW_HOUSINGCASE_RENT_COMM_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
CREATE TABLE ${targetTableName}
|
||||
(
|
||||
ID int NOT NULL IDENTITY(1, 1),
|
||||
HouseholdsID_SRC nvarchar (64) NOT NULL,
|
||||
ProjectID_SRC nvarchar (64) NOT NULL,
|
||||
ProjectID nvarchar (32) NULL,
|
||||
BuildingID nvarchar (32) NULL,
|
||||
RentType tinyint NULL,
|
||||
Room tinyint NULL,
|
||||
Hall tinyint NULL,
|
||||
Bashroom tinyint NULL,
|
||||
Area decimal (18, 2) NULL,
|
||||
Towards nvarchar (64) NULL,
|
||||
UpperFloorSum nvarchar (32) NULL,
|
||||
UpperFloorNum nvarchar (32) NULL,
|
||||
Elevator tinyint NULL,
|
||||
Decoration nvarchar (64) NULL,
|
||||
Year int NULL,
|
||||
AreaCoff decimal (7, 4) NULL,
|
||||
TowardsCoff decimal (7, 4) NULL,
|
||||
FloorCoff decimal (7, 4) NULL,
|
||||
DecorationRng int NULL,
|
||||
YearCoff decimal (7, 4) NULL,
|
||||
BuildingCoff decimal (7, 4) NULL,
|
||||
RoomTypeCoff decimal (7, 4) NULL,
|
||||
PriceTotal decimal (18, 2) NOT NULL,
|
||||
PriceUnit decimal (18, 2) NOT NULL,
|
||||
PriceScatterRent decimal (18, 2) NULL,
|
||||
PriceEntireRent decimal (18, 2) NULL,
|
||||
PriceShareRent0 decimal (18, 2) NULL,
|
||||
PriceShareRent decimal (18, 2) NULL,
|
||||
Visited_Num int NULL,
|
||||
First_Visit_Time date NULL,
|
||||
Visited_Num_15 int NULL,
|
||||
Visited_Num_30 int NULL,
|
||||
Status tinyint NULL,
|
||||
AdjustedValue decimal (18, 2) NULL,
|
||||
AdjustedPst decimal (18, 6) NULL,
|
||||
AdjustedCumValue decimal (18, 2) NULL,
|
||||
AdjustedCumPst decimal (18, 6) NULL,
|
||||
AdjustedCumValueAbs decimal (18, 2) NULL,
|
||||
AdjustedCumPstAbs decimal (18, 6) NULL,
|
||||
AdjustedCumNum int NULL,
|
||||
PriceTotalIn decimal (18, 2) NULL,
|
||||
PriceTotalOut decimal (18, 2) NULL,
|
||||
PriceDateIn date NULL,
|
||||
PriceDateOut date NULL,
|
||||
Origin nvarchar (64) NULL,
|
||||
UrlHouseholds nvarchar (2000) NULL,
|
||||
UrlProjects nvarchar (2000) NULL,
|
||||
CaseName nvarchar (1024) NULL,
|
||||
CaseType tinyint NULL,
|
||||
RentPrice_1 decimal (18, 2) NULL,
|
||||
Range decimal (18, 4) NULL,
|
||||
RangeFlag int NULL,
|
||||
RentPrice decimal (18, 2) NULL,
|
||||
EntireRentRatio decimal (18, 6) NULL,
|
||||
ShareRentRatio decimal (18, 6) NULL
|
||||
)
|
||||
</update>
|
||||
<!-- 计算表-->
|
||||
<update id="createComputeTable">
|
||||
<bind name="targetTableName" value="'dbo.DWA_PROJECTBASEPRICE_RENT_IMDT_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
CREATE TABLE ${targetTableName}
|
||||
(
|
||||
ID int NOT NULL IDENTITY(1, 1),
|
||||
ProjectID nvarchar(32) NOT NULL,
|
||||
ProjectName nvarchar (1024) NULL,
|
||||
ProjectAddr nvarchar (1024) NULL,
|
||||
County nvarchar (512) NULL,
|
||||
Block nvarchar (512) NULL,
|
||||
Loop nvarchar (512) NULL,
|
||||
IsIndxGen tinyint NULL,
|
||||
IsPstCalc tinyint NULL,
|
||||
StatusRun tinyint NULL,
|
||||
PropertyType nvarchar (256) NULL,
|
||||
ProjectType nvarchar (256) NULL,
|
||||
ProjectTypeDtl nvarchar (256) NULL,
|
||||
ProjectLevel nvarchar (64) NULL,
|
||||
PropertyDevPeriod tinyint NULL,
|
||||
BindClassID nvarchar (16) NULL,
|
||||
MainCoff_Rent decimal (7, 4) NULL,
|
||||
RentPriceDft decimal (18, 2) NULL,
|
||||
MainRentPriceDft decimal (18, 2) NULL,
|
||||
RentPrice_1 decimal (18, 2) NULL,
|
||||
PriceDealMean_1 decimal (18, 2) NULL,
|
||||
PriceDealMax_1 decimal (18, 2) NULL,
|
||||
SumDeal_1 int NULL,
|
||||
PriceDeal_1_ToAI_Pst decimal (18, 6) NULL,
|
||||
PriceDealMean decimal (18, 2) NULL,
|
||||
PriceDealMax decimal (18, 2) NULL,
|
||||
SumDeal int NULL,
|
||||
PriceDeal_ToAI_Pst decimal (18, 6) NULL,
|
||||
PriceDeal_ToLst_Pst decimal (18, 6) NULL,
|
||||
PriceCaseOff decimal (18, 2) NULL,
|
||||
PriceCaseOff_ToLst_Pst decimal (18, 6) NULL,
|
||||
PriceListedMin decimal (18, 2) NULL,
|
||||
PriceLstMn_ToAI_Pst decimal (18, 6) NULL,
|
||||
PriceCase1_ToAI_Pst decimal (18, 6) NULL,
|
||||
PriceCase2_ToAI_Pst decimal (18, 6) NULL,
|
||||
PriceCase1_ToLst_Pst decimal (18, 6) NULL,
|
||||
PriceCase2_ToLst_Pst decimal (18, 6) NULL,
|
||||
PriceCase1 decimal (18, 2) NULL,
|
||||
PriceCase1AdjPst decimal (18, 6) NULL,
|
||||
SumCase1 int NULL,
|
||||
PriceCase2 decimal (18, 2) NULL,
|
||||
PriceCase2AdjPst decimal (18, 6) NULL,
|
||||
SumCase2 int NULL,
|
||||
VOPPBT varchar (64) NULL,
|
||||
VOPPB decimal (18, 6) NULL,
|
||||
BindProjID int NULL,
|
||||
Bind_Proj_Pst decimal (18, 6) NULL,
|
||||
Bind_Block_Class nvarchar (128) NULL,
|
||||
Bind_Block_Class_Pst decimal (18, 6) NULL,
|
||||
Bind_Block_Plevel nvarchar (128) NULL,
|
||||
Bind_Block_Plevel_Pst decimal (18, 6) NULL,
|
||||
Bind_Block_PType nvarchar (128) NULL,
|
||||
Bind_Block_Ptype_Pst decimal (18, 6) NULL,
|
||||
Bind_County_PType nvarchar (128) NULL,
|
||||
Bind_County_Ptype_Pst decimal (18, 6) NULL,
|
||||
Bind_MixProject_PType nvarchar (128) NULL,
|
||||
Bind_MixProject_Pst decimal (18, 6) NULL,
|
||||
VOPPAT varchar (64) NULL,
|
||||
VOPPA decimal (18, 6) NULL
|
||||
)
|
||||
</update>
|
||||
<update id="createArtificialTable">
|
||||
<bind name="targetTableName" value="'dbo.DWA_PROJECTBASEPRICE_RENT_MANU_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
create table ${targetTableName}
|
||||
(
|
||||
ID int not null
|
||||
, ProjectID nvarchar(32) primary key
|
||||
, MainCoff_Rent decimal(7, 4)
|
||||
, RentPrice decimal(18, 2)
|
||||
, MainRentPrice decimal(18, 2)
|
||||
, RentPrice_1 decimal(18, 2)
|
||||
, VOPPAT varchar(64)
|
||||
, VOPPA decimal(18, 6)
|
||||
, ModifyDate date
|
||||
)
|
||||
</update>
|
||||
<update id="createUltimateTable">
|
||||
<bind name="targetTableName" value="'dbo.ODS_PROJECT_RENT_PRICE_INFO_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
create table ${targetTableName}
|
||||
(
|
||||
ID int primary key identity
|
||||
, ProjectID nvarchar(32) not null
|
||||
, PriceType int
|
||||
, BasePrice_1 decimal(18, 2)
|
||||
, RentPrice decimal(18, 2)
|
||||
, SumCase1 int
|
||||
, VOPPAT varchar(64)
|
||||
, VOPPA decimal(18, 6)
|
||||
, GF_1Room decimal(18, 2)
|
||||
, GF_2Room decimal(18, 2)
|
||||
, GY_2Room decimal(18, 2)
|
||||
, GY_3Room decimal(18, 2)
|
||||
, One_Room decimal(18, 2)
|
||||
, Two_Room decimal(18, 2)
|
||||
, Three_Room decimal(18, 2)
|
||||
, EntireRentRatio decimal(18, 4)
|
||||
, EntireRentNum int
|
||||
, ShareRentRatio decimal(18, 4)
|
||||
, ShareRentNum int
|
||||
, SaleRentRatio decimal(18, 4)
|
||||
, ModifyDate date
|
||||
, Status int
|
||||
, AdjEvd nvarchar(1024)
|
||||
)
|
||||
</update>
|
||||
</mapper>
|
@ -2,8 +2,8 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.OriginalResidenceRentOpeningCaseMapper">
|
||||
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.OriginalResidenceRentOpeningCaseMapper">
|
||||
<!--挂牌案例-->
|
||||
<update id="createTable">
|
||||
<bind name="targetTableName" value="'dbo.ODS_HOUSINGCASELISTED_RENT_LJ_' + yearMonth +'_RAW' "/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
@ -134,6 +134,7 @@
|
||||
savetime date NULL
|
||||
)
|
||||
</update>
|
||||
<!-- 挂牌清洗案例-->
|
||||
<update id="createCleanTable">
|
||||
<bind name="targetTableName" value="'dbo.ODS_HOUSINGCASELISTED_RENT_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
@ -192,179 +193,4 @@
|
||||
, CaseName nvarchar(1024)
|
||||
);
|
||||
</update>
|
||||
<update id="createAssembleTable">
|
||||
<bind name="targetTableName" value="'dbo.DW_HOUSINGCASE_COMM_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
create table ${targetTableName}
|
||||
(
|
||||
SID int primary key identity
|
||||
, case_id varchar(32) not null
|
||||
, HouseholdsID_LJ bigint
|
||||
, ProjectID_LJ bigint
|
||||
, ProjectID bigint --modified
|
||||
, ProjectName nvarchar(1024)
|
||||
, ProjectAddr nvarchar(1024)
|
||||
, County nvarchar(512)
|
||||
, Block nvarchar(512)
|
||||
, Loop nvarchar(512)
|
||||
, Roomtype nvarchar(64)
|
||||
, Area decimal(18, 2)
|
||||
, Towards nvarchar(64)
|
||||
, UpperFloorSum nvarchar(32)
|
||||
, UpperFloorNum nvarchar(32)
|
||||
, Elevator tinyint
|
||||
, Decoration nvarchar(64)
|
||||
, Year int
|
||||
, AreaCoff decimal(7, 4)
|
||||
, TowardsCoff decimal(7, 4)
|
||||
, FloorCoff decimal(7, 4)
|
||||
, DecorationRng int
|
||||
, YearCoff decimal(7, 4)
|
||||
, BuildingCoff decimal(7, 4)
|
||||
, BasePrice_1 decimal(18, 2)
|
||||
, PriceTotal decimal(18, 2) not null
|
||||
, PriceUnit decimal(18, 2) not null
|
||||
, PriceUnitAdj decimal(18, 2) not null
|
||||
, Visited_Num int
|
||||
, First_Visit_Time date
|
||||
, Visited_Num_15 int
|
||||
, Visited_Num_30 int
|
||||
, Status tinyint
|
||||
, AdjustedValue decimal(18, 2)
|
||||
, AdjustedPst decimal(18, 6)
|
||||
, AdjustedCumValue decimal(18, 2)
|
||||
, AdjustedCumPst decimal(18, 6)
|
||||
, AdjustedCumValueAbs decimal(18, 2)
|
||||
, AdjustedCumPstAbs decimal(18, 6)
|
||||
, AdjustedCumNum int
|
||||
, PriceTotalIn decimal(18, 2)
|
||||
, PriceDateIn date
|
||||
, CaseType int
|
||||
, RangeFlag int
|
||||
);
|
||||
</update>
|
||||
<update id="createComputePriceTable">
|
||||
<bind name="targetTableName" value="'dbo.DWA_PROJECTBASEPRICE_IMDT_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
create table ${targetTableName}
|
||||
(
|
||||
SID int not null identity(1,1)
|
||||
, ProjectID nvarchar(20) primary key
|
||||
, ProjectName nvarchar(1024)
|
||||
, ProjectAddr nvarchar(1024)
|
||||
, County nvarchar(512)
|
||||
, Block nvarchar(512)
|
||||
, Loop nvarchar(512)
|
||||
, IsIndxGen tinyint
|
||||
, IsPstCalc tinyint
|
||||
, StatusRun tinyint
|
||||
, ProjectSPLabel nvarchar(64)
|
||||
, PropertyType nvarchar(256)
|
||||
, ProjectType nvarchar(256)
|
||||
, ProjectTypeDtl nvarchar(256)
|
||||
, ProjectLevel nvarchar(64)
|
||||
, Year int
|
||||
, MainArea decimal(18, 2)
|
||||
, AreaCoff decimal(7, 4)
|
||||
, YearCoff decimal(7, 4)
|
||||
, PriceNote nvarchar(1024)
|
||||
, BasePriceDft decimal(18, 2)
|
||||
, MainPriceDft decimal(18, 2)
|
||||
, BasePrice_1 decimal(18, 2)
|
||||
, PriceUnitAdj decimal(18, 2)
|
||||
, Visited_Num int
|
||||
, First_Visit_Time date
|
||||
, Visited_Num_15 int
|
||||
, Visited_Num_30 int
|
||||
, PriceDealMean_1 decimal(18, 2)
|
||||
, PriceDealMax_1 decimal(18, 2)
|
||||
, SumDeal_1 int
|
||||
, PriceDealMean decimal(18, 2)
|
||||
, PriceDealMax decimal(18, 2)
|
||||
, SumDeal int
|
||||
, PriceListedMin decimal(18, 2)
|
||||
, PriceCase1_ToAI_Pst decimal(18, 6)
|
||||
, PriceCase2_ToAI_Pst decimal(18, 6)
|
||||
, PriceCase1_ToLst_Pst decimal(18, 6)
|
||||
, PriceCase2_ToLst_Pst decimal(18, 6)
|
||||
, PriceCase1 decimal(18, 2)
|
||||
, PriceCase1AdjPst decimal(18, 6)
|
||||
, SumCase1 int
|
||||
, PriceCase2 decimal(18, 2)
|
||||
, PriceCase2AdjPst decimal(18, 6)
|
||||
, SumCase2 int
|
||||
, VOPPBT varchar(64)
|
||||
, VOPPB decimal(18, 6)
|
||||
, BindProjID int
|
||||
, Bind_Proj_Pst decimal(18, 6)
|
||||
, Bind_Block_Class nvarchar(128)
|
||||
, Bind_Block_Class_Pst decimal(18, 6)
|
||||
, Bind_Block_Plevel nvarchar(128)
|
||||
, Bind_Block_Plevel_Pst decimal(18, 6)
|
||||
, Bind_Block_PType nvarchar(128)
|
||||
, Bind_Block_Ptype_Pst decimal(18, 6)
|
||||
, Bind_County_PType nvarchar(128)
|
||||
, Bind_County_Ptype_Pst decimal(18, 6)
|
||||
, VOPPAT varchar(64)
|
||||
, VOPPA decimal(18, 6)
|
||||
);
|
||||
</update>
|
||||
|
||||
<!-- 人工修正表 -->
|
||||
<update id="createArtificialPriceTable">
|
||||
<bind name="targetTableName" value="'dbo.DWA_PROJECTBASEPRICE_RENT_MANU_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
create table ${targetTableName}
|
||||
(
|
||||
id uniqueidentifier not null
|
||||
, ProjectID bigint primary key
|
||||
, MainCoff_Rent decimal(7, 4)
|
||||
, RentPrice decimal(18, 2)
|
||||
, MainRentPrice decimal(18, 2)
|
||||
, RentPrice_1 decimal(18, 2)
|
||||
, VOPPAT varchar(64)
|
||||
, VOPPA decimal(18, 6)
|
||||
, ModifyDate date
|
||||
);
|
||||
</update>
|
||||
|
||||
<!-- 核准住宅租赁基价 -->
|
||||
<update id="createUltimatePriceTable">
|
||||
<bind name="targetTableName" value="'dbo.ODS_PROJECT_RENT_PRICE_INFO_' + yearMonth"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
|
||||
drop table ${targetTableName};
|
||||
|
||||
create table ${targetTableName}
|
||||
(
|
||||
id varchar(32) primary key
|
||||
, ProjectID bigint not null
|
||||
, PriceType int
|
||||
, BasePrice_1 decimal(18, 2)
|
||||
, RentPrice decimal(18, 2)
|
||||
, SumCase1 int
|
||||
, VOPPAT varchar(64)
|
||||
, VOPPA decimal(18, 6)
|
||||
, GF_1Room decimal(18, 2)
|
||||
, GF_2Room decimal(18, 2)
|
||||
, GY_2Room decimal(18, 2)
|
||||
, GY_3Room decimal(18, 2)
|
||||
, One_Room decimal(18, 2)
|
||||
, Two_Room decimal(18, 2)
|
||||
, Three_Room decimal(18, 2)
|
||||
, EntireRentRatio decimal(18, 4)
|
||||
, EntireRentNum int
|
||||
, ShareRentRatio decimal(18, 4)
|
||||
, ShareRentNum int
|
||||
, SaleRentRatio decimal(18, 4)
|
||||
, ModifyDate date
|
||||
, Status bit
|
||||
, AdjEvd nvarchar(1024)
|
||||
);
|
||||
</update>
|
||||
</mapper>
|
@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.OriginalResidenceSaleClosingCaseMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.OriginalResidenceSaleClosingCaseMapper">
|
||||
|
||||
<update id="createRawClosingCaseTable">
|
||||
<bind name="targetTableName" value="'dbo.二手房成交数据' + yearMonth" />
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.OriginalResidenceSaleOpeningCaseMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.OriginalResidenceSaleOpeningCaseMapper">
|
||||
<!--案例原始表-->
|
||||
<update id="createOpeningCaseRawTable">
|
||||
<bind name="targetTableName" value="'dbo.ODS_HOUSINGCASELISTED_LJ_' + yearMonth +'_RAW'"/>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.cases.mapper.sync.SyncOriginalResidenceSaleOpeningCaseMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.cases.mapper.sync.SyncOriginalResidenceSaleOpeningCaseMapper">
|
||||
<update id="createTable">
|
||||
<bind name="targetTableName" value="'dbo.ODS_HOUSINGCASELISTED_LJ_' + yearMonth + '_RAW'"/>
|
||||
IF OBJECT_ID(#{targetTableName}, 'U') IS NULL
|
||||
@ -35,7 +35,7 @@
|
||||
truncate table ${targetTableName}
|
||||
</update>
|
||||
|
||||
<insert id="insert" parameterType="com.ruoyi.project.data.cases.domain.OriginalResidenceSaleOpeningCase">
|
||||
<insert id="insert" parameterType="com.uvaluation.project.data.cases.domain.OriginalResidenceSaleOpeningCase">
|
||||
insert into dbo.ODS_HOUSINGCASELISTED_LJ_${yearMonth}_RAW
|
||||
(
|
||||
llid
|
||||
|
@ -2,12 +2,12 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.basis.mapper.UVBasePriceMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.basis.mapper.UVBasePriceMapper">
|
||||
<!-- <resultMap id="resultMapping" type="com.ruoyi.project.data.basis.domain.UVBasePrice">-->
|
||||
<!-- -->
|
||||
<!-- </resultMap>-->
|
||||
<select id="pageCount"
|
||||
parameterType="com.ruoyi.project.data.basis.domain.UVBasePriceQueryModel"
|
||||
parameterType="com.uvaluation.project.data.basis.domain.UVBasePriceQueryModel"
|
||||
resultType="int">
|
||||
select count(1) from dbo.TLK_基价信息
|
||||
<where>
|
||||
@ -26,8 +26,8 @@
|
||||
</where>
|
||||
</select>
|
||||
<select id="pageList"
|
||||
parameterType="com.ruoyi.project.data.basis.domain.UVBasePriceQueryModel"
|
||||
resultType="com.ruoyi.project.data.basis.domain.UVBasePrice">
|
||||
parameterType="com.uvaluation.project.data.basis.domain.UVBasePriceQueryModel"
|
||||
resultType="com.uvaluation.project.data.basis.domain.UVBasePrice">
|
||||
<!-- <bind name="skip" value=" (pageIndex - 1) * pageSize "></bind>-->
|
||||
SELECT ITEM_AIRAID as communityId
|
||||
,ITEM_PROJECTTYPE as communityType
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.price.mapper.UltimateOfficeBasePriceMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.price.mapper.UltimateOfficeBasePriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice"
|
||||
<resultMap type="com.uvaluation.project.data.price.domain.UltimateOfficeBasePrice"
|
||||
id="OfficeBasePriceUltimateResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="yearMonth" column="yearMonth"/>
|
||||
@ -76,7 +76,7 @@
|
||||
FROM ODS_OFFICE_BUILDING_PRICE_INFO_${yearMonth} a
|
||||
</sql>
|
||||
|
||||
<select id="getCount" parameterType="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice" resultType="int">
|
||||
<select id="getCount" parameterType="com.uvaluation.project.data.price.domain.UltimateOfficeBasePrice" resultType="int">
|
||||
select count(1) FROM ODS_OFFICE_BUILDING_PRICE_INFO_${yearMonth} a
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
@ -101,7 +101,7 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getList" parameterType="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice"
|
||||
<select id="getList" parameterType="com.uvaluation.project.data.price.domain.UltimateOfficeBasePrice"
|
||||
resultMap="OfficeBasePriceUltimateResult">
|
||||
<include refid="getById"/>
|
||||
<where>
|
||||
@ -138,7 +138,7 @@
|
||||
</select>
|
||||
|
||||
<!-- 更新基价 -->
|
||||
<update id="updateBasePrice" parameterType="com.ruoyi.project.data.price.domain.OfficeBasePriceModifyModel">
|
||||
<update id="updateBasePrice" parameterType="com.uvaluation.project.data.price.domain.OfficeBasePriceModifyModel">
|
||||
update ODS_OFFICE_BUILDING_PRICE_INFO_${yearMonth} set Status=0 where id=#{id};
|
||||
</update>
|
||||
<insert id="batchInsertArtificialOfficeBase">
|
||||
@ -150,7 +150,7 @@
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 更新基价 -->
|
||||
<insert id="updateBasePriceCopyNew" parameterType="com.ruoyi.project.data.price.domain.OfficeBasePriceModifyModel">
|
||||
<insert id="updateBasePriceCopyNew" parameterType="com.uvaluation.project.data.price.domain.OfficeBasePriceModifyModel">
|
||||
insert into ODS_OFFICE_BUILDING_PRICE_INFO_${yearMonth}(BuildingID
|
||||
,UnifiedID
|
||||
,ProjectID
|
||||
@ -185,14 +185,14 @@
|
||||
</insert>
|
||||
|
||||
<!-- 获取表名 -->
|
||||
<select id="getYearMonthList" resultType="com.ruoyi.project.common.VueSelectModel">
|
||||
<select id="getYearMonthList" resultType="com.uvaluation.project.common.VueSelectModel">
|
||||
SELECT right(name,6) as value, right(name,6) as label
|
||||
FROM sys.tables
|
||||
where name like 'ODS_OFFICE_BUILDING_PRICE_INFO_%' and name not like '%_bak'
|
||||
order by cast(right(name,6) as int) desc
|
||||
</select>
|
||||
<!-- -->
|
||||
<select id="getByBuildingId" resultType="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice">
|
||||
<select id="getByBuildingId" resultType="com.uvaluation.project.data.price.domain.UltimateOfficeBasePrice">
|
||||
select ID
|
||||
,BuildingID_P as buildingId
|
||||
,ProjectID_P as communityId
|
||||
@ -210,7 +210,7 @@
|
||||
where BuildingID_P=#{buildingId} AND status= 1
|
||||
</select>
|
||||
<!-- 查询价格 -->
|
||||
<select id="getByRouteId" resultType="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice">
|
||||
<select id="getByRouteId" resultType="com.uvaluation.project.data.price.domain.UltimateOfficeBasePrice">
|
||||
SELECT ID
|
||||
,BuildingID_P as buildingId
|
||||
,ProjectID_P as communityId
|
||||
@ -229,7 +229,7 @@
|
||||
</select>
|
||||
<!-- 插入人工修正办公基价 -->
|
||||
<insert id="insertArtificialOfficeBasePrice"
|
||||
parameterType="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice">
|
||||
parameterType="com.uvaluation.project.data.price.domain.UltimateOfficeBasePrice">
|
||||
insert into
|
||||
dbo.DWA_PROJECTBASEPRICE_OFFICE_MANU_${yearMonth}(ID,BuildingID,ProjectID,County,"Loop",Block,ProjectAddr,ProjectName,Year,AvgArea,TotalFloorSum,UpperFloorSum,OfficeClass,Grade,MainPrice_1,MainPriceRent_1,MainPrice,MainPriceRent,ModifyDate)
|
||||
values(#{id},#{buildingId},#{communityId},#{countyName},#{loopName},#{blockName},#{communityAddress},#{communityName},#{year},#{avgArea},#{totalFloorSum},#{upperFloorSum},#{officeClass},#{officeLevel},#{mainPrice_1},#{mainPriceRent_1},#{mainPrice},#{mainPriceRent},getdate())
|
||||
@ -312,7 +312,7 @@
|
||||
from ODS_OFFICE_BUILDING_PRICE_INFO_${yearMonth}
|
||||
where id=#{id};
|
||||
</update>
|
||||
<update id="initImport">
|
||||
<update id="initProcedure">
|
||||
IF OBJECT_ID('BatchImportOfArtificialOfficePrice', 'P') IS NOT NULL
|
||||
drop procedure BatchImportOfArtificialOfficePrice;
|
||||
</update>
|
||||
|
@ -2,12 +2,20 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.price.mapper.UltimateResidenceRentPriceMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.price.mapper.UltimateResidenceRentPriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.UltimateResidenceRentBasePrice"
|
||||
<resultMap type="com.uvaluation.project.data.price.domain.UltimateResidenceRentBasePrice"
|
||||
id="MappingResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="communityId" column="projectID"/>
|
||||
<result property="communityName" column="ProjectName"/>
|
||||
<result property="communityAddress" column="ProjectAddr"/>
|
||||
<result property="county" column="county"/>
|
||||
<result property="block" column="block"/>
|
||||
<result property="loop" column="loop"/>
|
||||
<result property="interCommunity" column="InterCommunity"/>
|
||||
<result property="magnetSchool" column="MagnetSchool"/>
|
||||
<result property="loop" column="loop"/>
|
||||
<result property="priceType" column="priceType"/>
|
||||
<result property="basePrice_1" column="basePrice_1"/>
|
||||
<result property="rentPrice" column="rentPrice"/>
|
||||
@ -32,38 +40,72 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAllColumn">
|
||||
select
|
||||
ID,ProjectID,PriceType,BasePrice_1,RentPrice,SumCase1,VOPPAT,VOPPA,GF_1Room,GF_2Room,GY_2Room,GY_3Room,One_Room,Two_Room,Three_Room,EntireRentRatio,EntireRentNum,ShareRentRatio,ShareRentNum,SaleRentRatio,ModifyDate,Status,AdjEvd
|
||||
from ODS_PROJECT_RENT_PRICE_INFO_${yearMonth}
|
||||
SELECT a.id,
|
||||
A.ProjectID,
|
||||
B.ProjectName,
|
||||
B.ProjectAddr,
|
||||
B.County,
|
||||
B.Block,
|
||||
B.Loop,
|
||||
B.InterCommunity,
|
||||
B.MagnetSchool,
|
||||
B.ProjectLevel,
|
||||
B.RoomNum,
|
||||
A.BasePrice_1,
|
||||
A.RentPrice,
|
||||
A.SumCase1,
|
||||
A.VOPPA,
|
||||
A.GF_1Room,
|
||||
A.GF_2Room,
|
||||
A.GY_2Room,
|
||||
A.GY_3Room,
|
||||
A.One_Room,
|
||||
A.Two_Room,
|
||||
A.Three_Room,
|
||||
A.EntireRentRatio,
|
||||
A.EntireRentNum,
|
||||
A.ShareRentRatio,
|
||||
A.ShareRentNum,
|
||||
A.SaleRentRatio,
|
||||
a.status,
|
||||
a.adjEvd,
|
||||
a.modifyDate
|
||||
FROM ODS_PROJECT_RENT_PRICE_INFO_${yearMonth} A
|
||||
LEFT JOIN obpm_LianCheng_Data.dbo.V_RESIDENCE_COMMUNITY B
|
||||
ON A.ProjectID = B.projectid
|
||||
</sql>
|
||||
|
||||
<select id="selectPageCount" parameterType="com.ruoyi.project.data.price.domain.UltimateResidenceRentBasePrice" resultType="int">
|
||||
select count(1) from ODS_PROJECT_RENT_PRICE_INFO_${yearMonth}
|
||||
<select id="selectPageCount" parameterType="com.uvaluation.project.data.price.domain.UltimateResidenceRentBasePrice" resultType="int">
|
||||
select count(1) from ODS_PROJECT_RENT_PRICE_INFO_${yearMonth} a LEFT JOIN
|
||||
obpm_LianCheng_Data.dbo.V_RESIDENCE_COMMUNITY B
|
||||
ON A.ProjectID = B.projectid
|
||||
<where>
|
||||
B.projectid is not null
|
||||
<if test="communityId != null">
|
||||
AND ProjectID = #{communityId}
|
||||
AND a.ProjectID = #{communityId}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
AND Status = #{status}
|
||||
AND a.Status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPageList" parameterType="com.ruoyi.project.data.price.domain.UltimateResidenceRentBasePrice"
|
||||
<select id="selectPageList" parameterType="com.uvaluation.project.data.price.domain.UltimateResidenceRentBasePrice"
|
||||
resultMap="MappingResult">
|
||||
<include refid="selectAllColumn"/>
|
||||
<where>
|
||||
B.projectid is not null
|
||||
<if test="communityId != null">
|
||||
AND ProjectID = #{communityId}
|
||||
AND a.ProjectID = #{communityId}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
AND Status = #{status}
|
||||
AND a.Status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
order by ProjectID ASC, status DESC OFFSET #{pageIndex} rows fetch next #{pageSize} rows only;
|
||||
order by a.ProjectID ASC, a.status DESC OFFSET #{pageIndex} rows fetch next #{pageSize} rows only;
|
||||
</select>
|
||||
|
||||
<select id="yearMonthList" resultType="com.ruoyi.project.common.VueSelectModel">
|
||||
<select id="yearMonthList" resultType="com.uvaluation.project.common.VueSelectModel">
|
||||
SELECT right(name,6) as value, right(name,6) as label
|
||||
FROM sys.tables
|
||||
where name like 'ODS_PROJECT_RENT_PRICE_INFO_%' and name not like '%_bak'
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.data.price.mapper.UltimateResidenceSalePriceMapper">
|
||||
<mapper namespace="com.uvaluation.project.data.price.mapper.UltimateResidenceSalePriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.UltimateResidenceSaleBasePrice"
|
||||
<resultMap type="com.uvaluation.project.data.price.domain.UltimateResidenceSaleBasePrice"
|
||||
id="MainMappingResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="yearMonth" column="yearMonth"/>
|
||||
@ -43,7 +43,7 @@
|
||||
</sql>
|
||||
<!-- 分页总数 -->
|
||||
<select id="selectPageCount"
|
||||
parameterType="com.ruoyi.project.data.price.domain.UltimateResidenceSaleBasePrice" resultType="int">
|
||||
parameterType="com.uvaluation.project.data.price.domain.UltimateResidenceSaleBasePrice" resultType="int">
|
||||
select count(1) from dbo.ODS_PROJECT_PRICE_INFO_${yearMonth}
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
@ -56,7 +56,7 @@
|
||||
</select>
|
||||
<!-- 分页列表 -->
|
||||
<select id="selectPageList"
|
||||
parameterType="com.ruoyi.project.data.price.domain.UltimateResidenceSaleBasePrice"
|
||||
parameterType="com.uvaluation.project.data.price.domain.UltimateResidenceSaleBasePrice"
|
||||
resultMap="MainMappingResult">
|
||||
<include refid="selectAllField"/>
|
||||
<where>
|
||||
@ -71,7 +71,7 @@
|
||||
</select>
|
||||
|
||||
<!-- 获取表名 -->
|
||||
<select id="yearMonthList" resultType="com.ruoyi.project.common.VueSelectModel">
|
||||
<select id="yearMonthList" resultType="com.uvaluation.project.common.VueSelectModel">
|
||||
SELECT right(name,6) as value, right(name,6) as label
|
||||
FROM sys.tables
|
||||
where name like 'ODS_PROJECT_PRICE_INFO_%' and name not like '%_bak'
|
||||
|
Reference in New Issue
Block a user