Commit 625704a5 authored by wangxl's avatar wangxl

1

parent add017bf
...@@ -106,10 +106,10 @@ public class ComBatchServiceImpl extends BaseServiceImpl<ComBatchDAO, ComBatchQu ...@@ -106,10 +106,10 @@ public class ComBatchServiceImpl extends BaseServiceImpl<ComBatchDAO, ComBatchQu
throw new BusinessException("批次不存在或已删除!"); throw new BusinessException("批次不存在或已删除!");
if (!dto.getYear().equals(batch.getYear()) || !dto.getBatch().equals(batch.getBatch())) { if (!dto.getYear().equals(batch.getYear()) || !dto.getBatch().equals(batch.getBatch())) {
ComBatch comBatch = new ComBatch(); ComBatch comBatch = new ComBatch();
batch.setYear(dto.getYear()); comBatch.setYear(dto.getYear());
batch.setBatch(dto.getBatch()); comBatch.setBatch(dto.getBatch());
batch.setSystemType(dto.getSystemType()); comBatch.setSystemType(dto.getSystemType());
batch.setTimeType(dto.getTimeType()); comBatch.setTimeType(dto.getTimeType());
comBatch = this.getEntity(comBatch); comBatch = this.getEntity(comBatch);
if (null != comBatch) if (null != comBatch)
throw new BusinessException("年度批次已存在!"); throw new BusinessException("年度批次已存在!");
......
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