| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?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.BjServiceCheckMapper">
- <resultMap id="serviceCheckVoList" type="com.ruoyi.business.domain.vo.BjServiceCheckVo">
- <result property="serviceCheckId" column="service_check_id"/>
- <result property="shipName" column="ship_name"/>
- <result property="shipId" column="ship_id"/>
- <result property="shipRegisterNumber" column="ship_register_number"/>
- <result property="regportName" column="regport_name"/>
- <result property="checkDate" column="check_date"/>
- <result property="beMonitorOrganization" column="be_monitor_organization"/>
- <result property="checkOrganization" column="check_organization"/>
- <result property="checkPerson" column="check_person"/>
- <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"/>
- </resultMap>
- <select id="queryServiceCheckList" resultMap="serviceCheckVoList">
- select service_check_id,
- ship_name,
- ship_id,
- ship_register_number,
- regport_name,
- check_date,
- be_monitor_organization,
- check_organization,
- check_person,
- status,
- check_result,
- defect,
- release_date,
- release_flag
- from bj_service_check
- where del_flag = '0'
- <if test="bo.shipRegisterNumber != null and bo.shipRegisterNumber != ''">
- and ship_id like concat('%',#{bo.shipRegisterNumber},'%')
- </if>
- <if test="bo.shipImo != null and bo.shipImo != ''">
- and ship_imo like concat('%',#{bo.shipImo},'%')
- </if>
- <if test="bo.startCheckDate != null and bo.endCheckDate != null">
- and check_date between #{bo.startCheckDate} and #{bo.endCheckDate}
- </if>
- order by service_check_id,
- RANDOM()
- </select>
- </mapper>
|