Commit 5fa49347b81437026ddd2be775aa728f86e9641b
1 parent
12490e92
1.新增获取当天排班中变更过的排班数据接口
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/bsth/server_rs/schedule/real/ScheduleRealService.java
| ... | ... | @@ -212,10 +212,11 @@ public class ScheduleRealService { |
| 212 | 212 | @GET |
| 213 | 213 | @Path("/sch_jk4modify/{company}/{rq}") |
| 214 | 214 | public List<ScheduleRealInfoDTO_JK> sch_jk4modify(@PathParam("company") String company, @PathParam("rq") String rq) { |
| 215 | + long now = System.currentTimeMillis(); | |
| 215 | 216 | DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyyMMdd"); |
| 216 | 217 | DateTime dateTime = fmt.parseDateTime(rq); |
| 217 | 218 | List<ScheduleRealInfoDTO_JK> result = ScheduleRealInfoDTO_JK.getMultiInstance(scheduleRealInfoRepository.findByDateAndCompany(dateTime.toString("yyyy-MM-dd"), company, new Date(timestamp))); |
| 218 | - timestamp = System.currentTimeMillis(); | |
| 219 | + timestamp = now; | |
| 219 | 220 | |
| 220 | 221 | return result; |
| 221 | 222 | } | ... | ... |