|
|
|
@ -19,10 +19,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="userId" column="user_id" /> |
|
|
|
<result property="deptId" column="dept_id" /> |
|
|
|
<result property="status" column="status" /> |
|
|
|
<result property="lawEnforcementItem" column="law_enforcement_item" /> |
|
|
|
<result property="lawEnforcementCode" column="law_enforcement_code" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectEnterpriseLawEnforcementVo"> |
|
|
|
select id, law_enforcement, law_enforcement_id, enterprise_name, enterprise_number, enforcement_time, create_time, create_by, law_enforcer, law_enforcer_id, law_enforcer_tel,status from enterprise_law_enforcement |
|
|
|
select id, law_enforcement, law_enforcement_id, enterprise_name, enterprise_number, enforcement_time, create_time, create_by, law_enforcer, law_enforcer_id, law_enforcer_tel,status,law_enforcement_item,law_enforcement_code from enterprise_law_enforcement |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectEnterpriseLawEnforcementList" parameterType="EnterpriseLawEnforcement" resultMap="EnterpriseLawEnforcementResult"> |
|
|
|
@ -37,6 +39,8 @@ 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="lawEnforcementItem != null and lawEnforcementItem != ''"> and law_enforcement_item = #{lawEnforcementItem}</if> |
|
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''"> and law_enforcement_code = #{lawEnforcementCode}</if> |
|
|
|
</where> |
|
|
|
order by enforcement_time desc |
|
|
|
</select> |
|
|
|
@ -63,6 +67,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="userId != null and userId != ''">user_id,</if> |
|
|
|
<if test="deptId != null and deptId != ''">dept_id,</if> |
|
|
|
<if test="status != null">status,</if> |
|
|
|
<if test="lawEnforcementItem != null and lawEnforcementItem != ''">law_enforcement_item,</if> |
|
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''">law_enforcement_code,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null and id != ''">#{id},</if> |
|
|
|
@ -79,6 +85,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="userId != null and userId != ''">#{userId},</if> |
|
|
|
<if test="deptId != null and deptId != ''">#{deptId},</if> |
|
|
|
<if test="deptId != null">#{status},</if> |
|
|
|
<if test="lawEnforcementItem != null and lawEnforcementItem != ''">#{lawEnforcementItem},</if> |
|
|
|
<if test="lawEnforcementCode != null and lawEnforcementCode != ''">#{lawEnforcementCode},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
@ -96,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="lawEnforcerId != null ">law_enforcer_id = #{lawEnforcerId},</if> |
|
|
|
<if test="lawEnforcerTel != null and lawEnforcerTel != ''">law_enforcer_tel = #{lawEnforcerTel},</if> |
|
|
|
<if test="status != null">status = #{status},</if> |
|
|
|
<if test="lawEnforcementItem != null and lawEnforcementItem != ''">law_enforcement_item = #{lawEnforcementItem},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
|