数据平台接口迁移
This commit is contained in:
@ -48,7 +48,7 @@ spring:
|
||||
# 主库数据源
|
||||
master:
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:6060/ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://172.16.30.243:6060/ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: LOLm2dI2UQF#RxOf
|
||||
# 从库数据源
|
||||
@ -62,4 +62,9 @@ spring:
|
||||
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
url: jdbc:sqlserver://172.16.30.233:1433;DatabaseName=obpm_LianCheng_Data
|
||||
username: sa
|
||||
password: Lcdatacenter_888
|
||||
compute:
|
||||
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
url: jdbc:sqlserver://172.16.30.233:1433;DatabaseName=uv_compute
|
||||
username: sa
|
||||
password: Lcdatacenter_888
|
@ -1,128 +1,128 @@
|
||||
# 项目相关配置
|
||||
ruoyi:
|
||||
# 名称
|
||||
name: RuoYi
|
||||
# 版本
|
||||
version: 2.2.0
|
||||
# 版权年份
|
||||
copyrightYear: 2019
|
||||
# 实例演示开关
|
||||
demoEnabled: true
|
||||
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
||||
profile: D:/ruoyi/uploadPath
|
||||
# 获取ip地址开关
|
||||
addressEnabled: false
|
||||
|
||||
# 开发环境配置
|
||||
server:
|
||||
# 服务器的HTTP端口,默认为8080
|
||||
port: 8080
|
||||
servlet:
|
||||
# 应用的访问路径
|
||||
context-path: /
|
||||
tomcat:
|
||||
# tomcat的URI编码
|
||||
uri-encoding: UTF-8
|
||||
# tomcat最大线程数,默认为200
|
||||
max-threads: 800
|
||||
# Tomcat启动初始化的线程数,默认值25
|
||||
min-spare-threads: 30
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
com.ruoyi: debug
|
||||
org.springframework: warn
|
||||
|
||||
# Spring配置
|
||||
spring:
|
||||
# 资源信息
|
||||
messages:
|
||||
# 国际化资源文件路径
|
||||
basename: i18n/messages
|
||||
profiles:
|
||||
active: druid
|
||||
# 文件上传
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件大小
|
||||
max-file-size: 10MB
|
||||
# 设置总上传的文件大小
|
||||
max-request-size: 20MB
|
||||
# 服务模块
|
||||
devtools:
|
||||
restart:
|
||||
# 热部署开关
|
||||
enabled: true
|
||||
# redis 配置
|
||||
redis:
|
||||
# 地址
|
||||
host: localhost
|
||||
# 端口,默认为6379
|
||||
port: 6379
|
||||
# 密码
|
||||
password:
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
# 连接池中的最大空闲连接
|
||||
max-idle: 8
|
||||
# 连接池的最大数据库连接数
|
||||
max-active: 8
|
||||
# #连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||
max-wait: -1ms
|
||||
|
||||
# token配置
|
||||
token:
|
||||
# 令牌自定义标识
|
||||
header: Authorization
|
||||
# 令牌秘钥
|
||||
secret: abcdefghijklmnopqrstuvwxyz
|
||||
# 令牌有效期(默认30分钟)
|
||||
expireTime: 30
|
||||
|
||||
# MyBatis配置
|
||||
mybatis:
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: com.ruoyi.project.**.domain
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath*:mybatis/**/*Mapper.xml
|
||||
# 加载全局的配置文件
|
||||
configLocation: classpath:mybatis/mybatis-config.xml
|
||||
|
||||
# PageHelper分页插件
|
||||
pagehelper:
|
||||
helperDialect: mysql
|
||||
reasonable: true
|
||||
supportMethodsArguments: true
|
||||
params: count=countSql
|
||||
|
||||
# Swagger配置
|
||||
swagger:
|
||||
# 是否开启swagger
|
||||
enabled: true
|
||||
# 请求前缀
|
||||
pathMapping: /dev-api
|
||||
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
# 过滤开关
|
||||
enabled: true
|
||||
# 排除链接(多个用逗号分隔)
|
||||
excludes: /system/notice/*
|
||||
# 匹配链接
|
||||
urlPatterns: /system/*,/monitor/*,/tool/*
|
||||
|
||||
# 代码生成
|
||||
gen:
|
||||
# 作者
|
||||
author: ruoyi
|
||||
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
|
||||
packageName: com.ruoyi.project.system
|
||||
# 自动去除表前缀,默认是true
|
||||
autoRemovePre: false
|
||||
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
|
||||
# 项目相关配置
|
||||
ruoyi:
|
||||
# 名称
|
||||
name: RuoYi
|
||||
# 版本
|
||||
version: 2.2.0
|
||||
# 版权年份
|
||||
copyrightYear: 2019
|
||||
# 实例演示开关
|
||||
demoEnabled: true
|
||||
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
||||
profile: D:/ruoyi/uploadPath
|
||||
# 获取ip地址开关
|
||||
addressEnabled: false
|
||||
|
||||
# 开发环境配置
|
||||
server:
|
||||
# 服务器的HTTP端口,默认为8080
|
||||
port: 8080
|
||||
servlet:
|
||||
# 应用的访问路径
|
||||
context-path: /
|
||||
tomcat:
|
||||
# tomcat的URI编码
|
||||
uri-encoding: UTF-8
|
||||
# tomcat最大线程数,默认为200
|
||||
max-threads: 800
|
||||
# Tomcat启动初始化的线程数,默认值25
|
||||
min-spare-threads: 30
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
com.ruoyi: debug
|
||||
org.springframework: warn
|
||||
|
||||
# Spring配置
|
||||
spring:
|
||||
# 资源信息
|
||||
messages:
|
||||
# 国际化资源文件路径
|
||||
basename: i18n/messages
|
||||
profiles:
|
||||
active: druid
|
||||
# 文件上传
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件大小
|
||||
max-file-size: 10MB
|
||||
# 设置总上传的文件大小
|
||||
max-request-size: 20MB
|
||||
# 服务模块
|
||||
devtools:
|
||||
restart:
|
||||
# 热部署开关
|
||||
enabled: true
|
||||
# redis 配置
|
||||
redis:
|
||||
# 地址
|
||||
host: 172.16.30.243
|
||||
# 端口,默认为6379
|
||||
port: 6030
|
||||
# 密码
|
||||
password:
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
# 连接池中的最大空闲连接
|
||||
max-idle: 8
|
||||
# 连接池的最大数据库连接数
|
||||
max-active: 8
|
||||
# #连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||
max-wait: -1ms
|
||||
|
||||
# token配置
|
||||
token:
|
||||
# 令牌自定义标识
|
||||
header: Authorization
|
||||
# 令牌秘钥
|
||||
secret: abcdefghijklmnopqrstuvwxyz
|
||||
# 令牌有效期(默认30分钟)
|
||||
expireTime: 30
|
||||
|
||||
# MyBatis配置
|
||||
mybatis:
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: com.ruoyi.project.**.domain
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath*:mybatis/**/*Mapper.xml
|
||||
# 加载全局的配置文件
|
||||
configLocation: classpath:mybatis/mybatis-config.xml
|
||||
|
||||
# PageHelper分页插件
|
||||
pagehelper:
|
||||
helperDialect: mysql
|
||||
reasonable: true
|
||||
supportMethodsArguments: true
|
||||
params: count=countSql
|
||||
|
||||
# Swagger配置
|
||||
swagger:
|
||||
# 是否开启swagger
|
||||
enabled: true
|
||||
# 请求前缀
|
||||
pathMapping: /dev-api
|
||||
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
# 过滤开关
|
||||
enabled: true
|
||||
# 排除链接(多个用逗号分隔)
|
||||
excludes: /system/notice/*
|
||||
# 匹配链接
|
||||
urlPatterns: /system/*,/monitor/*,/tool/*
|
||||
|
||||
# 代码生成
|
||||
gen:
|
||||
# 作者
|
||||
author: ruoyi
|
||||
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
|
||||
packageName: com.ruoyi.project.system
|
||||
# 自动去除表前缀,默认是true
|
||||
autoRemovePre: false
|
||||
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
|
||||
tablePrefix: sys_
|
@ -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