Kaynağa Gözat

解决rtx部门导入无parentid

lijq 6 yıl önce
ebeveyn
işleme
ad29060d1a

+ 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
 		}