Administrator
2021-08-20 665ea36fde7a275e705b2fe72d89af5e016bf683
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -868,10 +868,10 @@
        <if test="deptid!=null and deptid!=''">
            and u.dept_id =#{deptid}
        </if>
        <if test="type!=null and type=='1'">
            and to_days(u.update_time) = to_days(now());
        <if test="type!=null and type=='1'.toString()">
            and to_days(u.update_time) = to_days(now())
        </if>
        <if test="type!=null and type=='2'">
        <if test="type!=null and type=='2'.toString()">
            and DATE_FORMAT(u.update_time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
        </if>
        GROUP BY d.dept_name,u.real_name,
@@ -892,10 +892,10 @@
        <if test="deptid!=null and deptid!=''">
            and u.departmentid =#{deptid}
        </if>
        <if test="type!=null and type=='1'">
            and to_days(u.time) = to_days(now());
        <if test="type!=null and type=='1'.toString()">
            and to_days(u.time) = to_days(now())
        </if>
        <if test="type!=null and type=='2'">
        <if test="type!=null and type=='2'.toString()">
            and DATE_FORMAT(u.time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
        </if>
        GROUP BY d.dept_name,
@@ -1059,6 +1059,7 @@
        <if test="deptid!=null and deptid!=''">
            and A.dept_id =#{deptid}
        </if>
        limit #{current},#{size};
    </select>
    <select id="seCountI" resultType="java.util.HashMap">
@@ -1250,6 +1251,7 @@
        <if test="deptid!=null and deptid!=''">
            and A.departmentid=#{deptid}
        </if>
        limit #{current},#{size};
    </select>
    <!--保安人员详情-->