Ver Fonte

解决rtx部门导入无parentid

lijq há 6 anos atrás
pai
commit
ad29060d1a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/dashoo.cn/backend/api/business/oilrtx/RtxService.go

+ 1 - 1
src/dashoo.cn/backend/api/business/oilrtx/RtxService.go

@@ -110,7 +110,7 @@ func (s *RtxService) RecursionOrganize(rtxOrganizes []RtxOrganize) bool {
 		parentId := 0
 		if len(rtxOrg.ParentId) > 0 {
 			var baseParentOrganize organize.Base_Organize
-			where := "1=1 and Outerphone='" + rtxOrg.Id + "'"
+			where := "1=1 and Innerphone='" + rtxOrg.ParentId + "'"
 			orgSvc.GetEntity(&baseParentOrganize, where)
 			parentId = baseParentOrganize.Id
 		}