|
|
@@ -8,12 +8,14 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.core.io.Resource;
|
|
|
import org.springframework.core.io.UrlResource;
|
|
|
+import org.springframework.http.ContentDisposition;
|
|
|
import org.springframework.http.HttpHeaders;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.nio.charset.StandardCharsets;
|
|
|
import java.nio.file.Files;
|
|
|
import java.nio.file.Path;
|
|
|
import java.nio.file.Paths;
|
|
|
@@ -125,7 +127,7 @@ public class SikuController {
|
|
|
return McR.success();
|
|
|
}
|
|
|
|
|
|
- //每刻报销报销单完成回调
|
|
|
+ //每刻报销报销单完成回调 --每刻项目支付单(对公)
|
|
|
@PostMapping("/reimbursement/callback")
|
|
|
public McR callback3(@RequestBody Map map){
|
|
|
log.info("每刻报销报销单完成回调:{}", JSONObject.toJSONString(map));
|
|
|
@@ -135,7 +137,7 @@ public class SikuController {
|
|
|
return McR.success();
|
|
|
}
|
|
|
|
|
|
- //每刻报销付款单完成回调
|
|
|
+ //每刻报销付款单完成回调 --每刻分期付款单(对公)
|
|
|
@PostMapping("/pay/callback")
|
|
|
public McR callback4(@RequestBody Map map){
|
|
|
log.info("每刻报销付款单完成回调:{}", JSONObject.toJSONString(map));
|
|
|
@@ -145,7 +147,7 @@ public class SikuController {
|
|
|
return McR.success();
|
|
|
}
|
|
|
|
|
|
- //每刻报销预付退回完成回调
|
|
|
+ //每刻报销预付退回完成回调--支付退回单
|
|
|
@PostMapping("/repay/callback")
|
|
|
public McR callback5(@RequestBody Map map){
|
|
|
log.info("每刻报销预付退回完成回调:{}", JSONObject.toJSONString(map));
|
|
|
@@ -175,7 +177,9 @@ public class SikuController {
|
|
|
return McR.success();
|
|
|
}
|
|
|
|
|
|
- //每刻报销费用报销单完成回调(项目报销单(个人)、项目差旅报销单、打车(企业支付)("是否有项目"为【是】))
|
|
|
+
|
|
|
+
|
|
|
+ //每刻报销费用报销单完成回调(项目报销单(个人)、项目差旅报销单、打车(企业支付)("是否有项目"为【是】)、商旅月结)
|
|
|
@PostMapping("/reimbursement2/callback")
|
|
|
public McR callback8(@RequestBody Map map){
|
|
|
log.info("每刻报销费用报销单完成回调:{}", JSONObject.toJSONString(map));
|
|
|
@@ -199,6 +203,19 @@ public class SikuController {
|
|
|
return sikuService.ddProject(map);
|
|
|
}
|
|
|
|
|
|
+// 宜搭项目同步每刻
|
|
|
+ @PostMapping("/saveProjecData")
|
|
|
+ public McR saveProjectReferenceData(@RequestBody Map map){
|
|
|
+ return sikuService.saveProjecData(map);
|
|
|
+ }
|
|
|
+
|
|
|
+// 计算供应商主数据平均分
|
|
|
+ @PostMapping("/caculateScore")
|
|
|
+ public McR caculateScore(@RequestBody Map map){
|
|
|
+ return sikuService.caculateScore(map);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@GetMapping("/files/{fileId}")
|
|
|
public ResponseEntity<Resource> getFileResource(
|
|
|
@PathVariable String fileId,
|