|
|
@ -91,7 +91,7 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertPartyLinkMassesData(List<PartyLinkMassesDataFormDTO> formDTO, String customerId) { |
|
|
|
public void insertPartyLinkMassesData(List<PartyLinkMassesDataFormDTO> 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++){ |
|
|
@ -101,12 +101,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenPartyLinkMassesDataDao.batchInsertPartyLinkMassesData(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertPartyBranchData(List<PartyBranchDataFormDTO> formDTO, String customerId) { |
|
|
|
public void insertPartyBranchData(List<PartyBranchDataFormDTO> 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++){ |
|
|
@ -119,12 +118,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenPartyBranchDataDao.batchInsertPartyBranchData(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertOrgRankData(List<OrgRankDataFormDTO> formDTO, String customerId) { |
|
|
|
public void insertOrgRankData(List<OrgRankDataFormDTO> 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++){ |
|
|
@ -137,12 +135,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenOrgRankDataDao.batchInsertOrgRankData(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertGovernRankData(List<GovernRankDataFormDTO> formDTO, String customerId) { |
|
|
|
public void insertGovernRankData(List<GovernRankDataFormDTO> 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++){ |
|
|
@ -155,12 +152,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenGovernRankDataDao.batchInsertGovernRankData(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertEventData(List<EventDataFormDTO> formDTO, String customerId) { |
|
|
|
public void insertEventData(List<EventDataFormDTO> formDTO, String customerId) { |
|
|
|
if (null != formDTO && formDTO.size() > NumConstant.ZERO){ |
|
|
|
for (int i = NumConstant.ZERO; i < formDTO.size(); i++){ |
|
|
|
screenEventDataDao.deleteEventData(customerId, formDTO.get(i).getEventId(), formDTO.get(i).getOrgId()); |
|
|
@ -183,12 +179,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertDifficultyData(List<DifficultyDataFormDTO> formDTO, String customerId) { |
|
|
|
public void insertDifficultyData(List<DifficultyDataFormDTO> formDTO, String customerId) { |
|
|
|
if (null != formDTO && formDTO.size() > NumConstant.ZERO){ |
|
|
|
for (int i = NumConstant.ZERO; i < formDTO.size(); i++){ |
|
|
|
screenDifficultyDataDao.deleteDifficultyData(customerId, formDTO.get(i).getEventId(), formDTO.get(i).getOrgId()); |
|
|
@ -196,12 +191,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenDifficultyDataDao.batchInsertDifficultyData(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertCpcbaseData(List<CpcBaseDataFormDTO> formDTO, String customerId) { |
|
|
|
public void insertCpcbaseData(List<CpcBaseDataFormDTO> 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++){ |
|
|
@ -211,12 +205,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenCpcBaseDataDao.batchInsertCpcBaseData(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertIndexDataMonthly(List<IndexDataMonthlyFormDTO> formDTO, String customerId) { |
|
|
|
public void insertIndexDataMonthly(List<IndexDataMonthlyFormDTO> 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++){ |
|
|
@ -229,12 +222,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenIndexDataMonthlyDao.batchInsertIndexDataMonthly(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertIndexDataYearly(List<IndexDataYearlyFormDTO> formDTO, String customerId) { |
|
|
|
public void insertIndexDataYearly(List<IndexDataYearlyFormDTO> 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++){ |
|
|
@ -246,12 +238,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenIndexDataYearlyDao.batchInsertIndexDataYearly(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertCustomerDept(List<CustomerDeptFormDTO> formDTO, String customerId) { |
|
|
|
public void insertCustomerDept(List<CustomerDeptFormDTO> formDTO, String customerId) { |
|
|
|
if (null != formDTO && formDTO.size() > NumConstant.ZERO){ |
|
|
|
String[] deptIds = new String[formDTO.size()]; |
|
|
|
for (int i = NumConstant.ZERO; i < formDTO.size(); i++){ |
|
|
@ -261,12 +252,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenCustomerDeptDao.batchInsertCustomerDept(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertCustomerGrid(List<CustomerGridFormDTO> formDTO, String customerId) { |
|
|
|
public void insertCustomerGrid(List<CustomerGridFormDTO> formDTO, String customerId) { |
|
|
|
if (null != formDTO && formDTO.size() > NumConstant.ZERO){ |
|
|
|
String[] gridIds = new String[formDTO.size()]; |
|
|
|
for (int i = NumConstant.ZERO; i < formDTO.size(); i++){ |
|
|
@ -276,12 +266,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenCustomerGridDao.batchInsertCustomerGrid(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertCustomerAgency(List<CustomerAgencyFormDTO> formDTO, String customerId) { |
|
|
|
public void insertCustomerAgency(List<CustomerAgencyFormDTO> formDTO, String customerId) { |
|
|
|
if (null != formDTO && formDTO.size() > NumConstant.ZERO){ |
|
|
|
String[] agencyIds = new String[formDTO.size()]; |
|
|
|
for (int i = NumConstant.ZERO; i < formDTO.size(); i++){ |
|
|
@ -291,12 +280,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenCustomerAgencyDao.batchInsertCustomerAgency(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertUserTotalData(List<UserTotalDataFormDTO> formDTO, String customerId) { |
|
|
|
public void insertUserTotalData(List<UserTotalDataFormDTO> 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++){ |
|
|
@ -306,12 +294,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenUserTotalDataDao.batchInsertUserTotalData(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertUserJoin(List<UserJoinFormDTO> formDTO, String customerId) { |
|
|
|
public void insertUserJoin(List<UserJoinFormDTO> 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++){ |
|
|
@ -324,12 +311,11 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenUserJoinDao.batchInsertUserJoin(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result insertPioneerData(List<PioneerDataFormDTO> formDTO, String customerId) { |
|
|
|
public void insertPioneerData(List<PioneerDataFormDTO> 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++){ |
|
|
@ -339,6 +325,5 @@ public class ScreenCollServiceImpl implements ScreenCollService { |
|
|
|
|
|
|
|
screenPioneerDataDao.batchInsertPioneerData(formDTO, customerId); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
} |
|
|
|