| | |
| | | t1.name AS operatorName, |
| | | t2.name AS userName, |
| | | t2.phone, |
| | | t3.alipay AS platform, |
| | | t3.alipayProportion AS proportion, |
| | | t3.alipayNum AS number, |
| | | t3.alipayAudit AS audit, |
| | | t3.alipayType AS type |
| | | FROM t_operator_user t3 |
| | | LEFT JOIN t_operator t1 ON t3.operatorId = t1.id |
| | | LEFT JOIN sys_user t2 ON t1.userId = t2.id AND t2.objectType = 2 |
| | | |
| | | UNION ALL |
| | | |
| | | SELECT t3.id, |
| | | t1.id AS operatorId, |
| | | t1.name AS operatorName, |
| | | t2.name AS userName, |
| | | t2.phone, |
| | | t3.wechat AS platform, |
| | | t3.wechatProportion AS proportion, |
| | | t3.wechatNum AS number, |
| | |
| | | FROM t_operator_user t3 |
| | | LEFT JOIN t_operator t1 ON t3.operatorId = t1.id |
| | | LEFT JOIN sys_user t2 ON t1.userId = t2.id AND t2.objectType = 2 |
| | | UNION ALL |
| | | SELECT t3.id, |
| | | t1.id AS operatorId, |
| | | t1.name AS operatorName, |
| | | t2.name AS userName, |
| | | t2.phone, |
| | | t3.alipay AS platform, |
| | | t3.alipayProportion AS proportion, |
| | | t3.alipayNum AS number, |
| | | t3.alipayAudit AS audit, |
| | | t3.alipayType AS type |
| | | FROM t_operator_user t3 |
| | | LEFT JOIN t_operator t1 ON t3.operatorId = t1.id |
| | | LEFT JOIN sys_user t2 ON t1.userId = t2.id AND t2.objectType = 2 |
| | | ) AS t1 |
| | | where 1=1 |
| | | <if test="userName !=null and userName !=''"> |