1 anno fa
parent
commit
31350c4d40

+ 2 - 2
platform-rest/src/main/java/com/platform/rest/controller/yongyou/YongyouController.java

@@ -74,8 +74,8 @@ public class YongyouController {
     }
 
     @SysLog("新增物料发起")
-    @PostMapping("/add/spare")
-    public R addSpare(@RequestBody Inventory inventory,@RequestParam Integer tokenType) {
+    @PostMapping("/add/spare/{tokenType}")
+    public R addSpare(@RequestBody Inventory inventory,@PathVariable Integer tokenType) {
 //        yongyouService.addOutForm(id, false);
         return new R<>(yongyouService.addSpare(inventory,tokenType));
     }

+ 4 - 2
platform-service/src/main/java/com/platform/service/yongyou/impl/YongyouServiceImpl.java

@@ -458,8 +458,10 @@ public class YongyouServiceImpl implements YongyouService {
             detail.setCinvcode(orderVO.getNo());
             detail.setIpertaxrate("税率");
             detail.setFquantity(orderVO.getNum().intValue());
-            detail.setDrequirdate("需求日期");
-            detail.setDarrivedate("计划到货日期");
+            detail.setDrequirdate(DateUtils.dateToString(LocalDateTime.now()));
+//            detail.setDrequirdate("需求日期");
+            detail.setDarrivedate(DateUtils.dateToString(LocalDateTime.now()));
+//            detail.setDarrivedate("计划到货日期");
             detail.setCexch_name("币种");
             detail.setIexchrate("汇率");
             detail.setIvouchrowno("行号");