|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package digital.laboratory.platform.entrustment.controller; |
|
|
|
|
|
|
|
|
|
import digital.laboratory.platform.common.core.exception.ValidateCodeException; |
|
|
|
|
import digital.laboratory.platform.common.core.util.R; |
|
|
|
|
import digital.laboratory.platform.entrustment.entity.EntrustmentIdentificationMaterial; |
|
|
|
|
import digital.laboratory.platform.entrustment.service.AcceptService; |
|
|
|
@ -25,7 +26,13 @@ public class AcceptController { |
|
|
|
|
@PutMapping("/alertMaterialAcceptNo") |
|
|
|
|
@PreAuthorize("@pms.hasPermission('EntrustmentAccept')") |
|
|
|
|
public R alertMaterialAcceptNo(@RequestBody EntrustmentIdentificationMaterial material) { |
|
|
|
|
Boolean success = acceptService.alertMaterialAcceptNo(material); |
|
|
|
|
Boolean success = null; |
|
|
|
|
try { |
|
|
|
|
success = acceptService.alertMaterialAcceptNo(material); |
|
|
|
|
} catch (ValidateCodeException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
return R.failed(e.getMessage()); |
|
|
|
|
} |
|
|
|
|
return R.ok(success); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|