完善日志信息
This commit is contained in:
parent
c49ed5cea5
commit
36c9e0d386
@ -82,6 +82,7 @@ public class QcSourceServiceImpl implements QcSourceService {
|
|||||||
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "不存在该检验项目,请先添加检验项目!", locale);
|
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "不存在该检验项目,请先添加检验项目!", locale);
|
||||||
}
|
}
|
||||||
if (Constant.QC_ITEM_TYPE_STRING.equals(qcItemByNo.get().getQcItemType())) {
|
if (Constant.QC_ITEM_TYPE_STRING.equals(qcItemByNo.get().getQcItemType())) {
|
||||||
|
System.out.println("添加检验数据(文本类型)" + insertQo.toString());
|
||||||
QcSourceEntity entity = new QcSourceEntity();
|
QcSourceEntity entity = new QcSourceEntity();
|
||||||
entity.setCreateTime(LocalDateUtils.getCurrentSecond());
|
entity.setCreateTime(LocalDateUtils.getCurrentSecond());
|
||||||
entity.setBatchNo(LocalStringUtils.formatEmptyValue(batchNo));
|
entity.setBatchNo(LocalStringUtils.formatEmptyValue(batchNo));
|
||||||
@ -96,6 +97,7 @@ public class QcSourceServiceImpl implements QcSourceService {
|
|||||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功!", locale);
|
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功!", locale);
|
||||||
}
|
}
|
||||||
if (Constant.QC_ITEM_TYPE_PICTURE.equals(qcItemByNo.get().getQcItemType())) {
|
if (Constant.QC_ITEM_TYPE_PICTURE.equals(qcItemByNo.get().getQcItemType())) {
|
||||||
|
System.out.println("添加检验数据(图片类型)" + insertQo.toString());
|
||||||
if (picture == null) {
|
if (picture == null) {
|
||||||
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "上传图片不能为空!", locale);
|
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "上传图片不能为空!", locale);
|
||||||
}
|
}
|
||||||
@ -119,6 +121,7 @@ public class QcSourceServiceImpl implements QcSourceService {
|
|||||||
qcSourceDao.save(entity);
|
qcSourceDao.save(entity);
|
||||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功!", locale);
|
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功!", locale);
|
||||||
}
|
}
|
||||||
|
System.out.println("添加检验数据(未知类型)" + insertQo.toString());
|
||||||
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "添加失败!", locale);
|
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "添加失败!", locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -185,9 +188,6 @@ public class QcSourceServiceImpl implements QcSourceService {
|
|||||||
String craftItemNo = (String) source.getOrDefault("craftItemNo", "");
|
String craftItemNo = (String) source.getOrDefault("craftItemNo", "");
|
||||||
String qcItemNo = (String) source.getOrDefault("qcItemNo", "");
|
String qcItemNo = (String) source.getOrDefault("qcItemNo", "");
|
||||||
String qcValue = (String) source.getOrDefault("qcValue", "");
|
String qcValue = (String) source.getOrDefault("qcValue", "");
|
||||||
if (TextUtils.isEmpty(qcItemNo) || TextUtils.isEmpty(qcValue)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
String formatValue = getFormatValue(varietyNo, craftItemNo, qcItemNo, qcValue);
|
String formatValue = getFormatValue(varietyNo, craftItemNo, qcItemNo, qcValue);
|
||||||
Map<String, Object> emptyRoom = findEmptyRoom(resultList, qcItemNo, batchNo, machineNo, materialNo, mouldNo, varietyNo, craftItemNo);
|
Map<String, Object> emptyRoom = findEmptyRoom(resultList, qcItemNo, batchNo, machineNo, materialNo, mouldNo, varietyNo, craftItemNo);
|
||||||
if (emptyRoom == null) {
|
if (emptyRoom == null) {
|
||||||
@ -235,9 +235,10 @@ public class QcSourceServiceImpl implements QcSourceService {
|
|||||||
try {
|
try {
|
||||||
return Double.parseDouble(stringValue);
|
return Double.parseDouble(stringValue);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
return -100_000D;
|
// return -100_000D;
|
||||||
}
|
}
|
||||||
|
return -100_000D;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user