Browse Source

完善电度计算方式

hfxc226 2 years ago
parent
commit
4a4abcc26d

+ 1 - 0
platform-common/src/main/java/com/platform/common/util/DateUtils.java

@@ -277,6 +277,7 @@ public class DateUtils {
         return dateToString(localDateTime, PATTERN_YMD_HMS);
     }
 
+
     /**
      * 字符串转LocalDateTime
      *

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

@@ -269,7 +269,7 @@ public class YongyouServiceImpl implements YongyouService {
         otherOutMain.setCvouchtype("09");
         otherOutMain.setCbustype("其他出库");
         otherOutMain.setCwhcode(outStoreFormVO.getStoreId());
-        otherOutMain.setDdate(DateUtils.dateToString(LocalDateTime.now()));
+        otherOutMain.setDdate(DateUtils.dateToString(outStoreFormVO.getUserTime(), DateUtils.PATTERN_YMD_HMS));
         otherOutMain.setVt_id("85");
         otherOutMain.setBisstqc(false);
         otherOutMain.setCcode("0000000006");