|
@@ -4,14 +4,14 @@
|
|
|
|
|
|
<select id="selectWxPriceValue" parameterType="org.jeecg.modules.costModelXmxqWx.entity.CostModelXmxqWx" resultType="org.jeecg.modules.costModelXmxqWx.entity.CostModelXmxqWx">
|
|
|
select
|
|
|
- CONVERT(max_price, DECIMAL) as maxDanjia,
|
|
|
- CONVERT(min_price, DECIMAL) as minDanjia,
|
|
|
- CONVERT(ave_price, DECIMAL) as aveDanjia,
|
|
|
- CONVERT(ave_price, DECIMAL) as recentDanjia,
|
|
|
- CONVERT(max_price, DECIMAL) * #{number} as maxPrice,
|
|
|
- CONVERT(min_price, DECIMAL) * #{number} as minPrice,
|
|
|
- CONVERT(ave_price, DECIMAL) * #{number} as avePrice,
|
|
|
- CONVERT(ave_price, DECIMAL) * #{number} as recentPrice,
|
|
|
+ ifnull(CONVERT(max_price, DECIMAL),0) as maxDanjia,
|
|
|
+ ifnull(CONVERT(min_price, DECIMAL),0) as minDanjia,
|
|
|
+ ifnull(CONVERT(ave_price, DECIMAL),0) as aveDanjia,
|
|
|
+ ifnull(CONVERT(ave_price, DECIMAL),0) as recentDanjia,
|
|
|
+ ifnull(CONVERT(max_price, DECIMAL),0) * #{number} as maxPrice,
|
|
|
+ ifnull(CONVERT(min_price, DECIMAL),0) * #{number} as minPrice,
|
|
|
+ ifnull(CONVERT(ave_price, DECIMAL),0) * #{number} as avePrice,
|
|
|
+ ifnull(CONVERT(ave_price, DECIMAL),0) * #{number} as recentPrice,
|
|
|
#{xiangmuId} as xiangmuId,
|
|
|
#{xiangmuName} as xiangmuName,
|
|
|
#{wxProject} as wxProject,
|