|
|
@ -31,6 +31,7 @@ import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
@ -227,19 +228,19 @@ public class PowerAxisStructServiceImpl extends BaseServiceImpl<PowerAxisStructD |
|
|
|
|
|
|
|
@Override |
|
|
|
public PowerAxisStructViewResultDTO getStatistics(PowerAxisStructViewFormDTO form) { |
|
|
|
form.setCustomerId(loginUserUtil.getLoginUserCustomerId()); |
|
|
|
|
|
|
|
String customerId = form.getCustomerId(); |
|
|
|
String agencyId = form.getAgencyId(); |
|
|
|
// 查网格党支部数 grid_party
|
|
|
|
String gridCateGoryCode = baseDao.getCateGoryCode(form.getCustomerId(), PowerTagLevelEnum.CHILD_FIRST.level(), PowerTagCategoryEnum.STRUCT.category()); |
|
|
|
int gridParty = baseDao.queryGridParty(form.getAgencyId(), form.getCustomerId(), gridCateGoryCode); |
|
|
|
String gridCateGoryCode = baseDao.getCateGoryCode(customerId, PowerTagLevelEnum.CHILD_FIRST.level(), PowerTagCategoryEnum.STRUCT.category()); |
|
|
|
int gridParty = baseDao.queryGridParty(agencyId, customerId, gridCateGoryCode); |
|
|
|
|
|
|
|
// 查楼院党小组数 group_party
|
|
|
|
String groupCateGoryCode = baseDao.getCateGoryCode(form.getCustomerId(), PowerTagLevelEnum.CHILD_SECOND.level(), PowerTagCategoryEnum.STRUCT.category()); |
|
|
|
int groupParty = baseDao.queryGroupParty(form.getAgencyId(), form.getCustomerId(), groupCateGoryCode); |
|
|
|
String groupCateGoryCode = baseDao.getCateGoryCode(customerId, PowerTagLevelEnum.CHILD_SECOND.level(), PowerTagCategoryEnum.STRUCT.category()); |
|
|
|
int groupParty = baseDao.queryGroupParty(agencyId, customerId, groupCateGoryCode); |
|
|
|
// 查询党员中心户数
|
|
|
|
int kernelHouseHold = baseDao.getKernelHouseHold(form); |
|
|
|
int kernelHouseHold = baseDao.getKernelHouseHold(agencyId, customerId); |
|
|
|
// 查询服务站数
|
|
|
|
int serviceStation = baseDao.getServiceStation(form); |
|
|
|
int serviceStation = baseDao.getServiceStation(agencyId, customerId); |
|
|
|
|
|
|
|
PowerAxisStructViewResultDTO result = new PowerAxisStructViewResultDTO(); |
|
|
|
result.setGridNum(gridParty); |
|
|
|