浏览代码

sql错误

shiqian 3 年之前
父节点
当前提交
26ea85f892
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      boman-web-core/src/main/resources/mapper/CzrkMapper.xml

+ 2 - 2
boman-web-core/src/main/resources/mapper/CzrkMapper.xml

@@ -422,7 +422,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </select>
 
     <select id="countByCzJs1" resultType="int">
-        SELECT DISTINCT(jzdz.id_card) from czrk_jzdz jzdz
+        SELECT count(DISTINCT(jzdz.id_card)) from czrk_jzdz jzdz
         where jzdz.status = 'N' and jzdz.update_time &gt;= #{startTime} and jzdz.update_time &lt;= #{endTime}
         <if test="deptIdList != null  and deptIdList.size() > 0">
             and jzdz.dept_id in
@@ -859,7 +859,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </select>
 
     <select id="countAll" resultType="int">
-        select count(1) from czrk where is_del = '';
+        select count(1) from czrk where is_del = 'N';
     </select>
 
     <select id="selectCzrkListByPage" parameterType="Integer" resultMap="CzrkResult">