| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.ydtech.modules.admin.dao.SysDeptAccountWithdrawMapper">
- <resultMap id="BaseResultMap" type="com.ydtech.modules.admin.model.vo.SysDeptAccountWithdrawVo">
- <id property="id" column="id" jdbcType="VARCHAR"/>
- <result property="deptId" column="dept_id" jdbcType="VARCHAR"/>
- <result property="name" column="name" jdbcType="VARCHAR"/>
- <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_time" jdbcType="TIMESTAMP"/>
- <result property="createTimeStart" column="createTimeStart" jdbcType="VARCHAR"/>
- <result property="createTimeEnd" column="createTimeEnd" jdbcType="VARCHAR"/>
- <result property="auditName" column="audit_name" jdbcType="VARCHAR"/>
- <result property="auditUserid" column="audit_userid" jdbcType="VARCHAR"/>
- <result property="withdrawUserid" column="withdraw_userid" jdbcType="VARCHAR"/>
- <result property="withdrawName" column="withdraw_name" jdbcType="VARCHAR"/>
- </resultMap>
- <select id="selectSysDeptAccountWithdraw" resultMap="BaseResultMap">
- select
- id,
- dept_id,
- name,
- amount,
- status,
- remark,
- voucher_id,
- pic_id,
- withdraw_userid,
- withdraw_name,
- audit_userid,
- audit_name,
- create_time
- from sys_dept_account_withdraw
- where
- <if test="sysDeptAccountWithdrawVo.status != null and sysDeptAccountWithdrawVo.status != ''">
- status = #{sysDeptAccountWithdrawVo.status}
- </if>
- <if test="sysDeptAccountWithdrawVo.id != null and sysDeptAccountWithdrawVo.id != ''">
- and id = #{sysDeptAccountWithdrawVo.id}
- </if>
- <if test="sysDeptAccountWithdrawVo.deptId != null and sysDeptAccountWithdrawVo.deptId != ''">
- and dept_id like concat(#{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}
- </if>
- <if test="sysDeptAccountWithdrawVo.createTimeEnd != null and sysDeptAccountWithdrawVo.createTimeEnd != ''">
- and create_time <= #{sysDeptAccountWithdrawVo.createTimeEnd}
- </if>
- </select>
- </mapper>
|