|
@@ -1438,7 +1438,7 @@ func FindPositionIdClueId(uid string) (int64, string, string) {
|
|
|
AND ( b.service_type != 4 or b.service_type is NULL OR ( b.service_type = 4 AND DATEDIFF( b.service_starttime, b.service_endtime )> 90 ) )
|
|
|
inner JOIN jianyu.order_sale_record d on b.order_code=d.ordercode and d.state=1
|
|
|
INNER JOIN jianyu.entniche_user e on d.ent_userId = e.id
|
|
|
- INNER JOIN dwd_f_crm_personnel_management c on c.ent_id =? and e.username=c.name
|
|
|
+ INNER JOIN dwd_f_crm_personnel_management c on c.ent_id =? and e.name=c.name
|
|
|
inner join dwd_d_crm_department_level_succbi f on c.position_id=f.position_id
|
|
|
ORDER BY
|
|
|
b.service_endtime desc ,b.final_price DESC ,a.state,
|