|
@@ -45,10 +45,11 @@ public class RepairInfoController extends BaseController{
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
SysUser user = getUser();
|
|
|
+ RepairDetailVo detailVo = repairInfoService.getDetailsByRepairId(repairId);
|
|
|
+
|
|
|
if(user == null){
|
|
|
- throw new BusinessException(ResultCode.USER_NOT_LOGIN);
|
|
|
+ return ResultData.ok(detailVo);
|
|
|
}
|
|
|
- RepairDetailVo detailVo = repairInfoService.getDetailsByRepairId(repairId);
|
|
|
if(user.getRoleId() == 1){
|
|
|
detailVo.setHaveButton(1);
|
|
|
}else {
|