forked from rongchao/epmet-cloud-rizhao
27 changed files with 721 additions and 52 deletions
@ -0,0 +1,31 @@ |
|||||
|
/** |
||||
|
* 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.epmet.service.evaluationindex.extract.todata; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.entity.evaluationindex.extract.FactOriginIssueLogDailyEntity; |
||||
|
|
||||
|
/** |
||||
|
* 议题记录附表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-09-23 |
||||
|
*/ |
||||
|
public interface FactOriginIssueLogDailyService extends BaseService<FactOriginIssueLogDailyEntity> { |
||||
|
|
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
/** |
||||
|
* 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.epmet.service.evaluationindex.extract.todata; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.entity.evaluationindex.extract.FactOriginIssueMainDailyEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 议题主表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-09-23 |
||||
|
*/ |
||||
|
public interface FactOriginIssueMainDailyService extends BaseService<FactOriginIssueMainDailyEntity> { |
||||
|
|
||||
|
/** |
||||
|
* @return int |
||||
|
* @param customerId |
||||
|
* @param partyMemberUserIds |
||||
|
* @author yinzuomei |
||||
|
* @description 根据党员ids,查询党员发布议题数 |
||||
|
* @Date 2020/9/23 15:11 |
||||
|
**/ |
||||
|
int getParyPublishIssueTotal(String customerId, List<String> partyMemberUserIds); |
||||
|
/** |
||||
|
* @return int |
||||
|
* @param customerId |
||||
|
* @param gridId |
||||
|
* @author yinzuomei |
||||
|
* @description 具体某个网格的议题总数 |
||||
|
* @Date 2020/9/23 15:22 |
||||
|
**/ |
||||
|
int getGridIssueTotalByGrid(String customerId, String gridId); |
||||
|
|
||||
|
/** |
||||
|
* @return java.lang.Integer |
||||
|
* @param customerId |
||||
|
* @param gridId |
||||
|
* @author yinzuomei |
||||
|
* @description 网格内议题转项目数 |
||||
|
* @Date 2020/9/23 15:39 |
||||
|
**/ |
||||
|
Integer getShiftProjectTotalByGrid(String customerId, String gridId); |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
/** |
||||
|
* 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.epmet.service.evaluationindex.extract.todata.impl; |
||||
|
|
||||
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.constant.DataSourceConstant; |
||||
|
import com.epmet.dao.evaluationindex.extract.FactOriginIssueLogDailyDao; |
||||
|
import com.epmet.entity.evaluationindex.extract.FactOriginIssueLogDailyEntity; |
||||
|
import com.epmet.service.evaluationindex.extract.todata.FactOriginIssueLogDailyService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* 议题记录附表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-09-23 |
||||
|
*/ |
||||
|
@DataSource(DataSourceConstant.STATS) |
||||
|
@Service |
||||
|
public class FactOriginIssueLogDailyServiceImpl extends BaseServiceImpl<FactOriginIssueLogDailyDao, FactOriginIssueLogDailyEntity> implements FactOriginIssueLogDailyService { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
/** |
||||
|
* 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.epmet.service.evaluationindex.extract.todata.impl; |
||||
|
|
||||
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
import com.epmet.constant.DataSourceConstant; |
||||
|
import com.epmet.dao.evaluationindex.extract.FactOriginIssueMainDailyDao; |
||||
|
import com.epmet.entity.evaluationindex.extract.FactOriginIssueMainDailyEntity; |
||||
|
import com.epmet.service.evaluationindex.extract.todata.FactOriginIssueMainDailyService; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.util.CollectionUtils; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 议题主表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-09-23 |
||||
|
*/ |
||||
|
@DataSource(DataSourceConstant.STATS) |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
public class FactOriginIssueMainDailyServiceImpl extends BaseServiceImpl<FactOriginIssueMainDailyDao, FactOriginIssueMainDailyEntity> implements FactOriginIssueMainDailyService { |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @param customerId |
||||
|
* @param partyMemberUserIds |
||||
|
* @return int |
||||
|
* @author yinzuomei |
||||
|
* @description 根据党员ids, 查询党员发布议题数 |
||||
|
* @Date 2020/9/23 15:11 |
||||
|
**/ |
||||
|
@Override |
||||
|
public int getParyPublishIssueTotal(String customerId, List<String> partyMemberUserIds) { |
||||
|
if(CollectionUtils.isEmpty(partyMemberUserIds)){ |
||||
|
return NumConstant.ZERO; |
||||
|
} |
||||
|
return baseDao.getParyPublishIssueTotal(customerId,partyMemberUserIds); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param customerId |
||||
|
* @param gridId |
||||
|
* @return int |
||||
|
* @author yinzuomei |
||||
|
* @description 具体某个网格的议题总数 |
||||
|
* @Date 2020/9/23 15:22 |
||||
|
**/ |
||||
|
@Override |
||||
|
public int getGridIssueTotalByGrid(String customerId, String gridId) { |
||||
|
return baseDao.getGridIssueTotalByGrid(customerId,gridId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param customerId |
||||
|
* @param gridId |
||||
|
* @return java.lang.Integer |
||||
|
* @author yinzuomei |
||||
|
* @description 网格内议题转项目数 |
||||
|
* @Date 2020/9/23 15:39 |
||||
|
**/ |
||||
|
@Override |
||||
|
public Integer getShiftProjectTotalByGrid(String customerId, String gridId) { |
||||
|
return baseDao.getShiftProjectTotalByGrid(customerId,gridId); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue