OrderInfoMapper.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.miaxis.order.mapper.OrderInfoMapper">
  6. <resultMap type="OrderInfo" id="OrderInfoResult">
  7. <result property="id" column="id" />
  8. <result property="orderNo" column="order_no" />
  9. <result property="businessName" column="business_name" />
  10. <result property="createTime" column="create_time" />
  11. <result property="picture" column="picture" />
  12. <result property="power" column="power" />
  13. <result property="fdj" column="fdj" />
  14. <result property="cuttingBoard" column="cutting_board" />
  15. <result property="yaxing" column="yaxing" />
  16. <result property="ketilengzuo" column="ketilengzuo" />
  17. <result property="dipanlengzuo" column="dipanlengzuo" />
  18. <result property="penSu" column="pen_su" />
  19. <result property="zuzhuang" column="zuzhuang" />
  20. <result property="jiexian" column="jiexian" />
  21. <result property="shiji" column="shiji" />
  22. <result property="baozhuang" column="baozhuang" />
  23. <result property="remarkOrder" column="remark_order" />
  24. <result property="status" column="status" />
  25. <result property="finishTime" column="finish_time" />
  26. <result property="remarkItems" column="remark_items" />
  27. </resultMap>
  28. <sql id="selectOrderInfoVo">
  29. select * from order_info
  30. </sql>
  31. <select id="selectOrderInfoList" parameterType="OrderInfo" resultMap="OrderInfoResult">
  32. <include refid="selectOrderInfoVo"/>
  33. <where>
  34. <if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
  35. <if test="businessName != null and businessName != ''"> and business_name like concat('%', #{businessName}, '%')</if>
  36. <if test="picture != null and picture != ''"> and picture = #{picture}</if>
  37. <if test="power != null and power != ''"> and power = #{power}</if>
  38. <if test="fdj != null and fdj != ''"> and fdj = #{fdj}</if>
  39. <if test="cuttingBoard != null and cuttingBoard != ''"> and cutting_board = #{cuttingBoard}</if>
  40. <if test="yaxing != null and yaxing != ''"> and yaxing = #{yaxing}</if>
  41. <if test="ketilengzuo != null and ketilengzuo != ''"> and ketilengzuo = #{ketilengzuo}</if>
  42. <if test="dipanlengzuo != null and dipanlengzuo != ''"> and dipanlengzuo = #{dipanlengzuo}</if>
  43. <if test="penSu != null and penSu != ''"> and pen_su = #{penSu}</if>
  44. <if test="zuzhuang != null and zuzhuang != ''"> and zuzhuang = #{zuzhuang}</if>
  45. <if test="jiexian != null and jiexian != ''"> and jiexian = #{jiexian}</if>
  46. <if test="shiji != null and shiji != ''"> and shiji = #{shiji}</if>
  47. <if test="baozhuang != null and baozhuang != ''"> and baozhuang = #{baozhuang}</if>
  48. <if test="remarkOrder != null and remarkOrder != ''"> and remark_order = #{remarkOrder}</if>
  49. <if test="status != null "> and status = #{status}</if>
  50. <if test="finishTime != null "> and finish_time = #{finishTime}</if>
  51. <if test="remarkItems != null and remarkItems != ''"> and remark_items = #{remarkItems}</if>
  52. </where>
  53. </select>
  54. </mapper>