|
|
|
@ -1792,7 +1792,7 @@ where dm_ydjh.DC_CH=#{dcch} and dm_ydjh.dc_pl=#{dcpl}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getByRjh" resultType="com.dsic.gj_erp.bean.jhgk.dto.RjhDto">
|
|
|
|
|
SELECT
|
|
|
|
|
CONVERT(decimal(10,1),SUM(CASE WHEN ISNULL(dm_ydjh.pwjhrq, '') != '' and substring(pwjhrq,0,11)>#{yf} THEN 1 ELSE 0 END)/#{num}) AS pwnum,
|
|
|
|
|
CONVERT(decimal(10,1),SUM(CASE WHEN ISNULL(dm_ydjh.pwjhrq, '') != '' and substring(pwjhrq,0,8)=#{yf} THEN 1 ELSE 0 END)/#{num}) AS pwnum,
|
|
|
|
|
CONVERT(decimal(10,1),SUM(CASE WHEN ISNULL(dm_ydjh.qgjhrq, '') != '' and substring(qgjhrq,0,8)=#{yf} and kw='8' THEN 1 ELSE 0 END)/#{num}) AS sk1num,
|
|
|
|
|
CONVERT(decimal(10,1),SUM(CASE WHEN ISNULL(dm_ydjh.qgjhrq, '') != '' and substring(qgjhrq,0,8)=#{yf} and kw='7' THEN 1 ELSE 0 END)/#{num}) AS lm1num,
|
|
|
|
|
CONVERT(decimal(10,1),SUM(CASE WHEN ISNULL(dm_ydjh.qgjhrq, '') != '' and substring(qgjhrq,0,8)=#{yf} and kw='12' THEN 1 ELSE 0 END)/#{num}) AS sk2num,
|
|
|
|
|