|
|
@ -205,6 +205,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 --> |
|
|
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 --> |
|
|
and DATE_FORMAT(create_time,'%Y-%m-%d') <= STR_TO_DATE(#{endTime},'%Y-%m-%d') |
|
|
and DATE_FORMAT(create_time,'%Y-%m-%d') <= STR_TO_DATE(#{endTime},'%Y-%m-%d') |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<choose> |
|
|
|
|
|
<when test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
|
|
and dept_id IN ( SELECT dept_id FROM sys_dept WHERE dept_id = #{deptId} or find_in_set( #{deptId} , ancestors ) <![CDATA[ <> ]]> 0 ) |
|
|
|
|
|
</when> |
|
|
|
|
|
<!--默认开启权限搜索 --> |
|
|
|
|
|
<otherwise> |
|
|
|
|
|
${params.dataScope} |
|
|
|
|
|
</otherwise> |
|
|
|
|
|
</choose> |
|
|
</where> |
|
|
</where> |
|
|
order by create_time desc |
|
|
order by create_time desc |
|
|
</select> |
|
|
</select> |
|
|
@ -517,7 +526,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
#{id} |
|
|
#{id} |
|
|
</foreach> |
|
|
</foreach> |
|
|
</delete> |
|
|
</delete> |
|
|
<!-- |
|
|
<!-- |
|
|
<select id="countMentByTime" resultMap="EnforceRegCountResult" |
|
|
<select id="countMentByTime" resultMap="EnforceRegCountResult" |
|
|
resultType="com.zdxt.code.domain.EnforceRegCount"> |
|
|
resultType="com.zdxt.code.domain.EnforceRegCount"> |
|
|
SELECT law_enforcement, law_enforcement_id,enterprise_number, COUNT(law_enforcement_id) AS num |
|
|
SELECT law_enforcement, law_enforcement_id,enterprise_number, COUNT(law_enforcement_id) AS num |
|
|
|