代码更新
This commit is contained in:
@@ -93,5 +93,9 @@ public class ProduceshiftorderDto implements Serializable {
|
||||
|
||||
private String children;
|
||||
|
||||
private String alloy;
|
||||
|
||||
private String temper;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -217,4 +217,19 @@ public class ProduceshiftorderdetailDto implements Serializable {
|
||||
|
||||
/** 模板id */
|
||||
private String template_id;
|
||||
|
||||
/** 执行标准 */
|
||||
private String standard;
|
||||
|
||||
/** 批号 */
|
||||
private String batch;
|
||||
|
||||
/** 生产日期 */
|
||||
private String prod_date;
|
||||
|
||||
/** 检验员 */
|
||||
private String inspector;
|
||||
|
||||
/** 米克重 */
|
||||
private String mg_weight;
|
||||
}
|
||||
|
||||
@@ -213,6 +213,8 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService, A
|
||||
String material_spec = MapUtil.getStr(whereJson, "material_spec");
|
||||
String outer_diameter = MapUtil.getStr(whereJson, "outer_diameter");
|
||||
String wall_thickness = MapUtil.getStr(whereJson, "wall_thickness");
|
||||
String alloy = MapUtil.getStr(whereJson, "alloy");
|
||||
String temper = MapUtil.getStr(whereJson, "temper");
|
||||
String length = MapUtil.getStr(whereJson, "length");
|
||||
|
||||
String qty = MapUtil.getStr(whereJson, "qty");
|
||||
@@ -246,6 +248,8 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService, A
|
||||
orderDto.setIs_strapping("1");
|
||||
orderDto.setIs_unbundling("1");
|
||||
orderDto.setFeeding_mouth("3");
|
||||
orderDto.setAlloy(alloy);
|
||||
orderDto.setTemper(temper);
|
||||
for(int i=0; i<tableData.size(); i++){
|
||||
JSONObject jsonObject = tableData.getJSONObject(i);
|
||||
ProduceshiftorderdetailDto detaildto = JSON.toJavaObject(jsonObject,ProduceshiftorderdetailDto.class);
|
||||
@@ -892,9 +896,17 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService, A
|
||||
|
||||
// 4.将主表当中的属性填充到excel当中
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put("material_name",jsonMst.getString("material_code"));
|
||||
map.put("qty",jsonMst.getString("qty"));
|
||||
map.put("tttt",jsonMst.getString("qty"));
|
||||
map.put("alloy",whereJson.getString("alloy"));
|
||||
map.put("temper",whereJson.getString("temper"));
|
||||
map.put("material_spec",whereJson.getString("material_spec"));
|
||||
map.put("number",whereJson.getString("number"));
|
||||
map.put("outer_diameter",whereJson.getString("outer_diameter"));
|
||||
map.put("standard",whereJson.getString("standard"));
|
||||
map.put("batch",whereJson.getString("batch"));
|
||||
map.put("prod_date",whereJson.getString("prod_date"));
|
||||
map.put("present_strap_pack_number",whereJson.getString("present_strap_pack_number"));
|
||||
map.put("inspector",whereJson.getString("inspector"));
|
||||
map.put("mg_weight",whereJson.getString("mg_weight"));
|
||||
workBook.fill(map, sheet);
|
||||
workBook.finish();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user