feature(住宅住宅作价):开发住宅作价

1. 下载成交案例
2. 清洗成交案例
3. 下载挂牌案例
4. 清洗挂牌案例
5. 计算住宅销售基价
This commit is contained in:
purple
2020-07-01 20:22:18 +08:00
parent 952d2332de
commit afeb1cffc9
21 changed files with 1438 additions and 193 deletions

View File

@ -4,6 +4,40 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.data.cases.mapper.OriginalResidenceSaleOpeningCaseMapper">
<update id="createOpeningCaseRawTable">
<bind name="targetTableName" value="'dbo.ODS_HOUSINGCASELISTED_LJ_' + yearMonth +'_RAW'" />
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL
drop table ${targetTableName};
create table ${targetTableName}
(
case_id varchar (32) not null primary key
, llid bigint
, lcid bigint
, Name sql_variant
, Roomtype nvarchar(50)
, Area decimal(18, 2)
, Towards nvarchar(50)
, Storey nvarchar(50)
, Lastdeal date
, Condoelev nvarchar(50)
, Decoration nvarchar(50)
, Year int
, Address nvarchar(1024)
, Price decimal(18, 2)
, Cname nvarchar(1024)
, Visited_Num int
, First_Visit_Time date
, Visited_Num_15 int
, Visited_Num_30 int
, Url nvarchar(512)
, Curl nvarchar(512)
, CurlDate date
);
</update>
<update id="createTable">
<bind name="targetTableName" value="'dbo.original_residence_sale_opening_case_' + yearMonth" />
IF OBJECT_ID(#{targetTableName}, 'U') IS NOT NULL