| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?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="createTime" column="create_date" jdbcType="TIMESTAMP"/>
- <result property="createTimeStart" column="createTimeStart" jdbcType="VARCHAR"/>
- <result property="createTimeEnd" column="createTimeEnd" jdbcType="VARCHAR"/>
- </resultMap>
- <select id="selectSysDeptAccountWithdraw" resultMap="BaseResultMap">
- select
- id,
- dept_id,
- name,
- amount,
- status,
- remark,
- DATE(create_time) as create_date
- from sys_dept_account_withdraw
- where
- <if test="sysDeptAccountWithdrawVo.status != null and sysDeptAccountWithdrawVo.status != ''">
- status = #{sysDeptAccountWithdrawVo.status}
- </if>
- <if test="sysDeptAccountWithdrawVo.deptId != null and sysDeptAccountWithdrawVo.deptId != ''">
- and dept_id = #{sysDeptAccountWithdrawVo.deptId}
- </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>
|