| | |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import zy.cloud.wms.manager.entity.Cstmr; |
| | | import zy.cloud.wms.manager.entity.ProjectType; |
| | | import zy.cloud.wms.manager.service.ProjectTypeService; |
| | | import com.core.annotations.ManagerAuth; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 返回给前端点击下拉框的数据 |
| | | * @return |
| | | */ |
| | | @RequestMapping("/type/auth") |
| | | public R getProjectType(){ |
| | | List<ProjectType> projectTypes = projectTypeService.selectList(null); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (ProjectType projectType : projectTypes) { |
| | | Map<String,Object> content = new HashMap<>(); |
| | | content.put("id",projectType.getId()); |
| | | content.put("value",projectType.getTypeName()); |
| | | result.add(content); |
| | | } |
| | | |
| | | |
| | | return R.ok(result); |
| | | } |
| | | } |