|
|
@@ -16,34 +16,36 @@ import javax.validation.Valid;
|
|
|
@RequestMapping("/api/note")
|
|
|
@Api(tags = "管理平台: 面谈笔录")
|
|
|
public class NotaryNoteController {
|
|
|
- @Autowired
|
|
|
- NotaryNoteService notaryNoteService;
|
|
|
+ @Autowired
|
|
|
+ NotaryNoteService notaryNoteService;
|
|
|
|
|
|
- /**
|
|
|
- * 查询面谈笔录
|
|
|
- *
|
|
|
- * @param notary
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping("/question")
|
|
|
- public JSONObject question(@Valid @RequestBody NotaryNoteVo notary) {
|
|
|
- return notaryNoteService.getNotaryNoteByType(notary);
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 查询面谈笔录
|
|
|
+ *
|
|
|
+ * @param notary
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/question")
|
|
|
+ public JSONObject question(@Valid @RequestBody NotaryNoteVo notary) {
|
|
|
+ return notaryNoteService.getNotaryNoteByType(notary);
|
|
|
+ }
|
|
|
|
|
|
- /**
|
|
|
- * 保存面谈笔录
|
|
|
- *
|
|
|
- * @param notary
|
|
|
- * @return
|
|
|
- */
|
|
|
- @ApiOperation("保存面谈笔录")
|
|
|
- @PostMapping("/save")
|
|
|
- public AppBaseResponse<?> save(@Valid @RequestBody NotaryNoteVo notary) {
|
|
|
- return notaryNoteService.saveNotaryNote(notary);
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 保存面谈笔录
|
|
|
+ *
|
|
|
+ * @param notary
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("保存面谈笔录")
|
|
|
+ @PostMapping("/save")
|
|
|
+ public AppBaseResponse<?> save(@Valid @RequestBody NotaryNoteVo notary) {
|
|
|
+ AppBaseResponse<?> result = notaryNoteService.saveNotaryNote(notary);
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
|
|
|
- @AnonymousGetMapping("/test-pdf")
|
|
|
- public String generateTestPdf(@RequestParam String modelId, @RequestParam String businessNo) {
|
|
|
- return notaryNoteService.generateTestPdf(modelId, businessNo);
|
|
|
- }
|
|
|
+ @AnonymousGetMapping("/test-pdf")
|
|
|
+ public String generateTestPdf(@RequestParam String modelId, @RequestParam String businessNo) {
|
|
|
+ return notaryNoteService.generateTestPdf(modelId, businessNo);
|
|
|
+ }
|
|
|
}
|