|
@@ -4,6 +4,7 @@ import com.fdkankan.common.util.SecurityUtil;
|
|
import com.fdkankan.manage.common.ResultCode;
|
|
import com.fdkankan.manage.common.ResultCode;
|
|
import com.fdkankan.manage.common.ResultData;
|
|
import com.fdkankan.manage.common.ResultData;
|
|
import com.fdkankan.manage.controller.BaseController;
|
|
import com.fdkankan.manage.controller.BaseController;
|
|
|
|
+import com.fdkankan.manage.entity.RtkInfo;
|
|
import com.fdkankan.manage.exception.BusinessException;
|
|
import com.fdkankan.manage.exception.BusinessException;
|
|
import com.fdkankan.manage.service.ICommonService;
|
|
import com.fdkankan.manage.service.ICommonService;
|
|
import com.fdkankan.manage.service.IRtkInfoService;
|
|
import com.fdkankan.manage.service.IRtkInfoService;
|
|
@@ -71,6 +72,10 @@ public class InnerController extends BaseController {
|
|
if(StringUtils.isBlank(rtkSnCode)){
|
|
if(StringUtils.isBlank(rtkSnCode)){
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
}
|
|
}
|
|
- return ResultData.ok(rtkInfoService.getByRtkSnCode(rtkSnCode));
|
|
|
|
|
|
+ RtkInfo rtkInfo = rtkInfoService.getByRtkSnCode(rtkSnCode);
|
|
|
|
+ if(rtkInfo == null){
|
|
|
|
+ throw new BusinessException(ResultCode.RTK_SN_CODE_NOT_EXIT);
|
|
|
|
+ }
|
|
|
|
+ return ResultData.ok(rtkInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|