Commit f38f15c906d8c38fad07cb593d2414419ca132f6
1 parent
f110d51d
update...
Showing
1 changed file
with
4 additions
and
1 deletions
src/main/java/com/bsth/server_ws/waybill/LD_ServiceSoap.java
| ... | ... | @@ -49,7 +49,8 @@ public class LD_ServiceSoap implements LD_Service, ApplicationContextAware { |
| 49 | 49 | |
| 50 | 50 | Logger logger = LoggerFactory.getLogger(this.getClass()); |
| 51 | 51 | |
| 52 | - private static DateTimeFormatter fmtyyyyMMddHHmm = DateTimeFormat.forPattern("yyyy-MM-ddHH:mm"); | |
| 52 | + private static DateTimeFormatter fmtyyyyMMddHHmm = DateTimeFormat.forPattern("yyyy-MM-ddHH:mm"), | |
| 53 | + fmtyyyyMMdd = DateTimeFormat.forPattern("yyyy-MM-dd"); | |
| 53 | 54 | |
| 54 | 55 | @Override |
| 55 | 56 | public boolean waybill_NH(String password, String rq, String companyId, Holder<NH_waybill[]> result, Holder<String> fError) { |
| ... | ... | @@ -58,6 +59,8 @@ public class LD_ServiceSoap implements LD_Service, ApplicationContextAware { |
| 58 | 59 | fError.value = "无效的密码!"; |
| 59 | 60 | return false; |
| 60 | 61 | } |
| 62 | + //日期减一天,老接口是这样的 | |
| 63 | + rq = fmtyyyyMMdd.print(fmtyyyyMMdd.parseDateTime(rq).minusDays(1)); | |
| 61 | 64 | |
| 62 | 65 | //实际排班 |
| 63 | 66 | ArrayListMultimap<String, ScheduleRealInfo> listMap = scheduleRedisService.findByDateAndGroupByNbbm_bingxing(rq, companyId); | ... | ... |