任务相关
This commit is contained in:
parent
ff809b56ee
commit
5f7684698e
|
@ -190,10 +190,10 @@ public class ScenarioController extends BaseController {
|
|||
* @param type 类型
|
||||
* @return 资源信息
|
||||
*/
|
||||
@GetMapping("/resources/{type}")
|
||||
@GetMapping("/resources/{type}/{teamType}")
|
||||
public ResponseData<List<ScenarioResource>> getResources(
|
||||
|
||||
@PathVariable("type") Integer type) {
|
||||
@PathVariable("type") Integer type,@PathVariable("teamType") Integer teamType) {
|
||||
Map<String, String> iconMap = iconService.iconMap();
|
||||
switch (type) {
|
||||
case 1:
|
||||
|
@ -210,10 +210,10 @@ public class ScenarioController extends BaseController {
|
|||
convertEntityToResource(type, tblEntityService.selectAllChild(3), iconMap));
|
||||
case 5:
|
||||
return ResponseData.success(
|
||||
covertTeamInfoToResource(type, iTeaminfoService.queryByType(0), iconMap));
|
||||
covertTeamInfoToResource(type, iTeaminfoService.queryByType(0,teamType), iconMap));
|
||||
case 6:
|
||||
return ResponseData.success(
|
||||
covertTeamInfoToResource(type, iTeaminfoService.queryByType(1), iconMap));
|
||||
covertTeamInfoToResource(type, iTeaminfoService.queryByType(1,teamType), iconMap));
|
||||
case 7:
|
||||
return ResponseData.success(
|
||||
covertBuildInfoToResource(type,iResourceService.listAllBuildResourceByType(7),iconMap));
|
||||
|
|
|
@ -17,6 +17,6 @@ public interface ITeaminfoService extends IService<Teaminfo> {
|
|||
List<Teaminfo> list(Teaminfo teaminfo);
|
||||
|
||||
Long count(Teaminfo teaminfo);
|
||||
List<Teaminfo> queryByType(Integer type);
|
||||
List<Teaminfo> queryByType(Integer type,Integer teamType);
|
||||
Map<Integer,Teaminfo> teamInfoMap();
|
||||
}
|
||||
|
|
|
@ -33,9 +33,10 @@ public class TeaminfoServiceImpl extends ServiceImpl<TeaminfoMapper, Teaminfo> i
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<Teaminfo> queryByType(Integer type) {
|
||||
public List<Teaminfo> queryByType(Integer type, Integer teamType) {
|
||||
QueryWrapper<Teaminfo> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("type", type);
|
||||
queryWrapper.eq("team_type", teamType == null ? 0 : teamType);
|
||||
queryWrapper.orderByAsc("id");
|
||||
return this.list(queryWrapper);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user