| | |
| | | left join t_driver t2 on t1.userId = t2.id |
| | | where t1.userType = 2 and t1.orderType=6 and t2.authState in (2, 3) and t2.flag != 3 |
| | | <if test="roleType != null and roleType != '' and roleType == 2"> |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t1.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t2.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | </if> |
| | | <if test="roleType != null and roleType != '' and roleType == 3"> |
| | | and t2.franchiseeId = #{objectId} |
| | |
| | | left join t_driver t2 on t1.userId = t2.id |
| | | where t1.userType=2 and t1.type = 2 and t1.state!=3 and t2.authState in (2, 3) and t2.flag != 3 |
| | | <if test="roleType != null and roleType != '' and roleType == 2"> |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t1.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t2.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | </if> |
| | | <if test="roleType != null and roleType != '' and roleType == 3"> |
| | | and t2.franchiseeId = #{objectId} |
| | |
| | | left join t_driver t2 on t1.driverId = t2.id |
| | | where t1.status=2 and t2.authState in (2, 3) and t2.flag != 3 |
| | | <if test="roleType != null and roleType != '' and roleType == 2"> |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t1.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t2.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | </if> |
| | | <if test="roleType != null and roleType != '' and roleType == 3"> |
| | | and t2.franchiseeId = #{objectId} |
| | |
| | | left join t_driver t2 on t1.userId = t2.id |
| | | where t1.userType = 2 and t1.orderType=6 and t2.authState in (2, 3) and t2.flag != 3 |
| | | <if test="roleType != null and roleType != '' and roleType == 2"> |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t1.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t2.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | </if> |
| | | <if test="roleType != null and roleType != '' and roleType == 3"> |
| | | and t2.franchiseeId = #{objectId} |
| | |
| | | left join t_driver t2 on t1.userId = t2.id |
| | | where t1.userType=2 and t1.type = 2 and t1.state!=3 and t2.authState in (2, 3) and t2.flag != 3 |
| | | <if test="roleType != null and roleType != '' and roleType == 2"> |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t1.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t2.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | </if> |
| | | <if test="roleType != null and roleType != '' and roleType == 3"> |
| | | and t2.franchiseeId = #{objectId} |
| | |
| | | left join t_driver t2 on t1.driverId = t2.id |
| | | where t1.status=2 and t2.authState in (2, 3) and t2.flag != 3 |
| | | <if test="roleType != null and roleType != '' and roleType == 2"> |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t1.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | and (t2.companyId = #{objectId} or FIND_IN_SET(t2.franchiseeId,(SELECT GROUP_CONCAT(id) as ids FROM t_company where superiorId = #{objectId} GROUP BY superiorId))) |
| | | </if> |
| | | <if test="roleType != null and roleType != '' and roleType == 3"> |
| | | and t2.franchiseeId = #{objectId} |