Merge branch 'master' of http://121.40.234.130:8899/root/lanzhouhailiang_one
This commit is contained in:
@@ -44,6 +44,7 @@ public class PrintServiceImpl implements PrintService {
|
||||
@Override
|
||||
public JSONObject customerPrint(JSONObject whereJson) {
|
||||
JSONObject jo = new JSONObject();
|
||||
WQLObject printTab = WQLObject.getWQLObject("pdm_bi_printinfo");
|
||||
|
||||
String box_no = whereJson.getString("box_no");
|
||||
|
||||
@@ -90,7 +91,9 @@ public class PrintServiceImpl implements PrintService {
|
||||
}
|
||||
|
||||
// 生成txt文件
|
||||
String filePath = "//10.1.3.21" + "/LMSPrinter/" + "外包标签.txt";
|
||||
JSONObject jsonPrint = printTab.query("print_id = '" + whereJson.getString("print_id") + "'").uniqueResult(0);
|
||||
//10.1.3.21/LMSPrinter/
|
||||
String filePath = jsonPrint.getString("print_route")+ "外包标签.txt";
|
||||
FileWriter fw = null;
|
||||
try {
|
||||
File file = new File(filePath);
|
||||
|
||||
@@ -2169,7 +2169,6 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
|
||||
int shd_dtl_num = jsonCust.getIntValue("shd_dtl_num"); // 送货单明细数
|
||||
|
||||
|
||||
if (shd_dtl_num > dtlArr.size()) {
|
||||
ArrayList<HashMap<String, Object>> flData = new ArrayList<>();
|
||||
WriteSheet sheet = EasyExcel.writerSheet().build();
|
||||
@@ -2193,14 +2192,13 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
double ceil = Math.ceil(div);
|
||||
Integer integer = Integer.valueOf(String.valueOf(NumberUtil.round(ceil, 0)));
|
||||
|
||||
|
||||
HashMap<String, Object> mapFL = new HashMap<>();
|
||||
ArrayList<HashMap<String, Object>> flData = new ArrayList<>();
|
||||
for (int i = j * shd_dtl_num; i < (j + 1) * shd_dtl_num; i++) {
|
||||
if (i == dtlArr.size()) {
|
||||
break;
|
||||
}
|
||||
JSONObject json = dtlArr.getJSONObject(i);
|
||||
HashMap<String, Object> mapFL = new HashMap<>();
|
||||
mapFL.put("index", i + 1);
|
||||
mapFL.put("source_bill_code", json.getString("source_bill_code"));
|
||||
mapFL.put("material_name", json.getString("material_name"));
|
||||
@@ -2210,22 +2208,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
flData.add(mapFL);
|
||||
|
||||
}
|
||||
|
||||
WriteSheet sheet = EasyExcel.writerSheet(0).build();
|
||||
workBook.fill(oneMap, sheet);
|
||||
workBook.fill(new FillWrapper("data", flData), sheet);
|
||||
|
||||
workBook.finish();
|
||||
}
|
||||
workBook.finish();
|
||||
// workBook.fill(oneMap, sheet);
|
||||
// workBook.fill(ylData, sheet);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
double ceil = Math.ceil(2.2);
|
||||
Integer integer = Integer.valueOf(String.valueOf(NumberUtil.round(ceil, 0)));
|
||||
System.out.println(integer);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user