puzhibing
2024-02-07 387f61d55a8e20bc772b026cba4f8c34dfce5665
DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DriverMapper.xml
@@ -8,9 +8,11 @@
        <result column="account" property="account" />
        <result column="jobNumber" property="jobNumber" />
        <result column="phone" property="phone" />
        <result column="phoneOperator" property="phoneOperator"/>
        <result column="password" property="password" />
        <result column="withdrawPassword" property="withdrawPassword"/>
        <result column="name" property="name" />
        <result column="lastName" property="lastName" />
        <result column="firstName" property="firstName"/>
        <result column="sex" property="sex" />
        <result column="idCard" property="idCard" />
        <result column="companyId" property="companyId" />
@@ -89,9 +91,11 @@
        id as id,
        account as account,
        jobNumber as jobNumber,
        phoneOperator as phoneOperator,
        phone as phone,
        password as password,
        name as name,
        firstName as firstName,
        lastName as lastName,
        sex as sex,
        idCard as idCard,
        companyId as companyId,
@@ -162,9 +166,11 @@
        id as id,
        account as account,
        jobNumber as jobNumber,
        phoneOperator as phoneOperator,
        phone as phone,
        password as password,
        name as name,
        firstName as firstName,
        lastName as lastName,
        sex as sex,
        idCard as idCard,
        companyId as companyId,
@@ -237,9 +243,11 @@
        id as id,
        account as account,
        jobNumber as jobNumber,
        phoneOperator as phoneOperator,
        phone as phone,
        password as password,
        name as name,
        firstName as firstName,
        lastName as lastName,
        sex as sex,
        idCard as idCard,
        companyId as companyId,
@@ -342,9 +350,13 @@
        a.id as id,
        a.headImgUrl as avatar,
        a.sex as sex,
        a.`name` as `name`,
        a.lastName as lastName,
        a.firstName as firstName,
        a.phoneOperator as phoneOperator,
        a.phone as phone,
        DATE_FORMAT(a.birthday, '%Y-%m-%d') as birthday,
        a.email,
        a.driverAddress,
        a.qrCode,
        a.language,
        a.laveActivityMoney as balance,
@@ -362,11 +374,12 @@
        DATE_FORMAT(a.getDriverLicenseDate, '%Y-%m-%d') as getDriverLicenseDate,
        (select GROUP_CONCAT(type Separator ',') from t_driver_service where driverId = a.id) as `type`,
        a.placeOfPractice as placeOfPractice,
        a.driveCardImgUrl1 as driveCardImgUrl1,
        a.driveCardImgUrl1 as driveCardImgUrl,
        a.driveCardImgUrl2 as driveCardImgUrl2,
        b.drivingLicensePhoto,b.carModelId,b.carBrandId,a.carId,
        a.networkCarlssueImg as networkCarlssueImg,
        a.placeOfEmployment as placeOfEmployment,
        (select id from t_city where chineseName = a.placeOfPractice or englishName = a.placeOfPractice or frenchName = a.placeOfPractice)placeOfPracticeId,
        (select `name` from t_company where 1 = 1 and if(a.companyId is null or a.companyId = 0, id = 1, if(a.franchiseeId is null or a.franchiseeId = 0, id = a.companyId, id = a.franchiseeId))) as company,
        b.carLicensePlate as licensePlate,
        b.carColor as carColor,
@@ -392,9 +405,11 @@
        id as id,
        account as account,
        jobNumber as jobNumber,
        phoneOperator as phoneOperator,
        phone as phone,
        password as password,
        name as name,
        firstName as firstName,
        lastName as lastName,
        sex as sex,
        idCard as idCard,
        companyId as companyId,
@@ -466,9 +481,11 @@
        a.id as id,
        a.account as account,
        a.jobNumber as jobNumber,
        a.phoneOperator as phoneOperator,
        a.phone as phone,
        a.password as password,
        a.name as name,
        a.firstName as firstName,
        a.lastName as lastName,
        a.sex as sex,
        a.idCard as idCard,
        a.companyId as companyId,
@@ -547,9 +564,11 @@
        id as id,
        account as account,
        jobNumber as jobNumber,
        phoneOperator as phoneOperator,
        phone as phone,
        password as password,
        name as name,
        firstName as firstName,
        lastName as lastName,
        sex as sex,
        idCard as idCard,
        companyId as companyId,
@@ -629,9 +648,11 @@
        id as id,
        account as account,
        jobNumber as jobNumber,
        phoneOperator as phoneOperator,
        phone as phone,
        password as password,
        name as name,
        firstName as firstName,
        lastName as lastName,
        sex as sex,
        idCard as idCard,
        companyId as companyId,
@@ -704,9 +725,11 @@
        id as id,
        account as account,
        jobNumber as jobNumber,
        phoneOperator as phoneOperator,
        phone as phone,
        password as password,
        name as name,
        firstName as firstName,
        lastName as lastName,
        sex as sex,
        idCard as idCard,
        companyId as companyId,
@@ -774,10 +797,11 @@
    <select id="queryMyInviteDriverList" resultType="map">
        select
            id as id,
            phoneOperator as phoneOperator,
            phone as phone,
            name as name,
            CONCAT(firstName, " ", lastName) as name,
            headImgUrl as avatar,
            DATE_FORMAT(insertTime,'%Y/%m/%d %H:%i') as insertTime
            DATE_FORMAT(insertTime,'%Y-%m-%d %H:%i') as insertTime
        from
            t_driver
            where uid=#{uid}