|
@ -135,7 +135,6 @@ public class ZyDictService {
|
|
|
zyIvStaffRegTypeAllotDictDao.save(zyIvStaffRegTypeAllotDictTemp);
|
|
|
}
|
|
|
|
|
|
@Transactional
|
|
|
public void synchronizeZ_iv_staff_dict() {
|
|
|
logger.info("synchronized zy_iv_staff_dict start");
|
|
|
String dictName = this.IV_STAFF_DICT;
|
|
@ -147,11 +146,24 @@ public class ZyDictService {
|
|
|
zyIvStaffDictDao.deleteAll();
|
|
|
//新增数据
|
|
|
logger.info("save table zy_iv_staff_dict ,size:" + zyIvStaffDicts.size());
|
|
|
zyIvStaffDictDao.save(zyIvStaffDicts);
|
|
|
List<ZyIvStaffDict> zyIvStaffRegTypeAllotDictTemp = new ArrayList<>();
|
|
|
for (int i = 0; i < zyIvStaffDicts.size(); i++) {
|
|
|
zyIvStaffRegTypeAllotDictTemp.add(zyIvStaffDicts.get(i));
|
|
|
//批量提交
|
|
|
if (((zyIvStaffRegTypeAllotDictTemp.size() % 2000) == 0) || (zyIvStaffRegTypeAllotDictTemp.size() == i)) {
|
|
|
saveZ_iv_staff_dict(zyIvStaffRegTypeAllotDictTemp);
|
|
|
zyIvStaffRegTypeAllotDictTemp = new ArrayList<>();
|
|
|
}
|
|
|
}
|
|
|
logger.info("synchronized zy_iv_staff_dict end");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@Transactional
|
|
|
private void saveZ_iv_staff_dict(List<ZyIvStaffDict> zyIvStaffDicts) {
|
|
|
zyIvStaffDictDao.save(zyIvStaffDicts);
|
|
|
}
|
|
|
|
|
|
public void synchronizeZy_iv_physic_dict() {
|
|
|
logger.info("synchronized zy_iv_physic_dict start");
|
|
|
String dictName = this.IV_PHYSIC_DICT;
|
|
@ -181,7 +193,6 @@ public class ZyDictService {
|
|
|
zyIvPhysicDictDao.save(zyIvPhysicDictsTemp);
|
|
|
}
|
|
|
|
|
|
@Transactional
|
|
|
public void synchronizeZy_iv_org_physic_allot_dict() {
|
|
|
logger.info("synchronized zy_iv_org_physic_allot_dict start");
|
|
|
String dictName = this.IV_ORG_PHYSIC_ALLOT_DICT;
|
|
@ -240,7 +251,6 @@ public class ZyDictService {
|
|
|
zyIvDiagnoseClassDictDao.save(zIvDiagnoseClassDicts);
|
|
|
}
|
|
|
|
|
|
@Transactional
|
|
|
public void synchronizeZy_iv_dept_staff_allot_dict() {
|
|
|
logger.info("synchronized zy_iv_dept_staff_allot_dict start");
|
|
|
String dictName = this.IV_DEPT_STAFF_ALLOT_DICT;
|
|
@ -266,6 +276,7 @@ public class ZyDictService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@Transactional
|
|
|
private void saveZy_iv_dept_staff_allot_dict(List<ZyIvDeptStaffAllotDict> syIvDeptStaffAllotDictz) {
|
|
|
zyIvDeptStaffAllotDictDao.save(syIvDeptStaffAllotDictz);
|
|
|
}
|