|
|
|
@ -23,10 +23,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="lawEnforcementItem" column="law_enforcement_item" /> |
|
|
|
<result property="lawEnforcementCode" column="law_enforcement_code" /> |
|
|
|
<result property="enterpriseNumber" column="enterprise_number" /> |
|
|
|
<result property="isSubmit" column="is_submit" /> |
|
|
|
</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_require,enterprise_number 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_require,enterprise_number,is_submit from enterprise_law_enforcement |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectEnterpriseLawEnforcementList" parameterType="EnterpriseLawEnforcement" resultMap="EnterpriseLawEnforcementResult"> |
|
|
|
@ -42,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="lawEnforcerId != null "> and law_enforcer_id = #{lawEnforcerId}</if> |
|
|
|
<if test="lawEnforcerTel != null and lawEnforcerTel != ''"> and law_enforcer_tel = #{lawEnforcerTel}</if> |
|
|
|
<if test="status != null"> and status = #{lawEnforcerTel}</if> |
|
|
|
<if test="isSubmit != null "> and is_submit = #{isSubmit}</if> |
|
|
|
<if test="lawEnforcementItem != null and lawEnforcementItem != ''"> and law_enforcement_item like concat('%', #{lawEnforcementItem}, '%')</if> |
|
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''"> and law_enforcement_code = #{lawEnforcementCode}</if> |
|
|
|
<if test="lawEnforcerId != null and lawEnforcerId != ''"> and law_enforcer_id = #{lawEnforcerId}</if> |
|
|
|
@ -112,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="deptId != null ">dept_id,</if> |
|
|
|
<if test="isDelete != null ">is_delete,</if> |
|
|
|
<if test="status != null ">status,</if> |
|
|
|
<if test="isSubmit != null "> is_submit,</if> |
|
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''">law_enforcement_code,</if> |
|
|
|
<if test="linkMan != null and linkMan != ''">link_man,</if> |
|
|
|
<if test="linkTel != null and linkTel != ''">link_tel,</if> |
|
|
|
@ -137,6 +140,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="deptId != null ">#{deptId},</if> |
|
|
|
<if test="isDelete != null ">#{isDelete},</if> |
|
|
|
<if test="status != null ">#{status},</if> |
|
|
|
<if test="isSubmit != null "> #{isSubmit},</if> |
|
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''">#{lawEnforcementCode},</if> |
|
|
|
<if test="linkMan != null and linkMan != ''">#{linkMan},</if> |
|
|
|
<if test="linkTel != null and linkTel != ''">#{linkTel},</if> |
|
|
|
@ -165,6 +169,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="deptId != null ">dept_id = #{deptId},</if> |
|
|
|
<if test="isDelete != null ">is_delete = #{isDelete},</if> |
|
|
|
<if test="status != null ">status = #{status},</if> |
|
|
|
<if test="isSubmit != null ">is_submit = #{isSubmit},</if> |
|
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''">law_enforcement_code = #{lawEnforcementCode},</if> |
|
|
|
<if test="linkMan != null and linkMan != ''">link_man = #{linkMan},</if> |
|
|
|
<if test="linkTel != null and linkTel != ''">link_tel = #{linkTel},</if> |
|
|
|
|