| | |
| | | import com.javaweb.common.core.domain.AjaxResult; |
| | | import com.javaweb.common.utils.Arith; |
| | | import com.javaweb.common.utils.StringUtils; |
| | | import com.javaweb.geo.domain.Project; |
| | | import com.javaweb.geo.service.IProjectService; |
| | | import com.javaweb.system.service.ISysConfigService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | | |
| | | @Autowired |
| | | private IProjectService projectService; |
| | | |
| | | private String getAdminIndex(){ |
| | | return configService.selectConfigByKey(CmsConstants.KEY_ADMIN_INDEX); |
| | |
| | | |
| | | return "main"; |
| | | } |
| | | |
| | | private Double getValue(int a,int b) { |
| | | |
| | | return Arith.div((double)a*100, (double)b, 4); |
| | | |
| | | // 系统介绍 |
| | | @ResponseBody |
| | | @GetMapping("/system/project") |
| | | public AjaxResult project() |
| | | { |
| | | AjaxResult ajaxResult = AjaxResult.success(); |
| | | List<Project> projects = projectService.selectProjectList(new Project()); |
| | | ajaxResult.put("projects",projects); |
| | | return ajaxResult; |
| | | } |
| | | |
| | | |
| | | } |