|
@@ -122,6 +122,7 @@ public class ES0013Service extends ES0013BaseModel implements ExecProcessFlow {
|
|
if(fileName.isEmpty()) continue;
|
|
if(fileName.isEmpty()) continue;
|
|
fileName = fileName + epcList.get(i).getSer().toString();
|
|
fileName = fileName + epcList.get(i).getSer().toString();
|
|
String comId = epcList.get(i).getComId();
|
|
String comId = epcList.get(i).getComId();
|
|
|
|
+ String pcId = epcList.get(i).getPcId();
|
|
List<String> lines = Files.readAllLines(Paths.get(XIFileUtils.getRootPathStr()+"/es/"+pid+"/Calculate/"+fileName));
|
|
List<String> lines = Files.readAllLines(Paths.get(XIFileUtils.getRootPathStr()+"/es/"+pid+"/Calculate/"+fileName));
|
|
List<List<String>> data = lines.stream()
|
|
List<List<String>> data = lines.stream()
|
|
.filter(line -> !line.trim().isEmpty()) // 跳过空行
|
|
.filter(line -> !line.trim().isEmpty()) // 跳过空行
|
|
@@ -135,10 +136,10 @@ public class ES0013Service extends ES0013BaseModel implements ExecProcessFlow {
|
|
for(int j=0;j<data.size();j++){
|
|
for(int j=0;j<data.size();j++){
|
|
for(int k=0;k<data.get(j).size();k++){
|
|
for(int k=0;k<data.get(j).size();k++){
|
|
if(j==1){
|
|
if(j==1){
|
|
- String pcrId = insertIntoTbKey(data.get(j-1).get(k),data.get(j).get(k),jobId,comId);
|
|
|
|
|
|
+ String pcrId = insertIntoTbKey(data.get(j-1).get(k),data.get(j).get(k),jobId,comId,pcId);
|
|
keyList.add(pcrId);
|
|
keyList.add(pcrId);
|
|
}else if(j>1){
|
|
}else if(j>1){
|
|
- insertIntoTbValue(new BigDecimal(data.get(j).get(k)),jobId,Integer.valueOf(step),comId,keyList.get(k));
|
|
|
|
|
|
+ insertIntoTbValue(new BigDecimal(data.get(j).get(k)),jobId,Integer.valueOf(step),comId,keyList.get(k),pcId);
|
|
++step;
|
|
++step;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -147,13 +148,14 @@ public class ES0013Service extends ES0013BaseModel implements ExecProcessFlow {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- private void insertIntoTbValue(BigDecimal value,String job_id,Integer step,String comId,String pcrId) throws Exception{
|
|
|
|
|
|
+ private void insertIntoTbValue(BigDecimal value,String job_id,Integer step,String comId,String pcrId,String pcId) throws Exception{
|
|
EsProResultValueMapper eprvMapper = UtilTools.getBean(EsProResultValueMapper.class);
|
|
EsProResultValueMapper eprvMapper = UtilTools.getBean(EsProResultValueMapper.class);
|
|
EsProResultValue eprv = new EsProResultValue();
|
|
EsProResultValue eprv = new EsProResultValue();
|
|
eprv.setPcrvId(UtilTools.getUUid());
|
|
eprv.setPcrvId(UtilTools.getUUid());
|
|
eprv.setPcrId(pcrId);
|
|
eprv.setPcrId(pcrId);
|
|
eprv.setPid(this.getA_es0013().getPid());
|
|
eprv.setPid(this.getA_es0013().getPid());
|
|
eprv.setComId(comId);
|
|
eprv.setComId(comId);
|
|
|
|
+ eprv.setPcId(pcId);
|
|
eprv.setJobId(job_id);
|
|
eprv.setJobId(job_id);
|
|
eprv.setValue(value);
|
|
eprv.setValue(value);
|
|
eprv.setUid(this.getA_eshead().getUserId());
|
|
eprv.setUid(this.getA_eshead().getUserId());
|
|
@@ -164,13 +166,14 @@ public class ES0013Service extends ES0013BaseModel implements ExecProcessFlow {
|
|
eprvMapper.insert(eprv);
|
|
eprvMapper.insert(eprv);
|
|
}
|
|
}
|
|
|
|
|
|
- private String insertIntoTbKey(String key_en,String key_zh,String jobId,String comId) throws Exception{
|
|
|
|
|
|
+ private String insertIntoTbKey(String key_en,String key_zh,String jobId,String comId,String pcId) throws Exception{
|
|
EsProResultKeyMapper eprkMapper = UtilTools.getBean(EsProResultKeyMapper.class);
|
|
EsProResultKeyMapper eprkMapper = UtilTools.getBean(EsProResultKeyMapper.class);
|
|
EsProResultKey eprk = new EsProResultKey();
|
|
EsProResultKey eprk = new EsProResultKey();
|
|
String pcrId = UtilTools.getUUid();
|
|
String pcrId = UtilTools.getUUid();
|
|
eprk.setPcrId(pcrId);
|
|
eprk.setPcrId(pcrId);
|
|
eprk.setPid(this.getA_es0013().getPid());
|
|
eprk.setPid(this.getA_es0013().getPid());
|
|
eprk.setComId(comId);
|
|
eprk.setComId(comId);
|
|
|
|
+ eprk.setPcId(pcId);
|
|
eprk.setJobId(jobId);
|
|
eprk.setJobId(jobId);
|
|
eprk.setKeyEn(key_en);
|
|
eprk.setKeyEn(key_en);
|
|
eprk.setKeyZh(key_zh);
|
|
eprk.setKeyZh(key_zh);
|