|
|
@ -19,7 +19,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectCaseVo">
|
|
|
|
<sql id="selectCaseVo">
|
|
|
|
select case_no, name, user_no, sex, age, position, department, rank, phone, filing_time
|
|
|
|
select case_no, name, user_no, sex, age, position, department, rank, phone, filing_time
|
|
|
|
from case
|
|
|
|
from cases
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCaseById" parameterType="String" resultMap="CaseResult">
|
|
|
|
<select id="selectCaseById" parameterType="String" resultMap="CaseResult">
|
|
|
@ -40,7 +40,7 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertCase" parameterType="Case">
|
|
|
|
<insert id="insertCase" parameterType="Case">
|
|
|
|
insert into case (
|
|
|
|
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 noticeType != '' ">name, </if>
|
|
|
|
<if test="userNo != null and userNo != '' ">user_no, </if>
|
|
|
|
<if test="userNo != null and userNo != '' ">user_no, </if>
|
|
|
@ -66,7 +66,7 @@
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateCase" parameterType="Case">
|
|
|
|
<update id="updateCase" parameterType="Case">
|
|
|
|
update case
|
|
|
|
update cases
|
|
|
|
<set>
|
|
|
|
<set>
|
|
|
|
<if test="name != null and name != ''">name = #{name}, </if>
|
|
|
|
<if test="name != null and name != ''">name = #{name}, </if>
|
|
|
|
<if test="userNo != null and userNo != ''">user_no = #{userNo}, </if>
|
|
|
|
<if test="userNo != null and userNo != ''">user_no = #{userNo}, </if>
|
|
|
@ -82,7 +82,7 @@
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteCaseByIds" parameterType="String">
|
|
|
|
<delete id="deleteCaseByIds" parameterType="String">
|
|
|
|
delete from case where case_no in
|
|
|
|
delete from cases where case_no in
|
|
|
|
<foreach item="caseNo" collection="array" open="(" separator="," close=")">
|
|
|
|
<foreach item="caseNo" collection="array" open="(" separator="," close=")">
|
|
|
|
#{caseNo}
|
|
|
|
#{caseNo}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|