|
|
@@ -53,7 +53,7 @@ public class NCServiceImpl implements NCService {
|
|
|
@Value("${dingtalk.agentId}")
|
|
|
private Long agentId;
|
|
|
// 获取当前日期
|
|
|
- LocalDate lastMonth = LocalDate.now().minusMonths(1);
|
|
|
+ LocalDate lastMonth = LocalDate.now(ZoneId.of("Asia/Shanghai")).minusMonths(1);
|
|
|
//本月
|
|
|
// LocalDate lastMonth = LocalDate.now();
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
@@ -635,15 +635,15 @@ public class NCServiceImpl implements NCService {
|
|
|
public void getSupplierPay() {
|
|
|
// 获取当前年
|
|
|
int year = lastMonth.getYear();
|
|
|
- for (int i = 1; i <= lastMonth.getMonthValue(); i++) {
|
|
|
- String month = String.format("%02d",i) ;
|
|
|
- deleteMonthDate("FORM-09CDC75CDC6048379567EC87ED6CE7B6T8PP","textField_m0g4itw4", String.valueOf(year),month);
|
|
|
- try {
|
|
|
- Thread.sleep(5000);
|
|
|
- } catch (InterruptedException e) {
|
|
|
- throw new RuntimeException(e);
|
|
|
- }
|
|
|
- }
|
|
|
+ deleteMonthDate("FORM-09CDC75CDC6048379567EC87ED6CE7B6T8PP","textField_m0g4itw4", String.valueOf(year),null);
|
|
|
+// for (int i = 1; i <= lastMonth.getMonthValue(); i++) {
|
|
|
+// String month = String.format("%02d",i) ;
|
|
|
+// try {
|
|
|
+// Thread.sleep(5000);
|
|
|
+// } catch (InterruptedException e) {
|
|
|
+// throw new RuntimeException(e);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
LocalDate firstDayOfYear = LocalDate.of(year, 1, 1);
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|