<select id="selectSubstituteIntoApplicationList" parameterType="SubstituteIntoApplication"
resultMap="SubstituteIntoApplicationResult">
<include refid="selectSubstituteIntoApplicationVo"/>
<where>
<if test="account != null and account != ''">and account like concat('%', #{account}, '%')</if>
/*判断这两个取值字段不为空的前提下,再查询区间值
<if test="closeupshoptime != null and setupshoptime != null">
/jdbcType 是为了给取值变量添加临时sql 字段 类型 并 赋值 判断
查询订单字段createtime 大等于 startTime 并 小等于 endTime区间的内容*/
and createtime >= #{startTime ,jdbcType=TIMESTAMP}
and createtime <= #{endTime,jdbcType=TIMESTAMP}
</if>
</where>
</select>