master
20918 5 days ago
parent 693c2c22fe
commit f62af89b45

@ -42,7 +42,7 @@
<insert id="insertCase" parameterType="Case">
insert into cases (
<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="sex != null and sex != '' ">sex, </if>
<if test="age != null and age != ''">age,</if>
@ -50,7 +50,7 @@
<if test="department != null and department != ''">department,</if>
<if test="rank != null and rank != ''">rank,</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(
<if test="caseNo != null and caseNo != ''">#{caseNo}, </if>
<if test="name != null and name != ''">#{name}, </if>
@ -61,7 +61,7 @@
<if test="department != null and department != ''">#{department},</if>
<if test="rank != null and rank != ''">#{rank},</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>
@ -76,7 +76,7 @@
<if test="department != null and department != ''">department = #{department},</if>
<if test="rank != null and rank != ''">rank = #{rank},</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>
where case_no = #{caseNo}
</update>

Loading…
Cancel
Save