格式化检验数据创建时间
This commit is contained in:
@ -27,4 +27,8 @@ public interface QcSourceService {
|
||||
*/
|
||||
String exportExcel(ExportSourceExcelQo exportSourceExcelQo) throws Exception;
|
||||
|
||||
/**
|
||||
* 格式化创建时间历史数据
|
||||
*/
|
||||
String formatCreateTime();
|
||||
}
|
||||
|
@ -84,7 +84,9 @@ public class QcSourceServiceImpl implements QcSourceService {
|
||||
if (Constant.QC_ITEM_TYPE_STRING.equals(qcItemByNo.get().getQcItemType())) {
|
||||
System.out.println("添加检验数据(文本类型)" + insertQo.toString());
|
||||
QcSourceEntity entity = new QcSourceEntity();
|
||||
entity.setCreateTime(LocalDateUtils.getCurrentSecond());
|
||||
String currentSecond = LocalDateUtils.getCurrentSecond();
|
||||
entity.setCreateTime(currentSecond);
|
||||
entity.setCreateTimeFormat(LocalDateUtils.formatCurrentSecond(currentSecond));
|
||||
entity.setBatchNo(LocalStringUtils.formatEmptyValue(batchNo));
|
||||
entity.setMachineNo(LocalStringUtils.formatEmptyValue(machineNo));
|
||||
entity.setMaterialNo(LocalStringUtils.formatEmptyValue(materialNo));
|
||||
@ -112,7 +114,9 @@ public class QcSourceServiceImpl implements QcSourceService {
|
||||
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "上传图片失败!", locale);
|
||||
}
|
||||
QcSourceEntity entity = new QcSourceEntity();
|
||||
entity.setCreateTime(LocalDateUtils.getCurrentSecond());
|
||||
String currentSecond = LocalDateUtils.getCurrentSecond();
|
||||
entity.setCreateTime(currentSecond);
|
||||
entity.setCreateTimeFormat(LocalDateUtils.formatCurrentSecond(currentSecond));
|
||||
entity.setBatchNo(LocalStringUtils.formatEmptyValue(batchNo));
|
||||
entity.setMachineNo(LocalStringUtils.formatEmptyValue(machineNo));
|
||||
entity.setMaterialNo(LocalStringUtils.formatEmptyValue(materialNo));
|
||||
@ -539,5 +543,14 @@ public class QcSourceServiceImpl implements QcSourceService {
|
||||
return "excel/" + excelFileName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 格式化创建时间历史数据
|
||||
*/
|
||||
@Override
|
||||
public String formatCreateTime() {
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user