主题整合bug
This commit is contained in:
@ -120,7 +120,21 @@ public class ByThemeActivityController extends BaseController {
|
||||
@PreAuthorize("@ss.hasPermi('benyi:theme:list')"+ "||@ss.hasPermi('benyi:thememonthplan:list')")
|
||||
@PostMapping("/listbythemeid/{ids}")
|
||||
public TableDataInfo listbythemeid(@PathVariable Long[] ids) {
|
||||
// System.out.println("ids:"+ids);
|
||||
List<ByThemeActivity> list = byThemeActivityService.selectByThemeActivityByThemeIds(ids);
|
||||
// System.out.println(list.size());
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询主题整合活动列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:theme:list')"+ "||@ss.hasPermi('benyi:thememonthplan:list')")
|
||||
@PostMapping("/listbyid/{ids}")
|
||||
public TableDataInfo listbyid(@PathVariable Long[] ids) {
|
||||
// System.out.println("ids:"+ids);
|
||||
List<ByThemeActivity> list = byThemeActivityService.selectByThemeActivityByIds(ids);
|
||||
// System.out.println(list.size());
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
|
@ -66,4 +66,12 @@ public interface ByThemeActivityMapper {
|
||||
* @return 主题整合活动集合
|
||||
*/
|
||||
public List<ByThemeActivity> selectByThemeActivityByThemeIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询主题整合活动列表
|
||||
*
|
||||
* @param ids 主题整合活动
|
||||
* @return 主题整合活动集合
|
||||
*/
|
||||
public List<ByThemeActivity> selectByThemeActivityByIds(Long[] ids);
|
||||
}
|
||||
|
@ -66,4 +66,12 @@ public interface IByThemeActivityService {
|
||||
* @return 主题整合活动集合
|
||||
*/
|
||||
public List<ByThemeActivity> selectByThemeActivityByThemeIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询主题整合活动列表
|
||||
*
|
||||
* @param ids 主题整合活动
|
||||
* @return 主题整合活动集合
|
||||
*/
|
||||
public List<ByThemeActivity> selectByThemeActivityByIds(Long[] ids);
|
||||
}
|
||||
|
@ -97,4 +97,15 @@ public class ByThemeActivityServiceImpl implements IByThemeActivityService {
|
||||
public List<ByThemeActivity> selectByThemeActivityByThemeIds(Long[] ids){
|
||||
return byThemeActivityMapper.selectByThemeActivityByThemeIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询主题整合活动列表
|
||||
*
|
||||
* @param ids 主题整合活动
|
||||
* @return 主题整合活动集合
|
||||
*/
|
||||
@Override
|
||||
public List<ByThemeActivity> selectByThemeActivityByIds(Long[] ids){
|
||||
return byThemeActivityMapper.selectByThemeActivityByIds(ids);
|
||||
}
|
||||
}
|
||||
|
@ -117,4 +117,13 @@
|
||||
order by themeid,sort
|
||||
</select>
|
||||
|
||||
<select id="selectByThemeActivityByIds" parameterType="String" resultMap="ByThemeActivityResult">
|
||||
<include refid="selectByThemeActivityVo"/>
|
||||
where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
order by themeid,sort
|
||||
</select>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user