瀏覽代碼

Merge branch 'dev_v1.5.30_wh' of jianyu/datatools into feature/v1.5.30

王浩 3 月之前
父節點
當前提交
6a8fd2bb61
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      clueSync/kc.go

+ 3 - 0
clueSync/kc.go

@@ -889,6 +889,9 @@ func refundAuto() {
 										}
 										if !isOks {
 											sdata := TiDb.SelectBySql(`SELECT b.name,b.position_id,b.seat_number from dwd_d_crm_department_level_succbi a INNER JOIN dwd_f_crm_personnel_management b on a.position_id = b.position_id where a.bi_pcode = (SELECT bi_pcode from dwd_d_crm_department_level_succbi where position_id = ?) and b.role_id = 3`, saleId)
+											if len(*sdata) == 0 {
+												sdata := TiDb.SelectBySql(`SELECT b.name,b.position_id,b.seat_number from dwd_d_crm_department_level_succbi a INNER JOIN dwd_f_crm_personnel_management b on a.position_id = b.position_id where a.bi_pcode = (SELECT bi_pcode from dwd_d_crm_department_level_succbi where position_id = ?) and b.role_id = 8`, saleId)
+											}
 											if sdata != nil && len(*sdata) > 0 {
 												saleId = common.Int64All((*sdata)[0]["position_id"])
 												seatNumber := common.ObjToString((*sdata)[0]["seat_number"])