master
xhj 5 months ago
parent c565dad230
commit 64f36b5def

@ -95,6 +95,7 @@ public class DmYdjhController {
.eq(StrUtil.isNotEmpty(map.get("dcch")),"dc_ch",map.get("dcch"))
.eq(StrUtil.isNotEmpty(map.get("dcpl")),"dc_pl",map.get("dcpl"))
.eq("lx","B")
.and(wp->wp.ne("zt", "-1").or().ne("zt","99"))
.orderByAsc("jssj,dc_ch,dc_pl,zl,lqlb")
);

@ -862,7 +862,7 @@ where dc_ch=#{dcch} and dc_pl =#{dcpl}
SUM(CASE WHEN ISNULL(dm_ydjh.ylbs, 'N') = 'Y' THEN 1 ELSE 0 END) AS ylbs
FROM
dm_ydjh
where 1=1 AND lx='B' and isnull(dm_ydjh.zt,'') != '-1'
where 1=1 AND lx='B' and ( isnull(dm_ydjh.zt,'') != '-1' or isnull(dm_ydjh.zt,'') !='99' )
<if test=" dcCh!=null and dcCh!=''">
and dm_ydjh.dc_ch=#{dcCh}
</if>

Loading…
Cancel
Save