|
|
|
@ -47,7 +47,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="isEvaluate" column="is_evaluate" /> |
|
|
|
<result property="lawId" column="law_id" /> |
|
|
|
<result property="lawText" column="law_text" /> |
|
|
|
<result property="num" column="num" /> |
|
|
|
<result property="numLeft" column="numLeft" /> |
|
|
|
<result property="numRight" column="numRight" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<resultMap type="com.zdxt.code.domain.EnforceRegCount" id="EnforceRegCountResult"> |
|
|
|
@ -164,8 +165,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="enterpriseId != null and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if> |
|
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if> |
|
|
|
<if test="enterpriseNumber != null and enterpriseNumber != ''"> and enterprise_number = #{enterpriseNumber}</if> |
|
|
|
<if test="userId != null "> and user_id = #{userId}</if> |
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if> |
|
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if> |
|
|
|
<if test="status != null "> and status = #{status}</if> |
|
|
|
|
|
|
|
@ -224,9 +223,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</where> |
|
|
|
GROUP BY enterprise_number order by enforcement_time desc) t |
|
|
|
<where> |
|
|
|
<if test="num != null and num != ''"> |
|
|
|
and t.num >= #{num} |
|
|
|
<if test="numLeft != null and numLeft != ''"> |
|
|
|
and t.num >= #{numLeft} |
|
|
|
</if> |
|
|
|
<if test="numRight != null and numRight != ''"> |
|
|
|
and t.num <= #{numRight} |
|
|
|
</if> |
|
|
|
<!-- <if test="deptId != null and warnType!=null and warnType ==0" >--> |
|
|
|
<!-- and t.bureau_dept_id = #{deptId} or find_in_set(#{deptId}, d.ancestors)--> |
|
|
|
<!-- </if>--> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
|