12345678910111213141516171819202122232425262728293031323334353637 |
- <?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.zbkj.service.dao.ExpressOrderDao">
- <select id="findFrontList" resultType="com.zbkj.common.model.express.ExpressOrder" parameterType="Map">
- select * from eb_express_order
- where
- uid = #{userId}
- <if test="status != null and status >= 0">
- <choose>
- <when test="status == 1">
- and `status` in (1,2)
- </when>
- <when test="status == 3">
- and `status` = 3
- </when>
- <otherwise>
- and `status` = #{status}
- </otherwise>
- </choose>
- </if>
- and is_user_del = 0
- and is_del = 0
- <if test="keywords != null and keywords !='' ">
- and (order_no like CONCAT('%',#{keywords},'%')
- or
- order_no in (select order_no from eb_express_order_detail where (pick_up_code like CONCAT('%',#{keywords},'%')
- or express_no like CONCAT('%',#{keywords},'%')
- or express_company like CONCAT('%',#{keywords},'%')
- or post_name like CONCAT('%',#{keywords},'%')
- ) ))
- </if>
- order by id desc
- </select>
- </mapper>
|