| <?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="doumeemes.dao.ext.AdjustmentRecordExtMapper"> | 
|   | 
|   <!-- 管理页面查询 --> | 
|   <resultMap id="AdjustmentRecordExtListVO" type="doumeemes.dao.ext.vo.AdjustmentRecordExtListVO" autoMapping="true"> | 
|     <id column="ID" jdbcType="INTEGER" property="id"/> | 
|   </resultMap> | 
|   <select id="selectList" parameterType="doumeemes.dao.ext.dto.QueryAdjustmentRecordExtDTO" resultMap="AdjustmentRecordExtListVO"> | 
|     SELECT | 
|       `adjustmentRecord`.`ID`, | 
|       `adjustmentRecord`.`DELETED`, | 
|       `adjustmentRecord`.`CREATE_USER`, | 
|       `adjustmentRecord`.`CREATE_TIME`, | 
|       `adjustmentRecord`.`UPDATE_USER`, | 
|       `adjustmentRecord`.`UPDATE_TIME`, | 
|       `adjustmentRecord`.`REMARK`, | 
|       `adjustmentRecord`.`ROOT_DEPART_ID`, | 
|       `adjustmentRecord`.`OUTBOUND_ID`, | 
|       `adjustmentRecord`.`APPLIANCES_ID` | 
|     FROM `adjustment_record` `adjustmentRecord` | 
|     <where> | 
|       <if test="id != null"> | 
|         AND `adjustmentRecord`.`ID` = #{id} | 
|       </if> | 
|       <if test="deleted != null"> | 
|         AND `adjustmentRecord`.`DELETED` = #{deleted} | 
|       </if> | 
|       <if test="createUser != null"> | 
|         AND `adjustmentRecord`.`CREATE_USER` = #{createUser} | 
|       </if> | 
|       <if test="createTime != null"> | 
|         AND `adjustmentRecord`.`CREATE_TIME` = #{createTime} | 
|       </if> | 
|       <if test="updateUser != null"> | 
|         AND `adjustmentRecord`.`UPDATE_USER` = #{updateUser} | 
|       </if> | 
|       <if test="updateTime != null"> | 
|         AND `adjustmentRecord`.`UPDATE_TIME` = #{updateTime} | 
|       </if> | 
|       <if test="remark != null and remark != ''"> | 
|         AND `adjustmentRecord`.`REMARK` = #{remark} | 
|       </if> | 
|       <if test="rootDepartId != null"> | 
|         AND `adjustmentRecord`.`ROOT_DEPART_ID` = #{rootDepartId} | 
|       </if> | 
|       <if test="outboundId != null"> | 
|         AND `adjustmentRecord`.`OUTBOUND_ID` = #{outboundId} | 
|       </if> | 
|       <if test="appliancesId != null"> | 
|         AND `adjustmentRecord`.`APPLIANCES_ID` = #{appliancesId} | 
|       </if> | 
|     </where> | 
|   </select> | 
| </mapper> |