Browse Source

修改数据库

dev_shibei_match
jianjun 5 years ago
parent
commit
3266e3d7d3
  1. 34
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/ScreenCollServiceImpl.java
  2. 4
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/stats/impl/DimAgencyServiceImpl.java

34
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/ScreenCollServiceImpl.java

@ -83,7 +83,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
@Autowired
private ScreenPublicPartiTotalDataDao screenPublicPartiTotalDataDao;
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertPartyUserRankData(List<PartyUserRankDataFormDTO> formDTO,String customerId) {
@ -98,7 +98,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertPartyLinkMassesData(List<PartyLinkMassesDataFormDTO> formDTO, String customerId) {
@ -113,7 +113,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertPartyBranchData(List<PartyBranchDataFormDTO> formDTO, String customerId) {
@ -131,7 +131,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertOrgRankData(List<OrgRankDataFormDTO> formDTO, String customerId) {
@ -149,7 +149,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertGovernRankData(List<GovernRankDataFormDTO> formDTO, String customerId) {
@ -167,7 +167,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertEventData(List<EventDataFormDTO> formDTO, String customerId) {
@ -195,7 +195,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertDifficultyData(List<DifficultyDataFormDTO> formDTO, String customerId) {
@ -208,7 +208,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertCpcbaseData(List<CpcBaseDataFormDTO> formDTO, String customerId) {
@ -223,7 +223,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertIndexDataMonthly(List<IndexDataMonthlyFormDTO> formDTO, String customerId) {
@ -241,7 +241,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertIndexDataYearly(List<IndexDataYearlyFormDTO> formDTO, String customerId) {
@ -258,7 +258,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertCustomerDept(List<CustomerDeptFormDTO> formDTO, String customerId) {
@ -273,7 +273,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertCustomerGrid(List<CustomerGridFormDTO> formDTO, String customerId) {
@ -288,7 +288,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertCustomerAgency(List<CustomerAgencyFormDTO> formDTO, String customerId) {
@ -303,7 +303,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertUserTotalData(List<UserTotalDataFormDTO> formDTO, String customerId) {
@ -318,7 +318,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertUserJoin(List<UserJoinFormDTO> formDTO, String customerId) {
@ -437,7 +437,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertPioneerData(List<PioneerDataFormDTO> formDTO, String customerId) {
@ -452,7 +452,7 @@ public class ScreenCollServiceImpl implements ScreenCollService {
}
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertPublicPartiTotalData(List<PublicPartiTotalDataFormDTO> formDTO, String customerId) {

4
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/stats/impl/DimAgencyServiceImpl.java

@ -21,11 +21,11 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.epmet.commons.dynamic.datasource.annotation.DataSource;
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.commons.tools.exception.EpmetErrorCode;
import com.epmet.commons.tools.exception.RenException;
import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.constant.DataSourceConstant;
import com.epmet.constant.DimAgencyConstant;
import com.epmet.constant.RobotConstant;
@ -210,7 +210,7 @@ public class DimAgencyServiceImpl extends BaseServiceImpl<DimAgencyDao, DimAgenc
return baseDao.selectTopAgency(customerId);
}
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
public List<DimAgencyEntity> getAgencyListByCustomerId(String customerId) {
if (StringUtils.isBlank(customerId)){

Loading…
Cancel
Save