|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<mapper namespace="com.sztzjy.money_management.mapper.CaseStartAnUndertakingPlanMapper">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlan">
|
|
|
|
|
<id column="case_start_an_undertaking_plan_id" jdbcType="VARCHAR" property="caseStartAnUndertakingPlanId" />
|
|
|
|
|
<id column="caseid" jdbcType="VARCHAR" property="caseid" />
|
|
|
|
|
<result column="caseid" jdbcType="VARCHAR" property="caseid" />
|
|
|
|
|
<result column="age" jdbcType="INTEGER" property="age" />
|
|
|
|
|
<result column="start_plan_age" jdbcType="INTEGER" property="startPlanAge" />
|
|
|
|
|
<result column="distance_year" jdbcType="INTEGER" property="distanceYear" />
|
|
|
|
@ -115,19 +115,17 @@
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlanKey" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
,
|
|
|
|
|
<include refid="Blob_Column_List" />
|
|
|
|
|
from case_start_an_undertaking_plan
|
|
|
|
|
where case_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
|
|
|
|
|
and caseid = #{caseid,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlanKey">
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
delete from case_start_an_undertaking_plan
|
|
|
|
|
where case_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
|
|
|
|
|
and caseid = #{caseid,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlanExample">
|
|
|
|
|
delete from case_start_an_undertaking_plan
|
|
|
|
@ -338,6 +336,9 @@
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlan">
|
|
|
|
|
update case_start_an_undertaking_plan
|
|
|
|
|
<set>
|
|
|
|
|
<if test="caseid != null">
|
|
|
|
|
caseid = #{caseid,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="age != null">
|
|
|
|
|
age = #{age,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
@ -376,11 +377,11 @@
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where case_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
|
|
|
|
|
and caseid = #{caseid,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlan">
|
|
|
|
|
update case_start_an_undertaking_plan
|
|
|
|
|
set age = #{age,jdbcType=INTEGER},
|
|
|
|
|
set caseid = #{caseid,jdbcType=VARCHAR},
|
|
|
|
|
age = #{age,jdbcType=INTEGER},
|
|
|
|
|
start_plan_age = #{startPlanAge,jdbcType=INTEGER},
|
|
|
|
|
distance_year = #{distanceYear,jdbcType=INTEGER},
|
|
|
|
|
cost_input = #{costInput,jdbcType=DECIMAL},
|
|
|
|
@ -393,11 +394,11 @@
|
|
|
|
|
is_answer = #{isAnswer,jdbcType=VARCHAR},
|
|
|
|
|
analysis = #{analysis,jdbcType=LONGVARCHAR}
|
|
|
|
|
where case_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
|
|
|
|
|
and caseid = #{caseid,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlan">
|
|
|
|
|
update case_start_an_undertaking_plan
|
|
|
|
|
set age = #{age,jdbcType=INTEGER},
|
|
|
|
|
set caseid = #{caseid,jdbcType=VARCHAR},
|
|
|
|
|
age = #{age,jdbcType=INTEGER},
|
|
|
|
|
start_plan_age = #{startPlanAge,jdbcType=INTEGER},
|
|
|
|
|
distance_year = #{distanceYear,jdbcType=INTEGER},
|
|
|
|
|
cost_input = #{costInput,jdbcType=DECIMAL},
|
|
|
|
@ -409,6 +410,5 @@
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
is_answer = #{isAnswer,jdbcType=VARCHAR}
|
|
|
|
|
where case_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
|
|
|
|
|
and caseid = #{caseid,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|