fix small warning

master
yixian 8 years ago
parent b948b326d5
commit be4ee2a735

@ -403,6 +403,7 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
@Override @Override
public List<JSONObject> getXlsx(Date dt, String bank) throws IOException { public List<JSONObject> getXlsx(Date dt, String bank) throws IOException {
List<JSONObject> logs = clearingLogMapper.findByDate(dt); List<JSONObject> logs = clearingLogMapper.findByDate(dt);
logs = logs.stream().filter(log -> log.getBooleanValue("editable")).collect(Collectors.toList());
if (logs.isEmpty()) { if (logs.isEmpty()) {
throw new NotFoundException(); throw new NotFoundException();
} }
@ -433,6 +434,7 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
@Override @Override
public List<ABAFile> getAba(Date dt, String bank) { public List<ABAFile> getAba(Date dt, String bank) {
List<JSONObject> logs = clearingLogMapper.findByDate(dt); List<JSONObject> logs = clearingLogMapper.findByDate(dt);
logs = logs.stream().filter(log -> log.getBooleanValue("editable")).collect(Collectors.toList());
if (logs.isEmpty()) { if (logs.isEmpty()) {
throw new NotFoundException(); throw new NotFoundException();
} }

@ -239,6 +239,7 @@ public class SignInController {
String statusKey = signInStatusManager.addVerifyCode(capText); String statusKey = signInStatusManager.addVerifyCode(capText);
HttpUtils.setCookie(response, CommonConsts.CODE_KEY, statusKey); HttpUtils.setCookie(response, CommonConsts.CODE_KEY, statusKey);
HttpUtils.setCookie(response, "code_expire_time", (System.currentTimeMillis() + 150_000) + "", false);
BufferedImage bi = captchaProducer.createImage(capText); BufferedImage bi = captchaProducer.createImage(capText);
ServletOutputStream out = response.getOutputStream(); ServletOutputStream out = response.getOutputStream();

Loading…
Cancel
Save