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