|
|
@ -210,7 +210,7 @@ public class TopicController extends JeecgController<Topic, ITopicService> { |
|
|
|
@PostMapping(value = "/select") |
|
|
|
@PostMapping(value = "/select") |
|
|
|
public Result<String> select(@RequestBody Topic topic) { |
|
|
|
public Result<String> select(@RequestBody Topic topic) { |
|
|
|
QueryWrapper<Topic> queryWrapper= new QueryWrapper<>(); |
|
|
|
QueryWrapper<Topic> queryWrapper= new QueryWrapper<>(); |
|
|
|
queryWrapper.eq("number",topic.getNumber()); |
|
|
|
queryWrapper.eq("annual_compid",topic.getAnnualCompid()).eq("number",topic.getNumber()); |
|
|
|
List<Topic> list = topicService.list(queryWrapper); |
|
|
|
List<Topic> list = topicService.list(queryWrapper); |
|
|
|
if (!list.isEmpty()){ |
|
|
|
if (!list.isEmpty()){ |
|
|
|
return Result.error("编码重复"); |
|
|
|
return Result.error("编码重复"); |
|
|
@ -236,7 +236,7 @@ public class TopicController extends JeecgController<Topic, ITopicService> { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
QueryWrapper<Topic> queryWrapper= new QueryWrapper<>(); |
|
|
|
QueryWrapper<Topic> queryWrapper= new QueryWrapper<>(); |
|
|
|
queryWrapper.eq("number",topic.getNumber()); |
|
|
|
queryWrapper.eq("annual_compid",topic.getAnnualCompid()).eq("number",topic.getNumber()); |
|
|
|
List<Topic> list = topicService.list(queryWrapper); |
|
|
|
List<Topic> list = topicService.list(queryWrapper); |
|
|
|
if (!list.isEmpty()){ |
|
|
|
if (!list.isEmpty()){ |
|
|
|
return Result.error("编码重复"); |
|
|
|
return Result.error("编码重复"); |
|
|
|