diff --git a/resources/mybatis/index/IndexHomeDetailsMapper.xml b/resources/mybatis/index/IndexHomeDetailsMapper.xml index 428d26e..3d845f6 100644 --- a/resources/mybatis/index/IndexHomeDetailsMapper.xml +++ b/resources/mybatis/index/IndexHomeDetailsMapper.xml @@ -10,273 +10,280 @@ @@ -905,104 +912,212 @@ - select mt2.NAME as maType, mt.NAME as maName, wir.CODE as maCode, @@ -1471,7 +1586,7 @@ left join mm_type mt2 on mt.PARENT_ID = mt2.ID where wir.TYPE = #{type} - select mt2.NAME as maType, mt.NAME as maName, mt.UNIT as maUnit, diff --git a/resources/mybatis/index/IndexHomeMapper.xml b/resources/mybatis/index/IndexHomeMapper.xml index 48bcd53..2fe94b1 100644 --- a/resources/mybatis/index/IndexHomeMapper.xml +++ b/resources/mybatis/index/IndexHomeMapper.xml @@ -324,351 +324,307 @@ diff --git a/src/com/bonus/index/controller/IndexHomeController.java b/src/com/bonus/index/controller/IndexHomeController.java index 8db0904..6c8b6b8 100644 --- a/src/com/bonus/index/controller/IndexHomeController.java +++ b/src/com/bonus/index/controller/IndexHomeController.java @@ -9,10 +9,7 @@ import org.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.*; import com.bonus.core.DateTimeHelper; import com.bonus.index.service.IndexHomeService; @@ -42,6 +39,18 @@ public class IndexHomeController extends BaseController { return "/equipment/equipmentTypesDetail"; } + @RequestMapping("dataOverview/equipmentProportion/index") + public String dataOverviewProportionDetails(@RequestParam("type") String type, Model model) { + model.addAttribute("type",type); + return "/equipment/equipmentProportionDetail"; + } + + @RequestMapping("dataOverview/equipmentType/index") + public String dataOverviewTypeDetails(@RequestParam("type") String type, Model model) { + model.addAttribute("type",type); + return "/equipment/equipmentTypeDetail"; + } + @RequestMapping("dataOverview/equipment/detail") public String showEquipmentTypeInfo(Model model) { return "/equipment/equipmentTypesInfo";