Commit 557fe721 by 吴迪

【新增】修改文件

parent 2ecea2e4
...@@ -109,7 +109,8 @@ public class GTINController { ...@@ -109,7 +109,8 @@ public class GTINController {
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} finally { } finally {
printWriter.flush();; printWriter.flush();
;
printWriter.close(); printWriter.close();
} }
...@@ -136,10 +137,10 @@ public class GTINController { ...@@ -136,10 +137,10 @@ public class GTINController {
SearchgtinlogEntity searchgtinlogEntity = new SearchgtinlogEntity(); SearchgtinlogEntity searchgtinlogEntity = new SearchgtinlogEntity();
searchgtinlogEntity.setCreatedate(new Date()); searchgtinlogEntity.setCreatedate(new Date());
searchgtinlogEntity.setIp(IPUtils.getIpAddr(request)); searchgtinlogEntity.setIp(IPUtils.getIpAddr(request));
if(glnRequestBo.getCode().length()<13) { if (glnRequestBo.getCode().length() < 13) {
R r = new R(); R r = new R();
r.put("code", "500"); r.put("code", "500");
r.put("msg", "GTIN不能少于12位!"); r.put("msg", "商品条码不能少于13位!");
printWriter.write(JSONUtil.toJsonStr(r)); printWriter.write(JSONUtil.toJsonStr(r));
return; return;
} }
...@@ -171,13 +172,12 @@ public class GTINController { ...@@ -171,13 +172,12 @@ public class GTINController {
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} finally { } finally {
printWriter.flush();; printWriter.flush();
;
printWriter.close(); printWriter.close();
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment