|
@@ -5,7 +5,7 @@
|
|
<select id="selectClPriceValue" parameterType="org.jeecg.modules.costModelXmxqCl.entity.CostModelXmxqCl" resultType="org.jeecg.modules.costModelXmxqCl.entity.CostModelXmxqCl">
|
|
<select id="selectClPriceValue" parameterType="org.jeecg.modules.costModelXmxqCl.entity.CostModelXmxqCl" resultType="org.jeecg.modules.costModelXmxqCl.entity.CostModelXmxqCl">
|
|
select ifnull(max(CONVERT(danjia, DECIMAL)),0) as maxDanjia,
|
|
select ifnull(max(CONVERT(danjia, DECIMAL)),0) as maxDanjia,
|
|
ifnull(min(CONVERT(danjia, DECIMAL)),0) as minDanjia,
|
|
ifnull(min(CONVERT(danjia, DECIMAL)),0) as minDanjia,
|
|
- ifnull(avg(CONVERT(danjia, DECIMAL)),0) as aveDanjia,
|
|
|
|
|
|
+ round(ifnull(avg(CONVERT(danjia, DECIMAL)),0),2) as aveDanjia,
|
|
ifnull((select danjia from kzks_cost_model_cl_price
|
|
ifnull((select danjia from kzks_cost_model_cl_price
|
|
<where>
|
|
<where>
|
|
<if test="wlbm != null and wlbm != ''">and wlbm = #{wlbm}</if>
|
|
<if test="wlbm != null and wlbm != ''">and wlbm = #{wlbm}</if>
|
|
@@ -16,7 +16,7 @@
|
|
ORDER BY HT_DATE DESC limit 1),0) as recentDanjia,
|
|
ORDER BY HT_DATE DESC limit 1),0) as recentDanjia,
|
|
ifnull(max(CONVERT(danjia, DECIMAL)),0) * #{number} as maxPrice,
|
|
ifnull(max(CONVERT(danjia, DECIMAL)),0) * #{number} as maxPrice,
|
|
ifnull(min(CONVERT(danjia, DECIMAL)),0) * #{number} as minPrice,
|
|
ifnull(min(CONVERT(danjia, DECIMAL)),0) * #{number} as minPrice,
|
|
- ifnull(avg(CONVERT(danjia, DECIMAL)),0) * #{number} as avePrice,
|
|
|
|
|
|
+ round(ifnull(avg(CONVERT(danjia, DECIMAL)),0) * #{number},2) as avePrice,
|
|
ifnull((select danjia from kzks_cost_model_cl_price
|
|
ifnull((select danjia from kzks_cost_model_cl_price
|
|
<where>
|
|
<where>
|
|
<if test="wlbm != null and wlbm != ''">and wlbm = #{wlbm}</if>
|
|
<if test="wlbm != null and wlbm != ''">and wlbm = #{wlbm}</if>
|