|
|
|
@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="unionNo" column="union_no" /> |
|
|
|
<result property="hasUnion" column="has_union" /> |
|
|
|
<result property="hasAuto" column="has_auto" /> |
|
|
|
<result property="lawEnforceCategory" column="law_enforce_category" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<resultMap type="com.zdxt.code.domain.EnforceRegCount" id="EnforceRegCountResult"> |
|
|
|
@ -69,7 +70,8 @@ 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, has_union, has_auto, union_no |
|
|
|
bureau_dept_id,bureau_dept_name,is_evaluate, law_id, law_text, has_union, has_auto, union_no, |
|
|
|
law_enforce_category |
|
|
|
from enforcement_registration |
|
|
|
</sql> |
|
|
|
|
|
|
|
@ -512,7 +514,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<select id="selectEnforcementRegistrationAndAddressList" parameterType="EnforcementRegistration" resultMap="EnforcementRegistrationResult"> |
|
|
|
select r.id,r.bureau_dept_name,r.bureau_dept_id,r.law_enforcer,r.law_enforcer_two,r.enterprise_name,r.enterprise_number,i.enterprise_address,r.law_enforcement_item_text,r.unite_check, |
|
|
|
r.check_category,r.check_css,r.is_complaint,r.create_time,r.law_id, r.enforcement_time from enforcement_registration r |
|
|
|
r.check_category,r.check_css,r.is_complaint,r.create_time,r.law_id, r.enforcement_time,r.law_enforce_category |
|
|
|
from enforcement_registration r |
|
|
|
left join (select * from enterprise_information group by enterprise_number order by is_delete asc) i on r.enterprise_number=i.enterprise_number |
|
|
|
<where> |
|
|
|
and r.bureau_dept_name is not null |
|
|
|
@ -569,6 +572,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="month != null and month != '' "> |
|
|
|
AND DATE_FORMAT(r.enforcement_time, '%m') = #{month} |
|
|
|
</if> |
|
|
|
<if test="lawEnforceCategory != null and lawEnforceCategory!=''"> and law_enforce_category = #{lawEnforceCategory}</if> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
@ -724,6 +728,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="unionNo != null and unionNo != ''"> union_no,</if> |
|
|
|
<if test="hasUnion != null"> has_union,</if> |
|
|
|
<if test="hasAuto != null"> has_auto,</if> |
|
|
|
<if test="lawEnforceCategory != null and lawEnforceCategory!=''"> law_enforce_category,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null and id != ''">#{id},</if> |
|
|
|
@ -771,6 +776,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="unionNo != null and unionNo != ''"> #{unionNo},</if> |
|
|
|
<if test="hasUnion != null"> #{hasUnion},</if> |
|
|
|
<if test="hasAuto != null"> #{hasAuto},</if> |
|
|
|
<if test="lawEnforceCategory != null and lawEnforceCategory!=''"> #{lawEnforceCategory},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
@ -822,6 +828,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="uniteCheck != null and uniteCheck != ''"> unite_check = #{uniteCheck},</if> |
|
|
|
<if test="hasUnion != null"> has_union = #{hasUnion},</if> |
|
|
|
<if test="hasAuto != null"> has_auto = #{hasAuto},</if> |
|
|
|
<if test="lawEnforceCategory != null and lawEnforceCategory!=''"> law_enforce_category = #{lawEnforceCategory},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
|