|
|
@ -15,10 +15,11 @@
|
|
|
|
<result property="rank" column="rank" />
|
|
|
|
<result property="rank" column="rank" />
|
|
|
|
<result property="phone" column="phone" />
|
|
|
|
<result property="phone" column="phone" />
|
|
|
|
<result property="filingTime" column="filing_time" />
|
|
|
|
<result property="filingTime" column="filing_time" />
|
|
|
|
|
|
|
|
<result property="creatTime" column="creat_time" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<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, creat_time
|
|
|
|
from cases
|
|
|
|
from cases
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
@ -50,7 +51,8 @@
|
|
|
|
<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>
|
|
|
|
|
|
|
|
creat_time
|
|
|
|
)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 +63,8 @@
|
|
|
|
<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>
|
|
|
|
|
|
|
|
(datetime(CURRENT_TIMESTAMP,'localtime'))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|