|
@@ -202,8 +202,10 @@ public class TMeasureRecordController extends BaseController {
|
|
|
if (j == 0) {
|
|
|
entity.setMeasureId(cellValue);
|
|
|
} else if (j == 1) {
|
|
|
- entity.setMeasureValue(Double.parseDouble(cellValue));
|
|
|
+ entity.setMeasureId(entity.getMeasureId() + "," + cellValue);
|
|
|
} else if (j == 2) {
|
|
|
+ entity.setMeasureValue(Double.parseDouble(cellValue));
|
|
|
+ } else if (j == 3) {
|
|
|
entity.setMeasureDate(sdf.parse(cellValue));
|
|
|
}
|
|
|
}
|
|
@@ -218,13 +220,13 @@ public class TMeasureRecordController extends BaseController {
|
|
|
}
|
|
|
int successNumber = 0;
|
|
|
int failNum = 0;
|
|
|
- for (TMeasureRecord t : list
|
|
|
- ) {
|
|
|
+ for (TMeasureRecord t : list) {
|
|
|
failNum++;
|
|
|
try {
|
|
|
//保存测厚记录
|
|
|
String measureId = t.getMeasureId();
|
|
|
- Long id = this.tMeasureThicknessService.selectByTagNo(measureId);
|
|
|
+ String[] split = measureId.split(",");
|
|
|
+ Long id = this.tMeasureThicknessService.selectByTagNo(split[0], split[1]);
|
|
|
t.setMeasureId(id + "");
|
|
|
this.tMeasureRecordService.insertTMeasureRecord(t);
|
|
|
this.updateMeasure(id + "");
|