数据平台接口迁移
This commit is contained in:
@ -0,0 +1,37 @@
|
||||
<?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.ruoyi.project.data.price.mapper.ArtificialResidenceRentPriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.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="mainRentPrice" column="MainRentPrice"/>
|
||||
<result property="rentPrice" column="RentPrice"/>
|
||||
<result property="rentPrice_1" column="rentPrice_1"/>
|
||||
<result property="voppat" column="voppat"/>
|
||||
<result property="voppa" column="voppa"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectArtificialResidenceRentBasePriceListCount"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceRentBasePrice" resultType="int">
|
||||
select count(1) from DWA_PROJECTBASEPRICE_RENT_IMDT_${yearMonth}
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
AND ProjectID = #{communityId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<!-- 分页 -->
|
||||
<select id="selectArtificialResidenceRentBasePriceList"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ArtificialResidenceRentBasePrice"
|
||||
resultMap="MainMappingResult">
|
||||
<![CDATA[ SELECT ID,ProjectID,MainCoff_Rent,RentPrice,MainRentPrice,RentPrice_1,VOPPAT,VOPPA ]]>
|
||||
FROM dbo.DWA_PROJECTBASEPRICE_RENT_MANU_${yearMonth}
|
||||
order by ProjectID ASC OFFSET #{pageIndex} rows fetch next #{pageSize} rows only
|
||||
</select>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,165 @@
|
||||
<?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.ruoyi.project.data.price.mapper.ComputeResidenceRentPriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.ComputeResidenceRentBasePrice"
|
||||
id="MainMappingResult">
|
||||
<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="loopLine"/>
|
||||
<result property="isIndxGen" column="isIndxGen"/>
|
||||
<result property="isPstCalc" column="isPstCalc"/>
|
||||
<result property="statusRun" column="statusRun"/>
|
||||
<result property="propertyType" column="propertyType"/>
|
||||
<result property="projectType" column="projectType"/>
|
||||
<result property="projectTypeDtl" column="projectTypeDtl"/>
|
||||
<result property="projectLevel" column="projectLevel"/>
|
||||
<result property="propertyDevPeriod" column="propertyDevPeriod"/>
|
||||
<result property="bindClassID" column="bindClassID"/>
|
||||
<result property="mainCoefficientRent" column="mainCoffRent"/>
|
||||
<result property="rentPriceDft" column="rentPriceDft"/>
|
||||
<result property="mainRentPriceDft" column="mainRentPriceDft"/>
|
||||
<result property="rentPrice_1" column="rentPrice_1"/>
|
||||
<result property="priceDealMean_1" column="priceDealMean_1"/>
|
||||
<result property="priceDealMax_1" column="priceDealMax_1"/>
|
||||
<result property="sumDeal_1" column="sumDeal_1"/>
|
||||
<result property="priceDeal_1_ToAI_Pst" column="priceDeal_1_ToAI_Pst"/>
|
||||
<result property="priceDealMean" column="priceDealMean"/>
|
||||
<result property="priceDealMax" column="priceDealMax"/>
|
||||
<result property="sumDeal" column="sumDeal"/>
|
||||
<result property="priceDeal_ToAI_Pst" column="priceDeal_ToAI_Pst"/>
|
||||
<result property="priceDeal_ToLst_Pst" column="priceDeal_ToLst_Pst"/>
|
||||
<result property="priceCaseOff" column="priceCaseOff"/>
|
||||
<result property="priceCaseOff_ToLst_Pst" column="priceCaseOff_ToLst_Pst"/>
|
||||
<result property="priceListedMin" column="priceListedMin"/>
|
||||
<result property="priceLstMn_ToAI_Pst" column="priceLstMn_ToAI_Pst"/>
|
||||
<result property="priceCase1_ToAI_Pst" column="priceCase1_ToAI_Pst"/>
|
||||
<result property="priceCase2_ToAI_Pst" column="priceCase2_ToAI_Pst"/>
|
||||
<result property="priceCase1_ToLst_Pst" column="priceCase1_ToLst_Pst"/>
|
||||
<result property="priceCase2_ToLst_Pst" column="priceCase2_ToLst_Pst"/>
|
||||
<result property="priceCase1" column="priceCase1"/>
|
||||
<result property="priceCase1AdjPst" column="priceCase1AdjPst"/>
|
||||
<result property="sumCase1" column="sumCase1"/>
|
||||
<result property="priceCase2" column="priceCase2"/>
|
||||
<result property="priceCase2AdjPst" column="priceCase2AdjPst"/>
|
||||
<result property="sumCase2" column="sumCase2"/>
|
||||
<result property="voppbt" column="voppbt"/>
|
||||
<result property="voppb" column="voppb"/>
|
||||
<result property="bindProjID" column="bindProjID"/>
|
||||
<result property="bind_Proj_Pst" column="bind_Proj_Pst"/>
|
||||
<result property="bind_Block_Class" column="bind_Block_Class"/>
|
||||
<result property="bind_Block_Class_Pst" column="bind_Block_Class_Pst"/>
|
||||
<result property="bind_Block_Plevel" column="bind_Block_Plevel"/>
|
||||
<result property="bind_Block_Plevel_Pst" column="bind_Block_Plevel_Pst"/>
|
||||
<result property="bind_Block_PType" column="bind_Block_PType"/>
|
||||
<result property="bind_Block_Ptype_Pst" column="bind_Block_Ptype_Pst"/>
|
||||
<result property="bind_County_PType" column="bind_County_PType"/>
|
||||
<result property="bind_County_Ptype_Pst" column="bind_County_Ptype_Pst"/>
|
||||
<result property="bind_MixProject_PType" column="bind_MixProject_PType"/>
|
||||
<result property="bind_MixProject_Pst" column="bind_MixProject_Pst"/>
|
||||
<result property="voppat" column="voppat"/>
|
||||
<result property="voppa" column="voppa"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOfficeBasePriceUltimateVo">
|
||||
SELECT ID
|
||||
,ProjectID
|
||||
,ProjectName
|
||||
,ProjectAddr
|
||||
,County
|
||||
,Block
|
||||
,Loop
|
||||
,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}
|
||||
</sql>
|
||||
|
||||
<select id="selectComputeResidenceRentBasePriceListCount"
|
||||
parameterType="com.ruoyi.project.data.price.domain.ComputeResidenceRentBasePrice" resultType="int">
|
||||
select count(1) from DWA_PROJECTBASEPRICE_RENT_IMDT_${yearMonth}
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
AND ProjectID = #{communityId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<!-- 分页 -->
|
||||
<select id="selectComputeResidenceRentBasePriceList"
|
||||
parameterType="com.ruoyi.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}
|
||||
order by ProjectID ASC OFFSET #{pageIndex} rows fetch next #{pageSize} rows only
|
||||
</select>
|
||||
|
||||
<!-- -->
|
||||
<select id="selectComputeResidenceRentBasePriceById" parameterType="String" resultMap="MainMappingResult">
|
||||
<include refid="selectOfficeBasePriceUltimateVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<!-- <update id="updateComputeResidenceRentBasePrice" parameterType="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice">-->
|
||||
<!-- update TLK_计价办公核准基价 set ITEM_YEARMONTH=ITEM_YEARMONTH-->
|
||||
<!-- <trim prefix="SET" suffixOverrides=",">-->
|
||||
<!-- </trim>-->
|
||||
<!-- where id = #{id}-->
|
||||
<!-- </update>-->
|
||||
|
||||
</mapper>
|
@ -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.compute.mapper.OfficeBasePriceUltimateMapper">
|
||||
<mapper namespace="com.ruoyi.project.data.price.mapper.UltimateOfficeBasePriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.compute.domain.OfficeBasePriceUltimate"
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice"
|
||||
id="OfficeBasePriceUltimateResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="yearMonth" column="ITEM_YEARMONTH"/>
|
||||
@ -26,7 +26,7 @@
|
||||
select ITEM_YEARMONTH,ITEM_BUILDINGID,ITEM_UNIFIEDID,ITEM_PROJECTID,ITEM_BUILDINGID_P,ITEM_PROJECTID_P,ITEM_MAINPRICE,ITEM_MAINPRICERENT,ITEM_MAINPRICEPST,ITEM_MAINPRICERENTPST,ITEM_MAINPRICETYPE,ITEM_MAINPRICERENTTYPE,ITEM_MODIFYDATE,ITEM_STATUS,ITEM_BUILDINGSTD,ITEM_ADJEVD,ID from TLK_计价办公核准基价
|
||||
</sql>
|
||||
|
||||
<select id="selectOfficeBasePriceUltimateListCount" parameterType="OfficeBasePriceUltimate" resultType="int">
|
||||
<select id="selectOfficeBasePriceUltimateListCount" parameterType="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice" resultType="int">
|
||||
select count(1) from TLK_计价办公核准基价
|
||||
<where>
|
||||
<if test="yearMonth != null">
|
||||
@ -44,7 +44,7 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOfficeBasePriceUltimateList" parameterType="OfficeBasePriceUltimate"
|
||||
<select id="selectOfficeBasePriceUltimateList" parameterType="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice"
|
||||
resultMap="OfficeBasePriceUltimateResult">
|
||||
<include refid="selectOfficeBasePriceUltimateVo"/>
|
||||
<where>
|
||||
@ -75,22 +75,11 @@
|
||||
<!-- </trim>-->
|
||||
<!-- </insert>-->
|
||||
|
||||
<update id="updateOfficeBasePriceUltimate" parameterType="OfficeBasePriceUltimate">
|
||||
<update id="updateOfficeBasePriceUltimate" parameterType="com.ruoyi.project.data.price.domain.UltimateOfficeBasePrice">
|
||||
update TLK_计价办公核准基价 set ITEM_YEARMONTH=ITEM_YEARMONTH
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- <delete id="deleteOfficeBasePriceUltimateById" parameterType="Integer">-->
|
||||
<!-- delete from office_base_price_ultimate where id = #{id}-->
|
||||
<!-- </delete>-->
|
||||
|
||||
<!-- <delete id="deleteOfficeBasePriceUltimateByIds" parameterType="String">-->
|
||||
<!-- delete from office_base_price_ultimate where id in-->
|
||||
<!-- <foreach item="id" collection="array" open="(" separator="," close=")">-->
|
||||
<!-- #{id}-->
|
||||
<!-- </foreach>-->
|
||||
<!-- </delete>-->
|
||||
|
||||
</mapper>
|
@ -0,0 +1,65 @@
|
||||
<?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.ruoyi.project.data.price.mapper.UltimateResidenceRentPriceMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.project.data.price.domain.UltimateResidenceRentBasePrice"
|
||||
id="MappingResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="communityId" column="projectID"/>
|
||||
<result property="priceType" column="priceType"/>
|
||||
<result property="basePrice_1" column="basePrice_1"/>
|
||||
<result property="rentPrice" column="rentPrice"/>
|
||||
<result property="sumCase1" column="sumCase1"/>
|
||||
<result property="voppa" column="voppa"/>
|
||||
<result property="voppat" column="voppat"/>
|
||||
<result property="gf_1Room" column="gf_1Room"/>
|
||||
<result property="gf_2Room" column="gf_2Room"/>
|
||||
<result property="gy_2Room" column="gy_2Room"/>
|
||||
<result property="gy_3Room" column="gy_3Room"/>
|
||||
<result property="one_Room" column="one_Room"/>
|
||||
<result property="two_Room" column="two_Room"/>
|
||||
<result property="three_Room" column="three_Room"/>
|
||||
<result property="entireRentRatio" column="entireRentRatio"/>
|
||||
<result property="entireRentNum" column="entireRentNum"/>
|
||||
<result property="shareRentRatio" column="shareRentRatio"/>
|
||||
<result property="shareRentNum" column="shareRentNum"/>
|
||||
<result property="saleRentRatio" column="saleRentRatio"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="adjEvd" column="adjEvd"/>
|
||||
<result property="modifyDate" column="modifyDate"/>
|
||||
</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}
|
||||
</sql>
|
||||
|
||||
<select id="selectCountByRoute" parameterType="com.ruoyi.project.data.price.domain.UltimateResidenceRentBasePrice" resultType="int">
|
||||
select count(1) from ODS_PROJECT_RENT_PRICE_INFO_${yearMonth}
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
AND ProjectID = #{communityId}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
AND Status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectListByRoute" parameterType="com.ruoyi.project.data.price.domain.UltimateResidenceRentBasePrice"
|
||||
resultMap="MappingResult">
|
||||
<include refid="selectAllColumn"/>
|
||||
<where>
|
||||
<if test="communityId != null">
|
||||
AND ProjectID = #{communityId}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
AND Status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
order by ProjectID ASC, status DESC OFFSET #{pageIndex} rows fetch next #{pageSize} rows only;
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user