From 42b1b4d74e6662a59e834dc90d3dae3cba8b8a67 Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 22 Jul 2020 09:30:58 +0800 Subject: [PATCH] 'commit' --- .../BaseStudentService/BaseStudentService.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dsBaseRpc/RpcService/BaseStudent/BaseStudentService/BaseStudentService.go b/dsBaseRpc/RpcService/BaseStudent/BaseStudentService/BaseStudentService.go index eddc8eeb..c90ac6b5 100644 --- a/dsBaseRpc/RpcService/BaseStudent/BaseStudentService/BaseStudentService.go +++ b/dsBaseRpc/RpcService/BaseStudent/BaseStudentService/BaseStudentService.go @@ -484,14 +484,10 @@ func (s *Rpc) ImportStudentInfoExcel(ctx context.Context, in *BaseStudentProto.I success, message, err := BaseStudentDao.ImportStudentInfoExcel(in.ExcelPath, in.BureauId, in.ActionPersonId, in.ActionIpAddress) if err != nil { reply.Success = false - return &reply, nil - } - if !success { - reply.Success = false - return &reply, nil - } else { - reply.Success = true reply.Message = message return &reply, nil } + reply.Success = success + reply.Message = message + return &reply, nil }