|
|
@@ -8,6 +8,8 @@
|
|
|
<result property="amount" column="amount" jdbcType="DECIMAL"/>
|
|
|
<result property="status" column="status" jdbcType="VARCHAR"/>
|
|
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
|
|
+ <result property="voucherId" column="voucher_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="picId" column="pic_id" jdbcType="VARCHAR"/>
|
|
|
<result property="createTime" column="create_date" jdbcType="TIMESTAMP"/>
|
|
|
<result property="createTimeStart" column="createTimeStart" jdbcType="VARCHAR"/>
|
|
|
<result property="createTimeEnd" column="createTimeEnd" jdbcType="VARCHAR"/>
|
|
|
@@ -22,6 +24,8 @@
|
|
|
amount,
|
|
|
status,
|
|
|
remark,
|
|
|
+ voucher_id,
|
|
|
+ pic_id,
|
|
|
DATE(create_time) as create_date
|
|
|
from sys_dept_account_withdraw
|
|
|
where
|
|
|
@@ -29,13 +33,16 @@
|
|
|
status = #{sysDeptAccountWithdrawVo.status}
|
|
|
</if>
|
|
|
<if test="sysDeptAccountWithdrawVo.deptId != null and sysDeptAccountWithdrawVo.deptId != ''">
|
|
|
- and dept_id = #{sysDeptAccountWithdrawVo.deptId}
|
|
|
+ and dept_id = #{sysDeptAccountWithdrawVo.deptId}
|
|
|
+ </if>
|
|
|
+ <if test="sysDeptAccountWithdrawVo.voucherId != null and sysDeptAccountWithdrawVo.voucherId != ''">
|
|
|
+ and voucher_id = #{sysDeptAccountWithdrawVo.voucherId}
|
|
|
</if>
|
|
|
<if test="sysDeptAccountWithdrawVo.createTimeStart != null and sysDeptAccountWithdrawVo.createTimeStart != ''">
|
|
|
- and create_time >= #{sysDeptAccountWithdrawVo.createTimeStart}
|
|
|
+ and DATE(create_time) >= #{sysDeptAccountWithdrawVo.createTimeStart}
|
|
|
</if>
|
|
|
<if test="sysDeptAccountWithdrawVo.createTimeEnd != null and sysDeptAccountWithdrawVo.createTimeEnd != ''">
|
|
|
- and create_time <= #{sysDeptAccountWithdrawVo.createTimeEnd}
|
|
|
+ and DATE(create_time) <= #{sysDeptAccountWithdrawVo.createTimeEnd}
|
|
|
</if>
|
|
|
</select>
|
|
|
|