| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?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.ruoyi.business.mapper.BjBuildCheckMapper">
- <resultMap id="buildCheckVoList" type="com.ruoyi.business.domain.vo.BjBuildCheckVo">
- <result property="buildCheckId" column="build_check_id"/>
- <result property="shipName" column="ship_name"/>
- <result property="shipyard" column="shipyard"/>
- <result property="shipRegisterNumber" column="ship_register_number"/>
- <result property="shipCheckOrganization" column="ship_check_organization"/>
- <result property="checkPerson" column="check_person"/>
- <result property="checkDate" column="check_date"/>
- <result property="shipType" column="ship_type"/>
- <result property="shipLength" column="ship_length"/>
- <result property="shipWidth" column="ship_width"/>
- <result property="shipDepth" column="ship_depth"/>
- <result property="shipWeight" column="ship_weight"/>
- <result property="shipConcat" column="ship_concat"/>
- <result property="status" column="status"/>
- <result property="checkResult" column="check_result"/>
- <result property="defect" column="defect"/>
- <result property="releaseDate" column="release_date"/>
- <result property="releaseFlag" column="release_flag"/>
- <result property="reportFlag" column="report_flag"/>
- <result property="reportReason" column="report_reason"/>
- <result property="reportFile" column="report_file"/>
- <result property="breakDate" column="break_date"/>
- <result property="breakReason" column="break_reason"/>
- </resultMap>
- <select id="queryBuildCheckList" resultMap="buildCheckVoList">
- select build_check_id,
- ship_name,
- shipyard,
- ship_register_number,
- ship_check_organization,
- check_person,
- check_date,
- ship_type,
- ship_length,
- ship_width,
- ship_depth,
- ship_weight,
- ship_concat,
- status,
- check_result,
- defect,
- release_date,
- release_flag,
- report_flag,
- report_reason,
- report_file,
- break_date,
- break_reason
- from bj_build_check
- where del_flag = '0'
- <if test="bo.shipRegisterNumber != null and bo.shipRegisterNumber != ''">
- and ship_register_number like concat('%',#{bo.shipRegisterNumber},'%')
- </if>
- <if test="bo.shipName != null and bo.shipName != ''">
- and ship_name = #{bo.shipName}
- </if>
- <if test="bo.shipyard != null and bo.shipyard != ''">
- and shipyard = #{bo.shipyard}
- </if>
- <if test="bo.shipType != null and bo.shipType != ''">
- and ship_type = #{bo.shipType}
- </if>
- <if test="bo.countryType != null and bo.countryType != ''">
- and country_type = #{bo.countryType}
- </if>
- <if test="bo.checkOrganization != null and bo.checkOrganization != ''">
- and check_organization = #{bo.checkOrganization}
- </if>
- <if test="bo.checkResult != null and bo.checkResult != ''">
- and check_result = #{bo.checkResult}
- </if>
- <if test="bo.shipSort != null and bo.shipSort != ''">
- and ship_sort = #{bo.shipSort}
- </if>
- <if test="bo.status != null and bo.status != ''">
- and status = #{bo.status}
- </if>
- <if test="bo.startCheckDate != null and bo.endCheckDate != null">
- and check_date between #{bo.startCheckDate} and #{bo.endCheckDate}
- </if>
- order by report_flag, build_check_id,
- RANDOM()
- </select>
- </mapper>
|