BjBuildCheckMapper.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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.ruoyi.business.mapper.BjBuildCheckMapper">
  6. <resultMap id="buildCheckVoList" type="com.ruoyi.business.domain.vo.BjBuildCheckVo">
  7. <result property="buildCheckId" column="build_check_id"/>
  8. <result property="shipName" column="ship_name"/>
  9. <result property="shipyard" column="shipyard"/>
  10. <result property="shipRegisterNumber" column="ship_register_number"/>
  11. <result property="shipCheckOrganization" column="ship_check_organization"/>
  12. <result property="checkPerson" column="check_person"/>
  13. <result property="checkDate" column="check_date"/>
  14. <result property="shipType" column="ship_type"/>
  15. <result property="shipLength" column="ship_length"/>
  16. <result property="shipWidth" column="ship_width"/>
  17. <result property="shipDepth" column="ship_depth"/>
  18. <result property="shipWeight" column="ship_weight"/>
  19. <result property="shipConcat" column="ship_concat"/>
  20. <result property="status" column="status"/>
  21. <result property="checkResult" column="check_result"/>
  22. <result property="defect" column="defect"/>
  23. <result property="releaseDate" column="release_date"/>
  24. <result property="releaseFlag" column="release_flag"/>
  25. <result property="reportFlag" column="report_flag"/>
  26. <result property="reportReason" column="report_reason"/>
  27. <result property="reportFile" column="report_file"/>
  28. <result property="breakDate" column="break_date"/>
  29. <result property="breakReason" column="break_reason"/>
  30. </resultMap>
  31. <select id="queryBuildCheckList" resultMap="buildCheckVoList">
  32. select build_check_id,
  33. ship_name,
  34. shipyard,
  35. ship_register_number,
  36. ship_check_organization,
  37. check_person,
  38. check_date,
  39. ship_type,
  40. ship_length,
  41. ship_width,
  42. ship_depth,
  43. ship_weight,
  44. ship_concat,
  45. status,
  46. check_result,
  47. defect,
  48. release_date,
  49. release_flag,
  50. report_flag,
  51. report_reason,
  52. report_file,
  53. break_date,
  54. break_reason
  55. from bj_build_check
  56. where del_flag = '0'
  57. <if test="bo.shipRegisterNumber != null and bo.shipRegisterNumber != ''">
  58. and ship_register_number like concat('%',#{bo.shipRegisterNumber},'%')
  59. </if>
  60. <if test="bo.shipName != null and bo.shipName != ''">
  61. and ship_name = #{bo.shipName}
  62. </if>
  63. <if test="bo.shipyard != null and bo.shipyard != ''">
  64. and shipyard = #{bo.shipyard}
  65. </if>
  66. <if test="bo.shipType != null and bo.shipType != ''">
  67. and ship_type = #{bo.shipType}
  68. </if>
  69. <if test="bo.countryType != null and bo.countryType != ''">
  70. and country_type = #{bo.countryType}
  71. </if>
  72. <if test="bo.checkOrganization != null and bo.checkOrganization != ''">
  73. and check_organization = #{bo.checkOrganization}
  74. </if>
  75. <if test="bo.checkResult != null and bo.checkResult != ''">
  76. and check_result = #{bo.checkResult}
  77. </if>
  78. <if test="bo.shipSort != null and bo.shipSort != ''">
  79. and ship_sort = #{bo.shipSort}
  80. </if>
  81. <if test="bo.status != null and bo.status != ''">
  82. and status = #{bo.status}
  83. </if>
  84. <if test="bo.startCheckDate != null and bo.endCheckDate != null">
  85. and check_date between #{bo.startCheckDate} and #{bo.endCheckDate}
  86. </if>
  87. order by report_flag, build_check_id,
  88. RANDOM()
  89. </select>
  90. </mapper>