|
|
@ -42,7 +42,7 @@
|
|
|
|
<insert id="insertCase" parameterType="Case">
|
|
|
|
<insert id="insertCase" parameterType="Case">
|
|
|
|
insert into cases (
|
|
|
|
insert into cases (
|
|
|
|
<if test="caseNo != null and caseNo != '' ">case_no, </if>
|
|
|
|
<if test="caseNo != null and caseNo != '' ">case_no, </if>
|
|
|
|
<if test="name != null and noticeType != '' ">name, </if>
|
|
|
|
<if test="name != null and name != '' ">name, </if>
|
|
|
|
<if test="userNo != null and userNo != '' ">user_no, </if>
|
|
|
|
<if test="userNo != null and userNo != '' ">user_no, </if>
|
|
|
|
<if test="sex != null and sex != '' ">sex, </if>
|
|
|
|
<if test="sex != null and sex != '' ">sex, </if>
|
|
|
|
<if test="age != null and age != ''">age,</if>
|
|
|
|
<if test="age != null and age != ''">age,</if>
|
|
|
@ -50,7 +50,7 @@
|
|
|
|
<if test="department != null and department != ''">department,</if>
|
|
|
|
<if test="department != null and department != ''">department,</if>
|
|
|
|
<if test="rank != null and rank != ''">rank,</if>
|
|
|
|
<if test="rank != null and rank != ''">rank,</if>
|
|
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
|
|
<if test="filingTime != null and filingTime != ''">filing_time,</if>
|
|
|
|
<if test="filingTime != null and filingTime != ''">filing_time</if>
|
|
|
|
)values(
|
|
|
|
)values(
|
|
|
|
<if test="caseNo != null and caseNo != ''">#{caseNo}, </if>
|
|
|
|
<if test="caseNo != null and caseNo != ''">#{caseNo}, </if>
|
|
|
|
<if test="name != null and name != ''">#{name}, </if>
|
|
|
|
<if test="name != null and name != ''">#{name}, </if>
|
|
|
@ -61,7 +61,7 @@
|
|
|
|
<if test="department != null and department != ''">#{department},</if>
|
|
|
|
<if test="department != null and department != ''">#{department},</if>
|
|
|
|
<if test="rank != null and rank != ''">#{rank},</if>
|
|
|
|
<if test="rank != null and rank != ''">#{rank},</if>
|
|
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
|
|
<if test="filingTime != null and filingTime != ''">#{filingTime},</if>
|
|
|
|
<if test="filingTime != null and filingTime != ''">#{filingTime}</if>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -76,7 +76,7 @@
|
|
|
|
<if test="department != null and department != ''">department = #{department},</if>
|
|
|
|
<if test="department != null and department != ''">department = #{department},</if>
|
|
|
|
<if test="rank != null and rank != ''">rank = #{rank},</if>
|
|
|
|
<if test="rank != null and rank != ''">rank = #{rank},</if>
|
|
|
|
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
|
|
|
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
|
|
|
<if test="filingTime != null and filingTime != ''">filing_time = #{filingTime},</if>
|
|
|
|
<if test="filingTime != null and filingTime != ''">filing_time = #{filingTime}</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where case_no = #{caseNo}
|
|
|
|
where case_no = #{caseNo}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|