|
@@ -967,6 +967,11 @@ public class ExamServiceImpl implements ExamService {
|
|
|
} else {
|
|
|
Long id = entity.getId();
|
|
|
Date now = new Date();
|
|
|
+
|
|
|
+ if(StringUtils.length(entity.getRemark()) > 30){
|
|
|
+ throw new StatusException("400", "备注长度不能超过30个字");
|
|
|
+ }
|
|
|
+
|
|
|
//新增
|
|
|
if (id == null) {
|
|
|
entity.setCreationTime(now);
|
|
@@ -983,9 +988,7 @@ public class ExamServiceImpl implements ExamService {
|
|
|
ipLimitEntity.setLimitType(entity.getLimitType());
|
|
|
}
|
|
|
|
|
|
- if (StringUtils.isNotEmpty(entity.getRemark())) {
|
|
|
- ipLimitEntity.setRemark(entity.getRemark());
|
|
|
- }
|
|
|
+ ipLimitEntity.setRemark(entity.getRemark());
|
|
|
|
|
|
ipLimitEntity.setUpdateTime(now);
|
|
|
examIpLimitRepo.save(ipLimitEntity);
|