update
This commit is contained in:
@@ -28,7 +28,10 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -85,6 +88,21 @@ public class ModuleController extends BaseController {
|
|||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仅用来测试使用
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("sys:module:view")
|
||||||
|
@RequestMapping(value = "selectData")
|
||||||
|
@ResponseBody
|
||||||
|
public List<Map<String, Object>> selectData(Module module) {
|
||||||
|
return moduleService.findList(module).stream().map(m -> {
|
||||||
|
Map<String, Object> map = new HashMap<>();
|
||||||
|
map.put("label", m.getModuleName());
|
||||||
|
map.put("value", m.getModuleCode());
|
||||||
|
return map;
|
||||||
|
}).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查看编辑表单
|
* 查看编辑表单
|
||||||
* @param module
|
* @param module
|
||||||
|
|||||||
Reference in New Issue
Block a user