|
|
@ -80,6 +80,8 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
private ScreenPioneerDataDao screenPioneerDataDao; |
|
|
|
@Autowired |
|
|
|
private ScreenIndexDataYearlyDao screenIndexDataYearlyDao; |
|
|
|
@Autowired |
|
|
|
private ScreenPublicPartiTotalDataDao screenPublicPartiTotalDataDao; |
|
|
|
|
|
|
|
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true) |
|
|
|
@Override |
|
|
@ -446,18 +448,18 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// @DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true)
|
|
|
|
// @Override
|
|
|
|
// @Transactional(rollbackFor = Exception.class)
|
|
|
|
// public void insertPublicPartiTotalData(List<PublicPartiTotalDataFormDTO> formDTO, String customerId) {
|
|
|
|
// if (null != formDTO && formDTO.size() > NumConstant.ZERO){
|
|
|
|
// String[] orgIds = new String[formDTO.size()];
|
|
|
|
// for (int i = NumConstant.ZERO; i < formDTO.size(); i++){
|
|
|
|
// orgIds[i] = formDTO.get(i).getOrgId();
|
|
|
|
// }
|
|
|
|
//// screenPioneerDataDao.deletePioneerData(customerId, orgIds);
|
|
|
|
//
|
|
|
|
//// screenPioneerDataDao.batchInsertPioneerData(formDTO, customerId);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
@DataSource(value = DataSourceConstant.STATS, datasourceNameFromArg = true) |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void insertPublicPartiTotalData(List<PublicPartiTotalDataFormDTO> formDTO, String customerId) { |
|
|
|
if (null != formDTO && formDTO.size() > NumConstant.ZERO){ |
|
|
|
String[] orgIds = new String[formDTO.size()]; |
|
|
|
for (int i = NumConstant.ZERO; i < formDTO.size(); i++){ |
|
|
|
orgIds[i] = formDTO.get(i).getOrgId(); |
|
|
|
} |
|
|
|
screenPublicPartiTotalDataDao.deletePublicPartiTotalData(customerId, orgIds); |
|
|
|
|
|
|
|
screenPublicPartiTotalDataDao.batchInsertPublicPartiTotalData(formDTO, customerId); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|