@ -21,14 +21,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
</resultMap>
<sql id= "selectTdLeaveVo" >
<sql id= "selectTdLeaveVo" >
select id, userId, userN ame, country, areaname, leavereason, depart, leavedate, workstate, leavestate, examinename, examinedate, examinestate from td_leave
select id, user_id, user_n ame, country, areaname, leavereason, depart, leavedate, workstate, leavestate, examinename, examinedate, examinestate from td_leave
</sql>
</sql>
<select id= "selectTdLeaveList" parameterType= "TdLeave" resultMap= "TdLeaveResult" >
<select id= "selectTdLeaveList" parameterType= "TdLeave" resultMap= "TdLeaveResult" >
<include refid= "selectTdLeaveVo" />
<include refid= "selectTdLeaveVo" />
<where >
<where >
<if test= "userId != null and userId != ''" > and userI d = #{userId}</if>
<if test= "userId != null and userId != ''" > and user_i d = #{userId}</if>
<if test= "userName != null and userName != ''" > and userN ame like concat('%', #{userName}, '%')</if>
<if test= "userName != null and userName != ''" > and user_n ame like concat('%', #{userName}, '%')</if>
<if test= "country != null and country != ''" > and country = #{country}</if>
<if test= "country != null and country != ''" > and country = #{country}</if>
<if test= "areaname != null and areaname != ''" > and areaname like concat('%', #{areaname}, '%')</if>
<if test= "areaname != null and areaname != ''" > and areaname like concat('%', #{areaname}, '%')</if>
<if test= "leavereason != null and leavereason != ''" > and leavereason = #{leavereason}</if>
<if test= "leavereason != null and leavereason != ''" > and leavereason = #{leavereason}</if>