|
|
|
@ -33,10 +33,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="checkItemText" column="check_item_text" /> |
|
|
|
<result property="checkRequire" column="check_require" /> |
|
|
|
<result property="checkRequireText" column="check_require_text" /> |
|
|
|
<result property="bureauDeptId" column="bureau_dept_id" /> |
|
|
|
<result property="bureauDeptName" column="bureau_dept_name" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectEnterpriseLawEnforcementVo"> |
|
|
|
select id, law_enforcement, law_enforcement_id, enterprise_id, enterprise_name, check_time, create_time, create_by, law_enforcer, law_enforcer_id, law_enforcer_two, law_enforcer_two_id, remark, user_id, dept_id, is_delete, status, law_enforcement_code, link_man, link_tel, check_item, check_item_text, check_require, check_require_text, enterprise_number,is_submit, unite_check, is_unite, is_reg, main_deputy_order, tmp_dept_json from enterprise_law_enforcement |
|
|
|
select id, law_enforcement, law_enforcement_id, enterprise_id, enterprise_name, check_time, |
|
|
|
create_time, create_by, law_enforcer, law_enforcer_id, law_enforcer_two, law_enforcer_two_id, |
|
|
|
remark, user_id, dept_id, is_delete, status, law_enforcement_code, link_man, link_tel, check_item, |
|
|
|
check_item_text, check_require, check_require_text, enterprise_number,is_submit, unite_check, is_unite, |
|
|
|
is_reg, main_deputy_order, tmp_dept_json,bureau_dept_id,bureau_dept_name |
|
|
|
from enterprise_law_enforcement |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectEnterpriseLawEnforcementList" parameterType="EnterpriseLawEnforcement" resultMap="EnterpriseLawEnforcementResult"> |
|
|
|
@ -151,6 +158,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isReg != null and isReg != ''">is_reg,</if> |
|
|
|
<if test="mainDeputyOrder != null">main_deputy_order,</if> |
|
|
|
<if test="tmpDeptJson != null and tmpDeptJson != ''">tmp_dept_json,</if> |
|
|
|
<if test="bureauDeptName != null and bureauDeptName != ''"> bureau_dept_name,</if> |
|
|
|
<if test="bureauDeptId != null and bureauDeptId != ''"> bureau_dept_id,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null and id != ''">#{id},</if> |
|
|
|
@ -184,6 +193,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isReg != null and isReg != ''">#{isReg},</if> |
|
|
|
<if test="mainDeputyOrder != null">#{mainDeputyOrder},</if> |
|
|
|
<if test="tmpDeptJson != null and tmpDeptJson != ''">#{tmpDeptJson},</if> |
|
|
|
<if test="bureauDeptName != null and bureauDeptName != ''"> #{bureauDeptName},</if> |
|
|
|
<if test="bureauDeptId != null and bureauDeptId != ''"> #{bureauDeptId},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
@ -218,6 +229,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isReg != null and isReg != ''">is_reg = #{isReg},</if> |
|
|
|
<if test="mainDeputyOrder != null ">main_deputy_order = #{mainDeputyOrder},</if> |
|
|
|
<if test="tmpDeptJson != null and tmpDeptJson != ''">tmp_dept_json = #{tmpDeptJson},</if> |
|
|
|
<if test="bureauDeptName != null and bureauDeptName != ''"> bureau_dept_name = #{bureauDeptName},</if> |
|
|
|
<if test="bureauDeptId != null and bureauDeptId != ''"> bureau_dept_id = #{bureauDeptId},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
|