...
|
...
|
@@ -7,6 +7,7 @@ import com.xkl.authorization.annotation.*; |
|
|
import com.xkl.config.ResultStatus;
|
|
|
import com.xkl.domain.XklAdminEntity;
|
|
|
import com.xkl.domain.XklCompanyEntity;
|
|
|
import com.xkl.model.AdminInfoModel;
|
|
|
import com.xkl.model.AdminLoginModel;
|
|
|
import com.xkl.model.ResultModel;
|
|
|
import com.xkl.repository.XklCompanyRepository;
|
...
|
...
|
@@ -38,7 +39,7 @@ public class AdminInfoController { |
|
|
if (companyEntity == null) {
|
|
|
return new ResponseEntity<>(ResultModel.error(ResultStatus.COMPANY_ERROR), HttpStatus.OK);
|
|
|
}
|
|
|
AdminLoginModel adminLoginModel = new AdminLoginModel(admin.getId(), admin.getAccount(), companyEntity.getId(), companyEntity.getName(), "", "");
|
|
|
return new ResponseEntity<>(ResultModel.ok(adminLoginModel), HttpStatus.OK);
|
|
|
AdminInfoModel adminInfoModel = new AdminInfoModel(admin.getId(), admin.getAccount(), companyEntity.getId(), companyEntity.getName());
|
|
|
return new ResponseEntity<>(ResultModel.ok(adminInfoModel), HttpStatus.OK);
|
|
|
}
|
|
|
} |
...
|
...
|
|