Browse Source

财务修改-人员性质 的总人数 = 管理人员+技术人员

953954216 5 months ago
parent
commit
68d08d6acb

+ 1 - 1
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysCwxxTbMapper.xml

@@ -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,