| | |
| | | PersonSupervisionControlSheet byId = personSupervisionControlSheetService.getOne(Wrappers.<PersonSupervisionControlSheet>lambdaQuery() |
| | | .eq(PersonSupervisionControlSheet::getSupervisionRecordId, id)); |
| | | if (ObjectUtils.isEmpty(byId)) { |
| | | return Result.success(202); |
| | | return Result.fail(202); |
| | | } else { |
| | | return Result.success(byId); |
| | | } |
| | |
| | | return restResult(data, FAIL, "操作失败"); |
| | | } |
| | | |
| | | public static <T> Result<T> fail(Integer code){ |
| | | return restResult(null, code,"fail"); |
| | | } |
| | | |
| | | public static <T> Result<T> fail(T data, String msg) |
| | | { |
| | | return restResult(data, FAIL, msg); |