<?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="cn.iocoder.yudao.module.tickets.mapper.DlRepairTicketsMapper">

    <resultMap id="BaseResultMap" type="cn.iocoder.yudao.module.tickets.entity.DlRepairTickets">
            <id property="id" column="id" jdbcType="VARCHAR"/>
            <result property="ticketNo" column="ticket_no" jdbcType="VARCHAR"/>
            <result property="repairType" column="repair_type" jdbcType="VARCHAR"/>
            <result property="userId" column="user_id" jdbcType="BIGINT"/>
            <result property="userName" column="user_name" jdbcType="VARCHAR"/>
            <result property="userMobile" column="user_mobile" jdbcType="VARCHAR"/>
            <result property="carId" column="car_id" jdbcType="VARCHAR"/>
            <result property="carNo" column="car_no" jdbcType="VARCHAR"/>
            <result property="carVin" column="car_vin" jdbcType="VARCHAR"/>
            <result property="carBrandId" column="car_brand_id" jdbcType="VARCHAR"/>
            <result property="carBrandName" column="car_brand_name" jdbcType="VARCHAR"/>
            <result property="carBrandType" column="car_brand_type" jdbcType="VARCHAR"/>
            <result property="adviserId" column="adviser_id" jdbcType="VARCHAR"/>
            <result property="adviserName" column="adviser_name" jdbcType="VARCHAR"/>
            <result property="payType" column="pay_type" jdbcType="VARCHAR"/>
            <result property="repairAdvice" column="repair_advice" jdbcType="VARCHAR"/>
            <result property="qualityExplain" column="quality_explain" jdbcType="VARCHAR"/>
            <result property="endCheck" column="end_check" jdbcType="VARCHAR"/>
            <result property="partDisposal" column="part_disposal" jdbcType="VARCHAR"/>
            <result property="remark" column="remark" jdbcType="VARCHAR"/>
            <result property="ticketType" column="ticket_type" jdbcType="VARCHAR"/>
            <result property="corpId" column="corp_id" jdbcType="VARCHAR"/>
            <result property="deptId" column="dept_id" jdbcType="BIGINT"/>
    </resultMap>

    <sql id="Base_SQL">
        select id,
               ticket_no,
               repair_type,
               user_id,
               user_name,
               user_mobile,
               car_id,
               car_no,
               car_vin,
               car_brand_id,
               car_brand_name,
               car_brand_type,
               adviser_id,
               adviser_name,
               pay_type,
               repair_advice,
               quality_explain,
               end_check,
               part_disposal,
               remark,
               ticket_type,
               corp_id,
               dept_id
        from dl_repair_tickets drt
        where drt.deleted = '0'
    </sql>
</mapper>
