Commit 46a3911f authored by hongguangwu's avatar hongguangwu

优化人员档案

parent 4e1a3944
......@@ -561,7 +561,9 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
*/
private void saveData() {
log.info("{}条数据,开始存储数据库!", cachedDataList.size());
updateContract(cachedDataList, errorMessageList);
if (!cachedDataList.isEmpty()) {
updateContract(cachedDataList, errorMessageList);
}
log.info("存储数据库成功!");
}
}).sheet().doRead();
......@@ -663,7 +665,9 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
*/
private void saveData() {
log.info("{}条数据,开始存储数据库!", cachedDataList.size());
importContract(cachedDataList, errorMessageList);
if (!cachedDataList.isEmpty()) {
importContract(cachedDataList, errorMessageList);
}
log.info("存储数据库成功!");
}
}).sheet().doRead();
......
......@@ -395,7 +395,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
*/
private void saveData() {
log.info("{}条数据,开始存储数据库!", cachedDataList.size());
batchMinusEmployeeCore(cachedDataList, errorMessageList);
if (!cachedDataList.isEmpty()) {
batchMinusEmployeeCore(cachedDataList, errorMessageList);
}
log.info("存储数据库成功!");
}
}).sheet().doRead();
......@@ -845,7 +847,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
*/
private void saveData() {
log.info("{}条数据,开始存储数据库!", cachedDataList.size());
batchImportCore(cachedDataList, isCanAdd, errorMessageList);
if (!cachedDataList.isEmpty()) {
batchImportCore(cachedDataList, isCanAdd, errorMessageList);
}
log.info("存储数据库成功!");
}
}).sheet().doRead();
......@@ -1436,7 +1440,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
*/
private void saveData() {
log.info("{}条数据,开始存储数据库!", cachedDataList.size());
batchUpdateCore(cachedDataList, errorMessageList);
if (!cachedDataList.isEmpty()) {
batchUpdateCore(cachedDataList, errorMessageList);
}
log.info("存储数据库成功!");
}
}).sheet().doRead();
......
......@@ -116,7 +116,7 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh
public synchronized TCheckMobile checkOneMobile(String mobile) {
TCheckMobile returnMobile = new TCheckMobile();
returnMobile.setMobile(mobile);
returnMobile.setMessage("未找到!");
returnMobile.setMessage("手机号不可用!");
returnMobile.setStatus(CommonConstants.ZERO_STRING);
if (Common.isNotNull(mobile)) {
//1.先从本地库获取正常数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment