|
|
|
@ -197,6 +197,15 @@ public class ChaoseTopicPersionController extends JeecgController<ChaoseTopicPer |
|
|
|
|
@GetMapping(value = "/bmbhadd") |
|
|
|
|
public Result<String> bmbhadd(@RequestParam(name="ids",required=true) String ids,@RequestParam(name="xmtmid",required=true) String xmtmid,HttpServletRequest req) { |
|
|
|
|
String strs[] = ids.split(","); |
|
|
|
|
for (int o = 0 ; o < strs.length ; o++){ |
|
|
|
|
UpfilePersion upfilePersion = upfilePersionService.getById(strs[o]); |
|
|
|
|
QueryWrapper<ChaoseTopicPersion> queryWrapperctp1 = new QueryWrapper<>(); |
|
|
|
|
queryWrapperctp1.eq("bmcode",upfilePersion.getApplyCode()); |
|
|
|
|
List<ChaoseTopicPersion> listctp1 = chaoseTopicPersionService.list(queryWrapperctp1); |
|
|
|
|
if(listctp1.size()==0){ |
|
|
|
|
return Result.error(upfilePersion.getTopicName()+"未选题,绑定失败!"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
AnnComGroTop annComGroTop = new AnnComGroTop(); |
|
|
|
|
QueryWrapper<AnnComGroTop> queryWrapper = QueryGenerator.initQueryWrapper(annComGroTop, req.getParameterMap()); |
|
|
|
|
queryWrapper.eq("ann_com_p_g",xmtmid); |
|
|
|
|