|
|
@ -78,6 +78,11 @@ public class GenerateServiceImpl extends BaseServiceImpl<GenerateMapper, Generat |
|
|
|
GenerateEntity history = this.getOne(new LambdaQueryWrapper<GenerateEntity>(){{ |
|
|
|
GenerateEntity history = this.getOne(new LambdaQueryWrapper<GenerateEntity>(){{ |
|
|
|
eq(GenerateEntity::getStationCode, entity.getStationCode()); |
|
|
|
eq(GenerateEntity::getStationCode, entity.getStationCode()); |
|
|
|
eq(GenerateEntity::getFillDate,entity.getFillDate()); |
|
|
|
eq(GenerateEntity::getFillDate,entity.getFillDate()); |
|
|
|
|
|
|
|
eq(GenerateEntity::getIsDeleted,0); |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(entity.getId())){ |
|
|
|
|
|
|
|
eq(GenerateEntity::getFillDate,entity.getFillDate()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
last("limit 1"); |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
if(ObjectUtil.isNotEmpty(history) && (ObjectUtil.isEmpty(entity.getId()) || !entity.getId().equals(history.getId()))){ |
|
|
|
if(ObjectUtil.isNotEmpty(history) && (ObjectUtil.isEmpty(entity.getId()) || !entity.getId().equals(history.getId()))){ |
|
|
|
throw new ServiceException("日期已经存在填报数据!"); |
|
|
|
throw new ServiceException("日期已经存在填报数据!"); |
|
|
|