|
|
|
@ -49,6 +49,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="lawText" column="law_text" /> |
|
|
|
<result property="numLeft" column="numLeft" /> |
|
|
|
<result property="numRight" column="numRight" /> |
|
|
|
<result property="unionNo" column="union_no" /> |
|
|
|
<result property="hasUnion" column="has_union" /> |
|
|
|
<result property="hasAuto" column="has_auto" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<resultMap type="com.zdxt.code.domain.EnforceRegCount" id="EnforceRegCountResult"> |
|
|
|
@ -66,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
subsidiaryer_id, subsidiaryer_tel, law_enforcement_item, law_enforcement_item_text, |
|
|
|
law_enforcement_basis, law_enforcement_basis_text, remark, reslut, user_id, dept_id, is_delete, status, law_enforcement_code, |
|
|
|
is_complaint,is_submit, unite_check,check_css, enforce_reason, law_field,check_category, |
|
|
|
bureau_dept_id,bureau_dept_name,is_evaluate, law_id, law_text |
|
|
|
bureau_dept_id,bureau_dept_name,is_evaluate, law_id, law_text, has_union, has_auto, union_no |
|
|
|
from enforcement_registration |
|
|
|
</sql> |
|
|
|
|
|
|
|
@ -103,6 +106,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="uniteCheck != null and uniteCheck != ''"> and unite_check = #{uniteCheck}</if> |
|
|
|
<if test="checkCategory != null and checkCategory != ''"> and check_category = #{checkCategory}</if> |
|
|
|
<if test="checkCss != null and checkCss != ''"> and check_css = #{checkCss}</if> |
|
|
|
<if test="hasUnion != null and hasUnion != ''"> and has_union = #{hasUnion}</if> |
|
|
|
<if test="hasAuto != null and hasAuto != ''"> and has_auto = #{hasAuto}</if> |
|
|
|
|
|
|
|
<if test="searchValue != null and searchValue != ''"> |
|
|
|
and (law_enforcement_item_text like concat(concat('%',#{searchValue}),'%') |
|
|
|
@ -458,6 +463,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if> |
|
|
|
<if test="isComplaint != null "> and is_complaint = #{isComplaint}</if> |
|
|
|
<if test="status != null "> and status = #{status}</if> |
|
|
|
<if test="hasUnion != null and hasUnion != ''"> and has_union = #{hasUnion}</if> |
|
|
|
<if test="hasAuto != null and hasAuto != ''"> and has_auto = #{hasAuto}</if> |
|
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''"> and law_enforcement_code = #{lawEnforcementCode}</if> |
|
|
|
<if test="searchValue != null and searchValue != ''"> |
|
|
|
and (law_enforcement_item_text like concat(concat('%',#{searchValue}),'%') |
|
|
|
@ -569,6 +576,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isEvaluate != null"> is_evaluate,</if> |
|
|
|
<if test="lawId != null and lawId != ''"> law_id,</if> |
|
|
|
<if test="lawText != null and lawText != ''"> law_text,</if> |
|
|
|
<if test="unionNo != null and unionNo != ''"> union_no,</if> |
|
|
|
<if test="hasUnion != null and hasUnion != ''"> has_union,</if> |
|
|
|
<if test="hasAuto != null and hasAuto != ''"> has_auto,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null and id != ''">#{id},</if> |
|
|
|
@ -613,6 +623,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isEvaluate != null"> #{isEvaluate},</if> |
|
|
|
<if test="lawId != null and lawId != ''"> #{lawId},</if> |
|
|
|
<if test="lawText != null and lawText != ''"> #{lawText},</if> |
|
|
|
<if test="unionNo != null and unionNo != ''"> #{unionNo},</if> |
|
|
|
<if test="hasUnion != null and hasUnion != ''"> #{hasUnion},</if> |
|
|
|
<if test="hasAuto != null and hasAuto != ''"> #{hasAuto},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
@ -659,6 +672,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isEvaluate != null"> is_evaluate = #{isEvaluate},</if> |
|
|
|
<if test="lawId != null and lawId != ''"> law_id = #{lawId},</if> |
|
|
|
<if test="lawText != null and lawText != ''"> law_text = #{lawText},</if> |
|
|
|
<if test="hasUnion != null and hasUnion != ''"> has_union = #{hasUnion}</if> |
|
|
|
<if test="hasAuto != null and hasAuto != ''"> has_auto = #{hasAuto}</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
@ -1051,4 +1066,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</where> |
|
|
|
order by i.enterprise_address |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectEnforcementRegistrationByUnion" parameterType="EnforcementRegistration" resultMap="EnforcementRegistrationResult"> |
|
|
|
<include refid="selectEnforcementRegistrationVo"/> |
|
|
|
<where> |
|
|
|
<if test="enterpriseNumber != null and enterpriseNumber != ''"> and enterprise_number = #{enterpriseNumber}</if> |
|
|
|
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 --> |
|
|
|
and enforcement_time >= #{beginTime} |
|
|
|
</if> |
|
|
|
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 --> |
|
|
|
and enforcement_time <= #{endTime} |
|
|
|
</if> |
|
|
|
and union_no is not null |
|
|
|
</where> |
|
|
|
order by enforcement_time desc |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<update id="updateRegToUnionFlag" parameterType="EnforcementRegistration"> |
|
|
|
update enforcement_registration |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="hasUnion != null and hasUnion != ''"> has_union = #{hasUnion}</if> |
|
|
|
</trim> |
|
|
|
where union_no = #{unionNo} |
|
|
|
</update> |
|
|
|
</mapper> |