|
|
@ -224,7 +224,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectEnforcementRegistrationByUnion" parameterType="EnforcementRegistration" resultMap="EnforcementRegistrationResult"> |
|
|
<select id="selectEnforcementRegistrationByUnion" parameterType="com.zdxt.enforcementcode.domain.bo.EnforcementRegistrationBo" resultMap="EnforcementRegistrationResult"> |
|
|
<include refid="selectEnforcementRegistrationVo"/> |
|
|
<include refid="selectEnforcementRegistrationVo"/> |
|
|
<where> |
|
|
<where> |
|
|
<if test="enterpriseNumber != null and enterpriseNumber != ''"> and enterprise_number = #{enterpriseNumber}</if> |
|
|
<if test="enterpriseNumber != null and enterpriseNumber != ''"> and enterprise_number = #{enterpriseNumber}</if> |
|
|
@ -242,7 +242,7 @@ |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateEnforcementRegistration" parameterType="EnforcementRegistration"> |
|
|
<update id="updateEnforcementRegistration" parameterType="com.zdxt.enforcementcode.domain.bo.EnforcementRegistrationBo"> |
|
|
update enforcement_registration |
|
|
update enforcement_registration |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<if test="lawEnforcement != null and lawEnforcement != ''">law_enforcement = #{lawEnforcement},</if> |
|
|
<if test="lawEnforcement != null and lawEnforcement != ''">law_enforcement = #{lawEnforcement},</if> |
|
|
@ -301,7 +301,7 @@ |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
<update id="updateRegToUnionFlag" parameterType="EnforcementRegistration"> |
|
|
<update id="updateRegToUnionFlag" parameterType="com.zdxt.enforcementcode.domain.bo.EnforcementRegistrationBo"> |
|
|
update enforcement_registration |
|
|
update enforcement_registration |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<if test="hasUnion != null"> has_union = #{hasUnion}</if> |
|
|
<if test="hasUnion != null"> has_union = #{hasUnion}</if> |
|
|
@ -310,7 +310,7 @@ |
|
|
where union_no = #{unionNo} |
|
|
where union_no = #{unionNo} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
<insert id="insertEnforcementRegistration" parameterType="EnforcementRegistration"> |
|
|
<insert id="insertEnforcementRegistration" parameterType="com.zdxt.enforcementcode.domain.bo.EnforcementRegistrationBo"> |
|
|
insert into enforcement_registration |
|
|
insert into enforcement_registration |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null and id != ''">id,</if> |
|
|
<if test="id != null and id != ''">id,</if> |
|
|
|