10 changed files with 270 additions and 49 deletions
@ -0,0 +1,52 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.entity.evaluationindex.extract.FactOriginGroupMainDailyEntity; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 业务数据抽取-小组相关 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-09-21 |
|||
*/ |
|||
public interface FactOriginGroupMainDailyService extends BaseService<FactOriginGroupMainDailyEntity> { |
|||
|
|||
/** |
|||
* @return java.util.List<java.lang.String> |
|||
* @param customerId |
|||
* @param userId |
|||
* @author yinzuomei |
|||
* @description 查询当前用户建了多少个组 |
|||
* @Date 2020/9/21 16:12 |
|||
**/ |
|||
List<String> selectGroupIds(String customerId, String userId); |
|||
|
|||
/** |
|||
* @return java.util.List<java.lang.String> |
|||
* @param groupIdList |
|||
* @author yinzuomei |
|||
* @description 根据组,查询组里面的成员(去重) |
|||
* @Date 2020/9/21 16:13 |
|||
**/ |
|||
List<String> selectGroupMemberList(List<String> groupIdList); |
|||
} |
@ -0,0 +1,65 @@ |
|||
/** |
|||
* 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.impl; |
|||
|
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.dao.evaluationindex.extract.FactOriginGroupMainDailyDao; |
|||
import com.epmet.entity.evaluationindex.extract.FactOriginGroupMainDailyEntity; |
|||
import com.epmet.service.evaluationindex.extract.FactOriginGroupMainDailyService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 业务数据抽取-小组相关 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-09-21 |
|||
*/ |
|||
@Service |
|||
public class FactOriginGroupMainDailyServiceImpl extends BaseServiceImpl<FactOriginGroupMainDailyDao, FactOriginGroupMainDailyEntity> implements FactOriginGroupMainDailyService { |
|||
|
|||
|
|||
/** |
|||
* @return java.util.List<java.lang.String> |
|||
* @param customerId |
|||
* @param userId |
|||
* @author yinzuomei |
|||
* @description 查询当前用户建了多少个组 |
|||
* @Date 2020/9/21 16:13 |
|||
**/ |
|||
@Override |
|||
public List<String> selectGroupIds(String customerId, String userId) { |
|||
List<String> groupIdList = baseDao.selectGroupIds(customerId,userId); |
|||
return groupIdList; |
|||
} |
|||
|
|||
/** |
|||
* @param groupIdList |
|||
* @return java.util.List<java.lang.String> |
|||
* @author yinzuomei |
|||
* @description 根据组,查询组里面的成员(去重) |
|||
* @Date 2020/9/21 16:13 |
|||
**/ |
|||
@Override |
|||
public List<String> selectGroupMemberList(List<String> groupIdList) { |
|||
List<String> memberIdList = baseDao.selectGroupMemberList(groupIdList); |
|||
return memberIdList; |
|||
} |
|||
} |
@ -0,0 +1,51 @@ |
|||
/** |
|||
* 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.indexcoll; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.entity.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyEntity; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 党建能力-党员相关的事实表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-09-21 |
|||
*/ |
|||
public interface FactIndexPartyAblityCpcMonthlyService extends BaseService<FactIndexPartyAblityCpcMonthlyEntity> { |
|||
/** |
|||
* @return void |
|||
* @param customerId |
|||
* @param monthId |
|||
* @author yinzuomei |
|||
* @description 删除这个客户这个月 党员相关-党建能力的数据 |
|||
* @Date 2020/9/21 16:01 |
|||
**/ |
|||
void deleteFactIndexPartyAblityCpcMonthly(String customerId, String monthId); |
|||
|
|||
/** |
|||
* @return void |
|||
* @param list |
|||
* @author yinzuomei |
|||
* @description 批量插入党员相关党建能力表 |
|||
* @Date 2020/9/21 16:04 |
|||
**/ |
|||
void saveFactIndexPartyAblityCpcMonthlyEntity(List<FactIndexPartyAblityCpcMonthlyEntity> list); |
|||
} |
@ -0,0 +1,70 @@ |
|||
/** |
|||
* 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.indexcoll.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.indexcoll.FactIndexPartyAblityCpcMonthlyDao; |
|||
import com.epmet.entity.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyEntity; |
|||
import com.epmet.service.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 党建能力-党员相关的事实表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-09-21 |
|||
*/ |
|||
@Service |
|||
public class FactIndexPartyAblityCpcMonthlyServiceImpl extends BaseServiceImpl<FactIndexPartyAblityCpcMonthlyDao, FactIndexPartyAblityCpcMonthlyEntity> implements FactIndexPartyAblityCpcMonthlyService { |
|||
/** |
|||
* @param customerId |
|||
* @param monthId |
|||
* @return void |
|||
* @author yinzuomei |
|||
* @description 删除这个客户这个月 党员相关-党建能力的数据 |
|||
* @Date 2020/9/18 10:20 |
|||
**/ |
|||
@Override |
|||
@DataSource(value = DataSourceConstant.EVALUATION_INDEX) |
|||
public void deleteFactIndexPartyAblityCpcMonthly(String customerId, String monthId) { |
|||
int deleteNum; |
|||
do { |
|||
deleteNum = baseDao.deleteFactIndexPartyAblityCpcMonthly(customerId, monthId); |
|||
} while (deleteNum > NumConstant.ZERO); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* @param list |
|||
* @return void |
|||
* @author yinzuomei |
|||
* @description 批量插入党员相关党建能力表 |
|||
* @Date 2020/9/18 10:27 |
|||
**/ |
|||
@Override |
|||
@DataSource(value = DataSourceConstant.EVALUATION_INDEX) |
|||
public void saveFactIndexPartyAblityCpcMonthlyEntity(List<FactIndexPartyAblityCpcMonthlyEntity> list) { |
|||
baseDao.insertBatchEntity(list); |
|||
} |
|||
} |
Loading…
Reference in new issue