trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <iftest="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from gjj80..wxn_user) ,6)*100
trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <iftest="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from gjj80.wxn_user) ,6)*100
,'999990.9999') ||'%' tslzb,
,'999990.9999') ||'%' tslzb,
to_char(
to_char(
1-trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <iftest="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from gjj80..wxn_user) ,6)*100
1-trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <iftest="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from gjj80.wxn_user) ,6)*100
,'999990.9999') ||'%' ftslzb,
,'999990.9999') ||'%' ftslzb,
trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <iftest="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from gjj80..wxn_user) ,6)*100
trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <iftest="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from gjj80.wxn_user) ,6)*100
tslsl,
tslsl,
1-trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <iftest="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from gjj80..wxn_user) ,6)*100
1-trunc((select sum(count(*)) from M_TSXQ a,s_tslx b where a.tslxid = b.tslxid <iftest="year != null and year !='' "> and to_char(a.tssj,'yyyy') = #{year} </if> and b.zlx = 1 group by grzh)/(select count(*) from gjj80.wxn_user) ,6)*100
from gjj80..wxn_user w inner join s_qdzd a on w.zcqdid = a.qdid inner join s_qdzd b on w.zhdlqdid = b.qdid and w.grzh is not null and (INSTR(w.ZJHM || ',' || w.XINGMING || ',' || w.GRZH, #{data}) > 0 OR #{data} IS NULL)
from gjj80.wxn_user w inner join s_qdzd a on w.zcqdid = a.qdid inner join s_qdzd b on w.zhdlqdid = b.qdid and w.grzh is not null and (INSTR(w.ZJHM || ',' || w.XINGMING || ',' || w.GRZH, #{data}) > 0 OR #{data} IS NULL)
<iftest="yhlb != null and yhlb !=''">and iszx = #{yhlb}</if>
<iftest="yhlb != null and yhlb !=''">and iszx = #{yhlb}</if>
<choose>
<choose>
<whentest="zckssj != null and zckssj !='' and zcjssj != null and zcjssj !=''">
<whentest="zckssj != null and zckssj !='' and zcjssj != null and zcjssj !=''">
...
@@ -31,16 +31,16 @@
...
@@ -31,16 +31,16 @@
</select>
</select>
<updateid="userInfoUpdate">
<updateid="userInfoUpdate">
update gjj80..wxn_user a set a.grzh = a.grzh <iftest="xingbie != null and xingbie !=''">,a.xingbie = #{xingbie}</if><iftest="xmqp != null and xmqp !=''">,a.xmqp =#{xmqp}</if><iftest="csny != null and csny !=''">,a.csny = #{csny}</if>
update gjj80.wxn_user a set a.grzh = a.grzh <iftest="xingbie != null and xingbie !=''">,a.xingbie = #{xingbie}</if><iftest="xmqp != null and xmqp !=''">,a.xmqp =#{xmqp}</if><iftest="csny != null and csny !=''">,a.csny = #{csny}</if>
where a.grzh = #{grzh}
where a.grzh = #{grzh}
</update>
</update>
<updateid="iszx">
<updateid="iszx">
update gjj80..wxn_user a set a.iszx = #{iszx},a.zxbz=#{zxbz} where a.grzh = #{grzh}
update gjj80.wxn_user a set a.iszx = #{iszx},a.zxbz=#{zxbz} where a.grzh = #{grzh}
</update>
</update>
<selectid="zxzt"resultType="string">
<selectid="zxzt"resultType="string">
select iszx from gjj80..wxn_user where grzh = #{grzh}
select iszx from gjj80.wxn_user where grzh = #{grzh}