| | |
| | | import com.ld.igds.check.dto.CheckItemData; |
| | | import com.ld.igds.check.service.CoreCheckStandardService; |
| | | import com.ld.igds.common.CoreCommonService; |
| | | import com.ld.igds.common.bar.BarCodeUtils; |
| | | import com.ld.igds.constant.FoodVariety; |
| | | import com.ld.igds.inout.InoutBill; |
| | | import com.ld.igds.inout.InoutConstant; |
| | | import com.ld.igds.inout.dto.InoutData; |
| | | import com.ld.igds.inout.dto.InoutRecordItemData; |
| | | import com.ld.igds.inout.dto.InoutRecordItemParam; |
| | | import com.ld.igds.inout.dto.WeightBill; |
| | | import com.ld.igds.inout.dto.*; |
| | | import com.ld.igds.inout.service.InoutRecordItemService; |
| | | import com.ld.igds.m.dto.NoticeDto; |
| | | import com.ld.igds.m.service.HInoutNoticeService; |
| | |
| | | return htmlStr; |
| | | } |
| | | |
| | | /** |
| | | * 打印扦样单,直接返回条形码Base64图片 |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String simpleBill(InoutCheckData data) { |
| | | |
| | | if (null == data.getId()) return null; |
| | | if (null == data.getCheckId()) return null; |
| | | |
| | | if (null == data.getCheckTime()) { |
| | | data.setCheckTime(new Date()); |
| | | } |
| | | |
| | | String imgBase64 = BarCodeUtils.getBarCodeImageBase64(data.getId(), data.getCheckId(), "粮库扦样单条码", DateFormatUtils.format(data.getCheckTime(), "yyyy-MM-dd HH:mm")); |
| | | |
| | | return imgBase64; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | List<String> result = new ArrayList<>(); |
| | | result.add("1"); |
| | |
| | | List<String> strings3 = result.subList(6, 8); |
| | | System.out.println(strings3); |
| | | } |
| | | |
| | | |
| | | } |