12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?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.miaxis.order.mapper.OrderInfoMapper">
- <resultMap type="OrderInfo" id="OrderInfoResult">
- <result property="id" column="id" />
- <result property="orderNo" column="order_no" />
- <result property="businessName" column="business_name" />
- <result property="createTime" column="create_time" />
- <result property="picture" column="picture" />
- <result property="power" column="power" />
- <result property="fdj" column="fdj" />
- <result property="cuttingBoard" column="cutting_board" />
- <result property="yaxing" column="yaxing" />
- <result property="ketilengzuo" column="ketilengzuo" />
- <result property="dipanlengzuo" column="dipanlengzuo" />
- <result property="penSu" column="pen_su" />
- <result property="zuzhuang" column="zuzhuang" />
- <result property="jiexian" column="jiexian" />
- <result property="shiji" column="shiji" />
- <result property="baozhuang" column="baozhuang" />
- <result property="remarkOrder" column="remark_order" />
- <result property="status" column="status" />
- <result property="finishTime" column="finish_time" />
- <result property="remarkItems" column="remark_items" />
- </resultMap>
- <sql id="selectOrderInfoVo">
- select * from order_info
- </sql>
- <select id="selectOrderInfoList" parameterType="OrderInfo" resultMap="OrderInfoResult">
- <include refid="selectOrderInfoVo"/>
- <where>
- <if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
- <if test="businessName != null and businessName != ''"> and business_name like concat('%', #{businessName}, '%')</if>
- <if test="picture != null and picture != ''"> and picture = #{picture}</if>
- <if test="power != null and power != ''"> and power = #{power}</if>
- <if test="fdj != null and fdj != ''"> and fdj = #{fdj}</if>
- <if test="cuttingBoard != null and cuttingBoard != ''"> and cutting_board = #{cuttingBoard}</if>
- <if test="yaxing != null and yaxing != ''"> and yaxing = #{yaxing}</if>
- <if test="ketilengzuo != null and ketilengzuo != ''"> and ketilengzuo = #{ketilengzuo}</if>
- <if test="dipanlengzuo != null and dipanlengzuo != ''"> and dipanlengzuo = #{dipanlengzuo}</if>
- <if test="penSu != null and penSu != ''"> and pen_su = #{penSu}</if>
- <if test="zuzhuang != null and zuzhuang != ''"> and zuzhuang = #{zuzhuang}</if>
- <if test="jiexian != null and jiexian != ''"> and jiexian = #{jiexian}</if>
- <if test="shiji != null and shiji != ''"> and shiji = #{shiji}</if>
- <if test="baozhuang != null and baozhuang != ''"> and baozhuang = #{baozhuang}</if>
- <if test="remarkOrder != null and remarkOrder != ''"> and remark_order = #{remarkOrder}</if>
- <if test="status != null "> and status = #{status}</if>
- <if test="finishTime != null "> and finish_time = #{finishTime}</if>
- <if test="remarkItems != null and remarkItems != ''"> and remark_items = #{remarkItems}</if>
- </where>
- </select>
- </mapper>
|