WH01243 1 жил өмнө
parent
commit
4a0a349b30

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

@@ -154,13 +154,16 @@ func (e *EmPloyService) EmployOperate(in *types.EmployOperateReq) (bool, string)
 					})
 					if !ok {
 						log.Println(v1, id, in.EmployType, "取消收录失败")
+						continue
 					}
+					fool = true
 				} else {
-					fool = false
 					if in.EmployType == 1 {
 						msg = "该资讯已有员工收录,不可取消收录。"
+						continue
 					} else {
 						msg = "该企业已有员工收录,不可取消收录。"
+						continue
 					}
 				}
 			}