Commit 74fbe6e9 authored by zhangsen's avatar zhangsen

bug修改

parent 83506979
...@@ -558,15 +558,20 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements ...@@ -558,15 +558,20 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
int rowNum int rowNum
){ ){
if (StringUtils.isEmpty(equipmentDetailDownloadVOS.getName())) {
erryy.append("第" + rowNum + "行器材名称为空,");
}
if (StringUtils.isEmpty(equipmentDetailDownloadVOS.getCode())) { if (StringUtils.isEmpty(equipmentDetailDownloadVOS.getCode())) {
erryy.append("第" + rowNum + "器材编码为空,"); erryy.append("第" + rowNum + "器材编码为空,");
errBufferName.append(equipmentDetailDownloadVOS.getCode() + ",");
throw new RuntimeException(String.format("第" + rowNum + "器材编码为空",equipmentDetailDownloadVOS.getCode()));
}
if (StringUtils.isEmpty(equipmentDetailDownloadVOS.getName())) {
erryy.append("第" + rowNum + "行器材名称为空,");
errBufferName.append(equipmentDetailDownloadVOS.getCode() + ",");
throw new RuntimeException(String.format("第" + rowNum + "行器材名称为空",equipmentDetailDownloadVOS.getCode()));
} }
if (StringUtils.isEmpty(equipmentDetailDownloadVOS.getCompanyName())) { if (StringUtils.isEmpty(equipmentDetailDownloadVOS.getCompanyName())) {
erryy.append("第" + rowNum + "行所属单位为空,"); erryy.append("第" + rowNum + "行所属单位为空,");
errBufferName.append(equipmentDetailDownloadVOS.getCode() + ",");
throw new RuntimeException(String.format("第" + rowNum + "行所属单位为空",equipmentDetailDownloadVOS.getCode()));
} }
SimpleDateFormat stf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat stf = new SimpleDateFormat("yyyy-MM-dd");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment