|
|
@@ -3,6 +3,7 @@ package me.zhengjie.application.admin.controller;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import me.zhengjie.annotation.rest.AnonymousGetMapping;
|
|
|
import me.zhengjie.application.admin.controller.vo.NotaryNoteVo;
|
|
|
import me.zhengjie.application.admin.service.NotaryNoteService;
|
|
|
@@ -17,11 +18,13 @@ import javax.validation.Valid;
|
|
|
@RestController
|
|
|
@RequestMapping("/api/note")
|
|
|
@Api(tags = "管理平台: 面谈笔录")
|
|
|
+@Slf4j
|
|
|
public class NotaryNoteController {
|
|
|
@Autowired
|
|
|
NotaryNoteService notaryNoteService;
|
|
|
@Autowired
|
|
|
AppPcBindSocketIo appPcBindSocketIo;
|
|
|
+
|
|
|
/**
|
|
|
* 查询面谈笔录
|
|
|
*
|
|
|
@@ -43,7 +46,10 @@ public class NotaryNoteController {
|
|
|
@PostMapping("/save")
|
|
|
public AppBaseResponse<?> save(@Valid @RequestBody NotaryNoteVo notary) {
|
|
|
AppBaseResponse<?> result = notaryNoteService.saveNotaryNote(notary);
|
|
|
- appPcBindSocketIo.sendAppEvent(notary.getBusinessNo(), "saveNote", "saveNote");
|
|
|
+ String businessNo = notary.getBusinessNo();
|
|
|
+ final String event = "saveNote";
|
|
|
+ log.info("面谈笔录,发送给app事件,业务编号:" + businessNo + ",事件名称:" + event);
|
|
|
+ appPcBindSocketIo.sendAppEvent(businessNo, event, event);
|
|
|
return result;
|
|
|
}
|
|
|
|