4 changed files with 245 additions and 0 deletions
@ -0,0 +1,71 @@ |
|||||
|
package com.elink.esua.epdc.modules.screen.controller; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
||||
|
import com.elink.esua.epdc.modules.screen.service.DataStatsScreencollService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
/** |
||||
|
* 大屏展示相关 |
||||
|
* |
||||
|
* @author wangtong |
||||
|
* @since 2020-08-19 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("data/stats/screencoll") |
||||
|
public class DataStatsScreencollController { |
||||
|
|
||||
|
@Autowired |
||||
|
private DataStatsScreencollService dataStatsScreencollService; |
||||
|
|
||||
|
/** |
||||
|
* @describe: 党员基本情况 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/19 17:25 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.screen.result.CpcbasedataDTO> |
||||
|
*/ |
||||
|
@PostMapping("cpcbasedata") |
||||
|
public Result cpcbasedata() { |
||||
|
return dataStatsScreencollService.cpcbasedata(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @describe: 事件数据 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/20 11:19 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
||||
|
*/ |
||||
|
@PostMapping("eventdata") |
||||
|
public Result eventdata() { |
||||
|
return dataStatsScreencollService.eventdata(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @describe: 党建引领-党员联系群众数据 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/20 14:25 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
||||
|
*/ |
||||
|
@PostMapping("partylinkmassesdata") |
||||
|
public Result partylinkmassesdata() { |
||||
|
return dataStatsScreencollService.partylinkmassesdata(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @describe: 党建引领-先锋模范数据 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/20 18:02 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
||||
|
*/ |
||||
|
@PostMapping("pioneerdata") |
||||
|
public Result pioneerdata() { |
||||
|
return dataStatsScreencollService.pioneerdata(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.elink.esua.epdc.modules.screen.dao; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
||||
|
import com.elink.esua.epdc.dto.screen.result.*; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description 大屏展示 |
||||
|
* @Author wangtong |
||||
|
* @Date 2020/08/19 13:43 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface DataStatsScreencollDao extends BaseDao<DataStatsScreencollResultDTO> { |
||||
|
|
||||
|
/** |
||||
|
* @describe: 党员基本情况 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/19 17:21 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.dto.screen.result.CpcbasedataDTO |
||||
|
*/ |
||||
|
List<CpcbasedataDTO> cpcbasedata(); |
||||
|
|
||||
|
/** |
||||
|
* @describe: 事件数据 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/20 13:41 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.dto.screen.result.EventdataResultDTO |
||||
|
*/ |
||||
|
List<EventdataResultDTO> eventdata(); |
||||
|
|
||||
|
/** |
||||
|
* @describe: 党建引领-党员联系群众数据 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/20 14:34 |
||||
|
* @params [] |
||||
|
* @return java.util.List<com.elink.esua.epdc.dto.screen.result.PartylinkmassesdataResultDTO> |
||||
|
*/ |
||||
|
List<PartylinkmassesdataResultDTO> partylinkmassesdata(); |
||||
|
|
||||
|
/** |
||||
|
* @describe: 党建引领-先锋模范数据 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/20 18:05 |
||||
|
* @params [] |
||||
|
* @return java.util.List<com.elink.esua.epdc.dto.screen.result.PioneerdataResultDTO> |
||||
|
*/ |
||||
|
List<PioneerdataResultDTO> pioneerdata(); |
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
package com.elink.esua.epdc.modules.screen.service; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
||||
|
import com.elink.esua.epdc.dto.screen.result.CpcbasedataDTO; |
||||
|
|
||||
|
/** |
||||
|
* 项目模块 |
||||
|
* |
||||
|
* @Author wanttong |
||||
|
* @Date 2020/08/19 13:43 |
||||
|
*/ |
||||
|
public interface DataStatsScreencollService { |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @describe: 党员基本情况 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/19 13:53 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
||||
|
*/ |
||||
|
Result<CpcbasedataDTO> cpcbasedata(); |
||||
|
|
||||
|
/** |
||||
|
* @describe: 事件数据 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/20 11:19 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
||||
|
*/ |
||||
|
Result eventdata(); |
||||
|
|
||||
|
/** |
||||
|
* @describe: 党建引领-党员联系群众数据 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/20 14:25 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
||||
|
*/ |
||||
|
Result partylinkmassesdata(); |
||||
|
|
||||
|
/** |
||||
|
* @describe: 党建引领-先锋模范数据 |
||||
|
* @author wangtong |
||||
|
* @date 2020/8/20 18:03 |
||||
|
* @params [] |
||||
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
||||
|
*/ |
||||
|
Result pioneerdata(); |
||||
|
} |
@ -0,0 +1,55 @@ |
|||||
|
package com.elink.esua.epdc.modules.screen.service.impl; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
||||
|
import com.elink.esua.epdc.dto.screen.result.*; |
||||
|
import com.elink.esua.epdc.modules.screen.dao.DataStatsScreencollDao; |
||||
|
import com.elink.esua.epdc.modules.screen.service.DataStatsScreencollService; |
||||
|
import org.slf4j.Logger; |
||||
|
import org.slf4j.LoggerFactory; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description 大屏展示相关 |
||||
|
* @Author wangtong |
||||
|
* @Date 2020/08/19 13:43 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class DataStatsScreencollServiceImpl extends BaseServiceImpl<DataStatsScreencollDao, DataStatsScreencollResultDTO> implements DataStatsScreencollService { |
||||
|
|
||||
|
private Logger logger = LoggerFactory.getLogger(getClass()); |
||||
|
|
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public Result<CpcbasedataDTO> cpcbasedata() { |
||||
|
List<CpcbasedataDTO> result = baseDao.cpcbasedata(); |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public Result eventdata() { |
||||
|
List<EventdataResultDTO> resultList = baseDao.eventdata(); |
||||
|
for(EventdataResultDTO re : resultList){ |
||||
|
for(int x = 0;x < re.getImgDataList().size();x++){ |
||||
|
re.getImgDataList().get(x).setEventId(re.getEventId()); |
||||
|
re.getImgDataList().get(x).setSort(x+1); |
||||
|
} |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public Result partylinkmassesdata() { |
||||
|
List<PartylinkmassesdataResultDTO> resultList = baseDao.partylinkmassesdata(); |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public Result pioneerdata() { |
||||
|
List<PioneerdataResultDTO> resultList = baseDao.pioneerdata(); |
||||
|
return null; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue