|
@@ -121,6 +121,8 @@ public class StepWorkServiceImpl implements StepWorkService {
|
|
|
String paramName = Objects.toString(testDataMap.get("paramName"),"");
|
|
String paramName = Objects.toString(testDataMap.get("paramName"),"");
|
|
|
String duration = Objects.toString(testDataMap.get("duration"),"");
|
|
String duration = Objects.toString(testDataMap.get("duration"),"");
|
|
|
String description = Objects.toString(testDataMap.get("description"),"");
|
|
String description = Objects.toString(testDataMap.get("description"),"");
|
|
|
|
|
+ String wifiBandwidth = Objects.toString(testDataMap.get("wifiBandwidth"),""); //频段带宽
|
|
|
|
|
+ String channel = Objects.toString(testDataMap.get("channel"),""); //信道
|
|
|
|
|
|
|
|
if(!baseDao.checkIf("prodtestparam,make","pp_prodcode=ma_prodcode AND ma_code='"+WO+"' AND pp_stepcode='"+routeCode+"' AND pp_paramname='"+paramName+"'")){
|
|
if(!baseDao.checkIf("prodtestparam,make","pp_prodcode=ma_prodcode AND ma_code='"+WO+"' AND pp_stepcode='"+routeCode+"' AND pp_paramname='"+paramName+"'")){
|
|
|
return new StepWorkApiResult(false,500,"工单:"+WO+"测试参数列表,测试项目中参数名称无"+ paramName);
|
|
return new StepWorkApiResult(false,500,"工单:"+WO+"测试参数列表,测试项目中参数名称无"+ paramName);
|
|
@@ -128,37 +130,36 @@ public class StepWorkServiceImpl implements StepWorkService {
|
|
|
|
|
|
|
|
String sql = "INSERT INTO steptestdatadet( sdd_id, sdd_detno, sdd_sdid, sdd_sncode, sdd_makecode, " +
|
|
String sql = "INSERT INTO steptestdatadet( sdd_id, sdd_detno, sdd_sdid, sdd_sncode, sdd_makecode, " +
|
|
|
"sdd_resultdesc, sdd_testitem, sdd_pmenxdesc, sdd_result, sdd_paramname, " +
|
|
"sdd_resultdesc, sdd_testitem, sdd_pmenxdesc, sdd_result, sdd_paramname, " +
|
|
|
- "sdd_testtime, sdd_value, sdd_okmin, sdd_okmax) " +
|
|
|
|
|
|
|
+ "sdd_testtime, sdd_value, sdd_okmin, sdd_okmax,sdd_wifiBandwidth,sdd_channel,sdd_unit) " +
|
|
|
"SELECT steptestdatadet_seq.NEXTVAL, pp_detno, '"+sdId+"', '"+SN+"', ma_code, " +
|
|
"SELECT steptestdatadet_seq.NEXTVAL, pp_detno, '"+sdId+"', '"+SN+"', ma_code, " +
|
|
|
"'"+description+"', pp_testitem, pp_menxdesc, '"+result+"', pp_paramname, " +
|
|
"'"+description+"', pp_testitem, pp_menxdesc, '"+result+"', pp_paramname, " +
|
|
|
- "pp_testtimes, '"+actualValue+"', pp_okmin, pp_okmax " +
|
|
|
|
|
- "FROM prodtestparam, make WHERE pp_prodcode = ma_prodcode " +
|
|
|
|
|
- "AND ma_code = '"+WO+"' AND pp_stepcode = '"+routeCode+"' AND pp_paramname = '"+paramName+"'";
|
|
|
|
|
|
|
+ " pp_testtimes, '"+actualValue+"', pp_okmin, pp_okmax,'" +wifiBandwidth+"','"+channel+"',pp_unit "+
|
|
|
|
|
+ " FROM prodtestparam, make WHERE pp_prodcode = ma_prodcode " +
|
|
|
|
|
+ " AND ma_code = '"+WO+"' AND pp_stepcode = '"+routeCode+"' AND pp_paramname = '"+paramName+"'";
|
|
|
baseDao.execute(sql);
|
|
baseDao.execute(sql);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
baseDao.execute("INSERT INTO steptestdata(sd_id, sd_sn, sd_makecode, sd_sccode, " +
|
|
baseDao.execute("INSERT INTO steptestdata(sd_id, sd_sn, sd_makecode, sd_sccode, " +
|
|
|
"sd_stepcode, sd_result, sd_indate, sd_recorddate) " +
|
|
"sd_stepcode, sd_result, sd_indate, sd_recorddate) " +
|
|
|
"SELECT "+sdId+", '"+SN+"', '"+WO+"', sc_stepcode, " +
|
|
"SELECT "+sdId+", '"+SN+"', '"+WO+"', sc_stepcode, " +
|
|
|
"'"+routeCode+"', '"+eventResult+"', sysdate, sysdate FROM source WHERE sc_code = '"+stationCode+"'");
|
|
"'"+routeCode+"', '"+eventResult+"', sysdate, sysdate FROM source WHERE sc_code = '"+stationCode+"'");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- List<String> list = baseDao.callProcedureWithOut("CS_CHECKSTEPSNANDMACODE", new Object[]{
|
|
|
|
|
|
|
+ /* List<String> list = baseDao.callProcedureWithOut("CS_CHECKSTEPSNANDMACODE", new Object[]{
|
|
|
WO, stationCode,SN,""
|
|
WO, stationCode,SN,""
|
|
|
}, new Integer[]{1, 2, 3, 4}, new Integer[]{5, 6, 7});
|
|
}, new Integer[]{1, 2, 3, 4}, new Integer[]{5, 6, 7});
|
|
|
String msg = Objects.toString(list.get(2),"");
|
|
String msg = Objects.toString(list.get(2),"");
|
|
|
if(!msg.isEmpty()){
|
|
if(!msg.isEmpty()){
|
|
|
return new StepWorkApiResult(false,500,"过站前核对失败:"+msg);
|
|
return new StepWorkApiResult(false,500,"过站前核对失败:"+msg);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- stepPassed(WO, stationCode, SN, "", "OK");
|
|
|
|
|
|
|
+ stepPassed(WO, stationCode, SN, "", "OK");*/
|
|
|
|
|
|
|
|
}catch (Exception ex){
|
|
}catch (Exception ex){
|
|
|
|
|
+ ex.printStackTrace();
|
|
|
return new StepWorkApiResult(false,500,"记录失败:" + ex.getMessage());
|
|
return new StepWorkApiResult(false,500,"记录失败:" + ex.getMessage());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- insertLogger(data,"UploadThruputLog");
|
|
|
|
|
|
|
+ // insertLogger(data,"UploadThruputLog");
|
|
|
return new StepWorkApiResult(true,200,"上传MES测试信息成功");
|
|
return new StepWorkApiResult(true,200,"上传MES测试信息成功");
|
|
|
}
|
|
}
|
|
|
|
|
|