| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.yuanchu.mom.common.GetLook; |
| | | import com.yuanchu.mom.common.PrintChina; |
| | | import com.yuanchu.mom.dto.DataReportingPageDto; |
| | | import com.yuanchu.mom.dto.ProductCountDto; |
| | | import com.yuanchu.mom.dto.RegistrantCountDto; |
| | | import com.yuanchu.mom.pojo.DataReporting; |
| | | import com.yuanchu.mom.service.DataReportingService; |
| | | import com.yuanchu.mom.mapper.DataReportingMapper; |
| | |
| | | |
| | | private DataReportingMapper dataReportingMapper; |
| | | |
| | | private GetLook getLook; |
| | | |
| | | @Override |
| | | public Map<String, Object> selectUserList(IPage<DataReportingPageDto> page, DataReportingPageDto dataReportingPageDto) { |
| | | public Map<String, Object> selectDataReportingList(IPage<DataReportingPageDto> page, DataReportingPageDto dataReportingPageDto) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("selectDataReportingList"); |
| | | if(map1.get("look")==1) dataReportingPageDto.setCreateUser(map1.get("userId")); |
| | | map.put("head", PrintChina.printChina(DataReportingPageDto.class)); |
| | | map.put("body", dataReportingMapper.selectDataReportingDtoPageList(page, QueryWrappers.queryWrappers(dataReportingPageDto))); |
| | | return map; |
| | |
| | | System.out.println(dataReporting2); |
| | | return dataReportingMapper.updateById(dataReporting2); |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> selectProductCountDtoPageList(IPage<ProductCountDto> page, ProductCountDto productCountDto) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("head", PrintChina.printChina(ProductCountDto.class)); |
| | | Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("selectDataReportingList"); |
| | | if(map1.get("look")==1) productCountDto.setCreateUser(map1.get("userId")); |
| | | map.put("body", dataReportingMapper.selectProductCountDtoPageList(page, QueryWrappers.queryWrappers(productCountDto))); |
| | | return map; |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> selectRegistrantCountDtoPageList(IPage<RegistrantCountDto> page, RegistrantCountDto registrantCountDto) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("head", PrintChina.printChina(RegistrantCountDto.class)); |
| | | Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("selectDataReportingList"); |
| | | if(map1.get("look")==1) registrantCountDto.setCreateUser(map1.get("userId")); |
| | | map.put("body", dataReportingMapper.selectRegistrantCountDtoPageList(page, QueryWrappers.queryWrappers(registrantCountDto))); |
| | | return map; |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> getDataList() { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("data1", dataReportingMapper.getDataFor1()); |
| | | map.put("data2", dataReportingMapper.getDataFor2()); |
| | | map.put("data3", dataReportingMapper.getDataFor3()); |
| | | map.put("data4", dataReportingMapper.getDataFor4()); |
| | | map.put("data5", dataReportingMapper.getDataFor5()); |
| | | return map; |
| | | } |
| | | } |
| | | |
| | | |