|
|
@ -335,9 +335,12 @@ public class TopicController extends JeecgController<Topic, ITopicService> { |
|
|
|
QueryWrapper<Topic> queryWrapper= new QueryWrapper<>(); |
|
|
|
QueryWrapper<Topic> queryWrapper= new QueryWrapper<>(); |
|
|
|
queryWrapper.eq("annual_compid",topic.getAnnualCompid()).eq("number",topic.getNumber()); |
|
|
|
queryWrapper.eq("annual_compid",topic.getAnnualCompid()).eq("number",topic.getNumber()); |
|
|
|
Topic one = topicService.getOne(queryWrapper); |
|
|
|
Topic one = topicService.getOne(queryWrapper); |
|
|
|
|
|
|
|
if(one!=null){ |
|
|
|
if (!Objects.equals(one.getId(), topic.getId())){ |
|
|
|
if (!Objects.equals(one.getId(), topic.getId())){ |
|
|
|
return Result.error("编码重复"); |
|
|
|
return Result.error("编码重复"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
topicService.updateById(topic); |
|
|
|
topicService.updateById(topic); |
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
} |
|
|
|
} |
|
|
|