Bläddra i källkod

feat(日志):用户操作日志

liutao 8 månader sedan
förälder
incheckning
c11736440f

+ 11 - 0
src/main/java/com/sunxung/factoring/web/creditresolution/CreditResolutionController.java

@@ -1,5 +1,7 @@
 package com.sunxung.factoring.web.creditresolution;
 
+import com.sunxung.factoring.component.annotation.OperationLog;
+import com.sunxung.factoring.component.enums.OperationTypeEnum;
 import com.sunxung.factoring.entity.GridPage;
 import com.sunxung.factoring.entity.ResponseJson;
 import com.sunxung.factoring.entity.creditresolution.CreditResolution;
@@ -45,6 +47,7 @@ public class CreditResolutionController {
      * @param id
      */
     @RequestMapping("auto")
+    @OperationLog(operationModule = "授信决议",operationType = OperationTypeEnum.INSERT,description = "手动同步sop接口")
     public void test(@RequestParam Long id){
         creditResolutionApprovalService.test(id);
 
@@ -55,6 +58,7 @@ public class CreditResolutionController {
      * @param id
      */
     @RequestMapping("startProcess")
+    @OperationLog(operationModule = "授信决议",operationType = OperationTypeEnum.INSERT,description = "手动开启流程")
     public void startProcess(@RequestParam Long id){
         creditResolutionService.startProcess(id);
     }
@@ -64,6 +68,7 @@ public class CreditResolutionController {
      * @return
      */
     @RequestMapping("allList")
+    @OperationLog(operationModule = "授信决议",operationType = OperationTypeEnum.QUERY,description = "全部列表")
     public GridPage allList(@RequestBody SearchBusinessProcessingTask search){
         GridPage<CreditResolution> page = creditResolutionService.allList(search);
         return page;
@@ -76,6 +81,7 @@ public class CreditResolutionController {
      * @return
      */
     @RequestMapping("get")
+    @OperationLog(operationModule = "授信决议",operationType = OperationTypeEnum.QUERY,description = "获取授信决议信息")
     public ResponseJson getInfo(@RequestParam Long id) {
         CreditResolution creditResolution = creditResolutionService.get(id);
         creditResolution.setFinancingRatioLow(format(creditResolution.getFinancingRatioLow() == null? 0: creditResolution.getFinancingRatioLow() * 100));
@@ -109,6 +115,7 @@ public class CreditResolutionController {
      * @return
      */
     @RequestMapping("getDetail")
+    @OperationLog(operationModule = "授信决议",operationType = OperationTypeEnum.QUERY,description = "获取授信决议录入页信息")
     public ResponseJson getDetail(@RequestParam Long id) {
         CreditResolution creditResolution = creditResolutionService.getDetail(id);
         return new ResponseJson(creditResolution);
@@ -120,6 +127,7 @@ public class CreditResolutionController {
      * @return
      */
     @RequestMapping("add")
+    @OperationLog(operationModule = "授信决议",operationType = OperationTypeEnum.INSERT,description = "授信决议录入")
     public ResponseJson addInfo(@RequestBody CreditResolution creditResolution) {
         creditResolutionService.addInfo(creditResolution);
         return new ResponseJson();
@@ -131,6 +139,7 @@ public class CreditResolutionController {
      * @return
      */
     @RequestMapping("/confirm/add")
+    @OperationLog(operationModule = "授信决议",operationType = OperationTypeEnum.INSERT,description = "授信决议确认")
     public ResponseJson creditResolutionConfirm(@RequestBody CreditResolution creditResolution) {
         creditResolutionApprovalService.addInfo(creditResolution);
         return new ResponseJson();
@@ -143,6 +152,7 @@ public class CreditResolutionController {
      * @return
      */
     @RequestMapping("reconsider/add")
+    @OperationLog(operationModule = "授信决议",operationType = OperationTypeEnum.INSERT,description = "复议调整申请")
     public ResponseJson addReconsiderAdjustInfo(@RequestBody ReconsiderAdjust reconsiderAdjust) {
         reconsiderAdjustService.add(reconsiderAdjust);
         return new ResponseJson();
@@ -155,6 +165,7 @@ public class CreditResolutionController {
      * @return
      */
     @RequestMapping("reconsider/approval/add")
+    @OperationLog(operationModule = "授信决议",operationType = OperationTypeEnum.INSERT,description = "复议调整审批")
     public ResponseJson approval(@RequestBody ReconsiderAdjustApproval approval) {
         reconsiderAdjustApprovalService.add(approval);
         return new ResponseJson();

+ 16 - 0
src/main/java/com/sunxung/factoring/web/project/ProjectInformationController.java

@@ -1,5 +1,7 @@
 package com.sunxung.factoring.web.project;
 
+import com.sunxung.factoring.component.annotation.OperationLog;
+import com.sunxung.factoring.component.enums.OperationTypeEnum;
 import com.sunxung.factoring.entity.GridPage;
 import com.sunxung.factoring.entity.ResponseJson;
 import com.sunxung.factoring.entity.project.*;
@@ -42,6 +44,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("project/getAllProject")
+    @OperationLog(operationModule = "项目授信",operationType = OperationTypeEnum.QUERY,description = "查询所有项目授信")
     public GridPage getAllProject(@RequestBody SearchBusinessProcessingTask search){
         GridPage<ProjectInformation> list = projectInformationService.findAll(search);
         return list;
@@ -53,6 +56,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("project/getAllCoreEnterprise")
+    @OperationLog(operationModule = "核心企业授信",operationType = OperationTypeEnum.QUERY,description = "查询所有核心企业授信")
     public GridPage getAllCoreEnterprise(@RequestBody SearchBusinessProcessingTask search){
         GridPage<ProjectCoreEnterprise> page = projectCoreEnterpriseService.findAll(search);
         return page;
@@ -63,6 +67,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("api/startProjectProcess")
+    @OperationLog(operationModule = "项目授信",operationType = OperationTypeEnum.INSERT,description = "开启项目流程")
     public ResponseJson startProjectProcess(@RequestBody ProjectInformation projectInformation){
         projectInformationService.startProjectProcess(projectInformation);
         return new ResponseJson();
@@ -73,6 +78,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("api/startProjectCoreEnterpriseProcess")
+    @OperationLog(operationModule = "核心企业授信",operationType = OperationTypeEnum.INSERT,description = "开启项目核心企业流程")
     public ResponseJson startProjectCoreEnterpriseProcess(@RequestBody ProjectInformation projectInformation){
         projectCoreEnterpriseService.startProjectProcess(projectInformation);
         return new ResponseJson();
@@ -84,6 +90,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("project/getProjectAuditInfo")
+    @OperationLog(operationModule = "项目授信",operationType = OperationTypeEnum.QUERY,description = "获取项目审核信息")
     public ResponseJson getProjectAuditInfo(@RequestParam Long id){
         ProjectAudit projectAuditInfo = projectAuditService.getProjectAuditInfo(id);
         return new ResponseJson(projectAuditInfo);
@@ -95,6 +102,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("project/getProjectCoreEnterpriseAuditInfo")
+    @OperationLog(operationModule = "核心企业授信",operationType = OperationTypeEnum.QUERY,description = "获取项目核心企业审核信息")
     public ResponseJson getProjectCoreEnterpriseAuditInfo(@RequestParam Long id){
         ProjectCoreEnterpriseAudit projectCoreEnterpriseAuditInfo = projectCoreEnterpriseAuditService.getProjectCoreEnterpriseAuditInfo(id);
         return new ResponseJson(projectCoreEnterpriseAuditInfo);
@@ -107,6 +115,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("project/addProjectAuditInfo")
+    @OperationLog(operationModule = "项目授信",operationType = OperationTypeEnum.INSERT,description = "保存项目审核信息")
     public ResponseJson addProjectAuditInfo(@RequestBody ProjectAudit projectAuditInfo){
         projectAuditService.addProjectAuditInfo(projectAuditInfo);
         return new ResponseJson();
@@ -118,6 +127,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("project/addProjectCoreEnterpriseAuditInfo")
+    @OperationLog(operationModule = "核心企业授信",operationType = OperationTypeEnum.INSERT,description = "保存项目核心企业审核信息")
     public ResponseJson addProjectCoreEnterpriseAuditInfo(@RequestBody ProjectCoreEnterpriseAudit projectCoreEnterpriseAuditInfo){
         projectCoreEnterpriseAuditService.addProjectCoreEnterpriseAuditInfo(projectCoreEnterpriseAuditInfo);
         return new ResponseJson();
@@ -129,6 +139,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("project/addProjectCoreEnterprise/measurement")
+    @OperationLog(operationModule = "核心企业授信",operationType = OperationTypeEnum.QUERY,description = "一键测算")
     public ResponseJson measurement(@RequestBody ProjectCoreEnterpriseAudit projectCoreEnterpriseAuditInfo){
         ProjectCoreEnterpriseComprehensiveEvaluation measurement = projectCoreEnterpriseAuditService.measurement(null,projectCoreEnterpriseAuditInfo);
         return new ResponseJson(measurement);
@@ -140,6 +151,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("project/addProject/measurement")
+    @OperationLog(operationModule = "项目授信",operationType = OperationTypeEnum.QUERY,description = "一键测算")
     public ResponseJson measurement(@RequestBody ProjectAudit projectAudit){
         ProjectOwnerComprehensiveEvaluation measurement = projectAuditService.measurement(null,projectAudit);
         return new ResponseJson(measurement);
@@ -151,6 +163,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("project/admission/report")
+    @OperationLog(operationModule = "项目授信",operationType = OperationTypeEnum.QUERY,description = "获取项目准入报告")
     public ResponseJson getProjectReport(@RequestParam Long id){
         ProjectOwnerScore projectOwnerScore = projectInformationService.getProjectReport(id);
         return new ResponseJson(projectOwnerScore);
@@ -162,6 +175,7 @@ public class ProjectInformationController {
      * @return
      */
     @RequestMapping("enterprise/admission/report")
+    @OperationLog(operationModule = "核心企业授信",operationType = OperationTypeEnum.QUERY,description = "获取核心企业准入报告")
     public ResponseJson getEnterpriseReport(@RequestParam Long id){
         ProjectCoreEnterpriseScore projectCoreEnterpriseScore = projectCoreEnterpriseService.getEnterpriseReport(id);
         return new ResponseJson(projectCoreEnterpriseScore);
@@ -173,6 +187,7 @@ public class ProjectInformationController {
      * @param res
      */
     @RequestMapping("/enterprise/admission/report/download")
+    @OperationLog(operationModule = "核心企业授信",operationType = OperationTypeEnum.QUERY,description = "下载核心企业准入报告")
     public void downloadEnterpriseReport(@RequestParam Long id, HttpServletResponse res) throws IOException {
         projectCoreEnterpriseService.download(id,res);
     }
@@ -183,6 +198,7 @@ public class ProjectInformationController {
      * @param res
      */
     @RequestMapping("/project/admission/report/download")
+    @OperationLog(operationModule = "项目授信",operationType = OperationTypeEnum.QUERY,description = "下载项目准入报告")
     public void downloadProjectReport(@RequestParam Long id, HttpServletResponse res) throws IOException {
         projectInformationService.download(id,res);
     }

+ 20 - 0
src/main/java/com/sunxung/factoring/web/supplier/SupplierController.java

@@ -1,5 +1,7 @@
 package com.sunxung.factoring.web.supplier;
 
+import com.sunxung.factoring.component.annotation.OperationLog;
+import com.sunxung.factoring.component.enums.OperationTypeEnum;
 import com.sunxung.factoring.entity.GridPage;
 import com.sunxung.factoring.entity.ResponseJson;
 import com.sunxung.factoring.entity.entprise.Enterprise;
@@ -53,6 +55,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("api/supplier/startProcess")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.INSERT,description = "开启流程")
     public ResponseJson startProcess(@RequestBody SupplierInfo supplierInfo){
         String status = supplierInfoService.startProcess(supplierInfo);
         return new ResponseJson(status);
@@ -64,6 +67,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/getAll")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.QUERY,description = "根据条件查询数据")
     public GridPage getAll(@RequestBody SearchBusinessProcessingTask search){
         GridPage<SupplierInfo> page = supplierInfoService.getBySearch(search);
         return page;
@@ -75,6 +79,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/getDueDiligenceAllocation")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.QUERY,description = "获取尽调分配信息")
     public ResponseJson getDueDiligenceAllocation(@RequestParam Long id){
         DueDiligenceAllocation dueDiligenceAllocation = dueDiligenceAllocationService.getDueDiligenceAllocation(id);
         return new ResponseJson(dueDiligenceAllocation);
@@ -86,6 +91,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/dueDiligenceAllocation")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.INSERT,description = "尽调分配")
     public ResponseJson dueDiligenceAllocation(@RequestBody DueDiligenceAllocation dueDiligenceAllocation){
         SupplierInfo supplierInfo = supplierInfoService.get(dueDiligenceAllocation.getcSupplierInfoId());
         Enterprise enterprise = enterpriseService.getById(supplierInfo.getcEnterpriseId());
@@ -102,6 +108,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/getFirstReviewById")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.QUERY,description = "获取第一步审核信息")
     public ResponseJson getFirstReviewById(@RequestParam Long id){
         SupplierInfo supplierInfo = supplierApprovalFirstService.getFirstReviewById(id);
         return new ResponseJson(supplierInfo);
@@ -112,6 +119,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/firstReview/measurement")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.OTHER,description = "审核第一步测算")
     public ResponseJson firstMeasurement(@RequestBody SupplierInfo supplierInfo){
         SupplierApprovalFirst measurement = supplierApprovalFirstService.measurement(supplierInfo);
         return new ResponseJson(measurement);
@@ -122,6 +130,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/firstReview")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.INSERT,description = "审核第一步")
     public ResponseJson firstReview(@RequestBody SupplierInfo supplierInfo){
         supplierApprovalFirstService.firstReview(supplierInfo);
         return new ResponseJson();
@@ -133,6 +142,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/getSecondReviewById")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.QUERY,description = "获取第二步审核信息")
     public ResponseJson getSecondReviewById(@RequestParam Long id){
         SupplierApprovalSecond supplierApprovalSecond = supplierApprovalSecondService.getSecondReviewById(id);
         return new ResponseJson(supplierApprovalSecond);
@@ -144,6 +154,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/secondReview/measurement")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.QUERY,description = "第二步审核测算打分")
     public ResponseJson secondMeasurement(@RequestBody SupplierApprovalSecond supplierApprovalSecond){
         SupplierApprovalSecond result = supplierApprovalSecondService.measurement(supplierApprovalSecond);
         return new ResponseJson(result);
@@ -155,6 +166,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/secondReview")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.INSERT,description = "第二步审核")
     public ResponseJson secondReview(@RequestBody SupplierApprovalSecond supplierApprovalSecond){
         supplierApprovalSecondService.secondReview(supplierApprovalSecond);
         return new ResponseJson();
@@ -167,6 +179,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("api/supplier/completeVideoDueDiligenceAppointment")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.INSERT,description = "c端完成尽调预约")
     public ResponseJson completeVideoDueDiligenceAppointment(@RequestParam Long id, @RequestParam Long historyId){
         dueDiligenceAppointmentService.completeDueDiligenceAppointment(id,historyId);
         return new ResponseJson();
@@ -177,6 +190,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/getDueDiligenceConfirm")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.QUERY,description = "获取尽调时间确认信息")
     public ResponseJson getDueDiligenceConfirm(@RequestParam Long supplierId){
         ConfirmationDueDiligenceTime confirmationDueDiligenceTime = confirmationDueDiligenceTimeService.getDueDiligenceConfirm(supplierId);
         return new ResponseJson(confirmationDueDiligenceTime);
@@ -187,6 +201,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/dueDiligenceConfirm")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.INSERT,description = "尽调时间确认")
     public ResponseJson dueDiligenceConfirm(@RequestBody ConfirmationDueDiligenceTime confirmationDueDiligenceTime){
         confirmationDueDiligenceTimeService.dueDiligenceConfirm(confirmationDueDiligenceTime);
         return new ResponseJson();
@@ -197,6 +212,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/getVideoDueDiligence")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.QUERY,description = "获取视频尽调信息")
     public ResponseJson getVideoDueDiligence(@RequestParam Long supplierId){
         VideoDueDiligence videoDueDiligence = videoDueDiligenceService.getVideoDueDiligence(supplierId);
         return new ResponseJson(videoDueDiligence);
@@ -207,6 +223,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/videoDueDiligence")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.INSERT,description = "视频尽调录入")
     public ResponseJson videoDueDiligence(@RequestBody VideoDueDiligence videoDueDiligence){
         videoDueDiligenceService.videoDueDiligence(videoDueDiligence);
         return new ResponseJson();
@@ -218,6 +235,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/video/measurement")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.QUERY,description = "视频尽调测算打分")
     public ResponseJson videoMeasurement(@RequestBody VideoDueDiligence videoDueDiligence){
         VideoDueDiligence result = videoDueDiligenceService.measurement(videoDueDiligence);
         return new ResponseJson(result);
@@ -229,6 +247,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("supplier/report")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.QUERY,description = "供应商准入报告")
     public ResponseJson report(@RequestParam Long supplierId){
         VideoDueDiligence videoDueDiligence = supplierInfoService.report(supplierId);
         return new ResponseJson(videoDueDiligence);
@@ -240,6 +259,7 @@ public class SupplierController {
      * @return
      */
     @RequestMapping("/supplier/download/report")
+    @OperationLog(operationModule = "供应商授信",operationType = OperationTypeEnum.OTHER,description = "供应商准入报告下载")
     public void downloadReport(@RequestParam Long supplierId, HttpServletResponse response) throws IOException {
         supplierInfoService.downloadReport(supplierId,response);
     }