瀏覽代碼

拟建信息处理

WH01243 1 年之前
父節點
當前提交
9d35e5fb4e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      api/internal/service/employService.go

+ 4 - 4
api/internal/service/employService.go

@@ -82,9 +82,9 @@ func (e *EmPloyService) EmployOperate(in *types.EmployOperateReq) (bool, string)
 			table, _, employKey, source, projectId, isNijian := employKeyFormat(in.EmployType, id)
 			findMap["source"] = source
 			if isNijian {
-				findMap[employKey] = id
-			} else {
 				findMap[employKey] = projectId
+			} else {
+				findMap[employKey] = id
 			}
 			if id == "" {
 				log.Println(v1, in.EmployType, "该信息查询不到数据")
@@ -562,9 +562,9 @@ func employInfoPerson(v, table, id, employKey, findKey string, source int64, in
 	}
 	sourceId := ""
 	if isNiJian {
-		sourceId = id
-	} else {
 		sourceId = projectId
+	} else {
+		sourceId = id
 	}
 	employData := MC.CrmMysql.FindOne(table, map[string]interface{}{
 		employKey:     sourceId,