/* * 打印成功后更新是否打印标识、打印日期、打印次数 * 打印标识更新后,数据一直保留 * add by gaof 20150527 */ @Override public void updateIsPrint(IFWUserInfo userInfo, String[] IDList) { try { for (int i = 0; i < IDList.length; i++) { Buldbarcode buldbarcode = new Buldbarcode(); Buldbarcode buldbarcode1 = new Buldbarcode(); buldbarcode = getBuldbarcodeByID(userInfo, IDList[i]); int pcount = buldbarcode.getPcount(); buldbarcode1.setPcount(pcount + 1); buldbarcode1.setPrintdate(PublicMethod.now()); buldbarcode1.setGuid(IDList[i]); updateBuldbarcodes(userInfo, buldbarcode1); } } catch (Exception e) { throw new BusinessException(e.getMessage()); } }