james.zhao 6 years ago
commit 314ca1b500

@ -179,7 +179,7 @@ public class TestController implements ApplicationEventPublisherAware {
sos.close();
}
@RequestMapping(value = "/{clientMoniker}/export/aggregate/agreepdf")
@ManagerMapping(value = "/{clientMoniker}/export/aggregate/agreepdf", method = RequestMethod.GET, role = {ManagerRole.ADMIN, ManagerRole.DIRECTOR, ManagerRole.OPERATOR})
public void exportAggregateAgreeFile(@PathVariable String clientMoniker, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager, HttpServletResponse httpResponse) throws Exception {
httpResponse.setContentType("application/pdf");
httpResponse.setHeader("content-disposition", "attachment;filename=" + clientMoniker + "_AGREEMENT_" + new Date() + ".pdf");

Loading…
Cancel
Save