|
@@ -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);
|
|
|
}
|