33 lines
1.5 KiB
XML
33 lines
1.5 KiB
XML
<?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.boge.modules.tickets.dao.TicketsDao">
|
|
|
|
<!-- 可根据自己的需求,是否要使用 -->
|
|
<resultMap type="com.boge.modules.tickets.entity.TicketsEntity" id="ticketsMap">
|
|
<result property="ticketsId" column="tickets_id"/>
|
|
<result property="carType" column="car_type"/>
|
|
<result property="errorType" column="error_type"/>
|
|
<result property="contractId" column="contract_number"/>
|
|
<result property="clientId" column="client_id"/>
|
|
<result property="description" column="description"/>
|
|
<result property="deptPeople" column="dept_people"/>
|
|
<result property="deptPhone" column="dept_phone"/>
|
|
<result property="createUserId" column="create_user_id"/>
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="isCheck" column="is_check"/>
|
|
<result property="status" column="status"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
</resultMap>
|
|
<select id="getTicketsDTOById" resultType="com.boge.modules.tickets.dto.TicketsDTO" parameterType="java.lang.String">
|
|
select * from sys_tickets as a
|
|
left join sys_client as b on a.client_id = b.client_id
|
|
left join sys_car as c on a.car_type = c.car_id
|
|
left join sys_contract as d on a.contract_id = d.contract_id
|
|
|
|
where a.tickets_id = #{ticketsId}
|
|
</select>
|
|
|
|
|
|
</mapper>
|