| | |
| | | Integer id = (Integer) param.get("id"); |
| | | Integer isRatify = (Integer) param.get("isRatify"); |
| | | String ratifyTell = (String) param.get("ratifyTell"); |
| | | return Result.success(insReportService.ratifyReport(id, isRatify, ratifyTell)); |
| | | Object sealIdsObj = param.get("sealIds"); |
| | | String sealIds = sealIdsObj == null ? null : String.valueOf(sealIdsObj); |
| | | Integer maSealId = toInteger(param.get("maSealId")); |
| | | Integer reportSealId = toInteger(param.get("reportSealId")); |
| | | Integer seamSealId = toInteger(param.get("seamSealId")); |
| | | return Result.success(insReportService.ratifyReport( |
| | | id, isRatify, ratifyTell, sealIds, maSealId, reportSealId, seamSealId)); |
| | | } |
| | | |
| | | private Integer toInteger(Object value) { |
| | | if (value == null || String.valueOf(value).trim().isEmpty()) { |
| | | return null; |
| | | } |
| | | return value instanceof Number ? ((Number) value).intValue() : Integer.valueOf(String.valueOf(value)); |
| | | } |
| | | |
| | | @Anonymous |