add:添加日志输出,修改部门同步请求的参数:时间戳

This commit is contained in:
wxyclub
2023-07-20 17:45:41 +08:00
parent 9320f2bfc5
commit bce2d3dc56
4 changed files with 26 additions and 13 deletions
@@ -532,14 +532,15 @@ public class DataSyncServiceImpl implements IDataSyncService {
tsInstitutionService.updateBatchById(updateTsInstitutionList);
}
//需要删除的数据
if(!delTsInstitutionList.isEmpty()){
logger.debug("本次删除的组织机构为:"+JSONObject.toJSONString(delTsInstitutionList));
List<String> delIdList = new ArrayList<>();
for(TsInstitution data : delTsInstitutionList){
delIdList.add(data.getId());
}
tsInstitutionService.removeByIds(delIdList);
}
// 先行注释,会删除所有部门
// if(!delTsInstitutionList.isEmpty()){
// logger.debug("本次删除的组织机构为:"+JSONObject.toJSONString(delTsInstitutionList));
// List<String> delIdList = new ArrayList<>();
// for(TsInstitution data : delTsInstitutionList){
// delIdList.add(data.getId());
// }
// tsInstitutionService.removeByIds(delIdList);
// }
//全部部门
List<TsInstitution> allTsInstitutionListForPids = new ArrayList<>(addTsInstitutionList);
allTsInstitutionListForPids.addAll(updateTsInstitutionList);
@@ -5021,6 +5021,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
QueryWrapper<SarBussStandFile> objectQueryWrapper = new QueryWrapper<>();
objectQueryWrapper.eq("ORI_ATT_ID",fileId);
objectQueryWrapper.eq("USE_MODEL","SOURCE_FILE");
objectQueryWrapper.eq("VALID_FLAG","0");
//objectQueryWrapper.ne("FILE_SUFFIX","docx");
List<SarBussStandFile> sarBussStandFiles = sarBussStandFileEODao.selectList(objectQueryWrapper);
if(!sarBussStandFiles.isEmpty()) {