|
@ -168,8 +168,8 @@ public class AssistanceApplyController extends EnvelopRestEndPoint {
|
|
|
@ApiOperation(value = "检验协助申请", response = AssistanceApplyModel.class)
|
|
|
@PostMapping(value = "apply",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
public Envelop createAssistanceApply(
|
|
|
@ApiParam(name = "apply", value = "档案申请JSON结构")
|
|
|
@RequestBody AssistanceApplyModel apply) {
|
|
|
@ApiParam(name = "apply", value = "档案申请JSON结构",required = true)
|
|
|
@RequestBody(required = true) AssistanceApplyModel apply) {
|
|
|
|
|
|
AssistanceApplyModel save = null;
|
|
|
try {
|
|
@ -199,6 +199,20 @@ public class AssistanceApplyController extends EnvelopRestEndPoint {
|
|
|
return success(save);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "检验申请撤回", response = AssistanceApplyModel.class)
|
|
|
@PostMapping(value = "apply/retract",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
public Envelop applyRetract (
|
|
|
@ApiParam(name = "applyId", value = "申请记录ID", defaultValue = "")
|
|
|
@RequestParam(value = "applyId", required = false) int applyId) {
|
|
|
|
|
|
AssistanceApplyModel save = null;
|
|
|
try {
|
|
|
save = assistanceApplyService.retractApply(applyId,2);
|
|
|
} catch (ManageException e) {
|
|
|
return failed(e.getMessage());
|
|
|
}
|
|
|
return success(save);
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|