|
@@ -117,7 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
(select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1' and csrq is not null and TIMESTAMPDIFF(YEAR, csrq, CURDATE()) BETWEEN 36 and 45 ) fortyfive,
|
|
|
(select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1' and csrq is not null and TIMESTAMPDIFF(YEAR, csrq, CURDATE()) BETWEEN 46 and 55 ) fiftyfive,
|
|
|
(select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1' and csrq is not null and TIMESTAMPDIFF(YEAR, csrq, CURDATE()) >=56 ) fiftysix,
|
|
|
- (select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1' and zylx = '11') jgglry,
|
|
|
+ ( (select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1') - (select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1' and zylx not in ('11','99')) ) jgglry,
|
|
|
(select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1' and zylx not in ('11','99')) zyjsjnry,
|
|
|
(select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1' and zylx = '01') ylhly,
|
|
|
a.cwzs nmcws, a.hlxcws hlxcw,
|