Commit 742336c9171b36155c2ddd21e45f8fd71b109153

Authored by liquanyu
1 parent 83523431a2

update code

Showing 1 changed file with 2 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyFmService.java View file @ 742336c
... ... @@ -44,10 +44,9 @@
44 44 @Autowired
45 45 private UsersService usersService;
46 46  
47   - public void fmTimerWork() throws Exception {
  47 + public void fmTimerWork() {
48 48 SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm");
49   - Date str = fmt.parse("2017-01-10 00:00");
50   - Date end = new Date(str.getTime());
  49 + Date end = new Date();
51 50 Date start = new Date(end.getTime()-1000*60*60*24*6);
52 51 String startStr = fmt.format(start);
53 52 String endStr = fmt.format(end);