|
|
|
@ -539,39 +539,39 @@ public class SpsSyncDownloadService {
|
|
|
|
|
if (needExec(info.getTypeBus())) {
|
|
|
|
|
Map<String, Object> map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.BASIC_BUSSINESS_TYPE, createFile);
|
|
|
|
|
totalTimeMap.put(BasicExportStatusTimeEnum.BASIC_BUSSINESS_TYPE, map);
|
|
|
|
|
List<BasicBussinessTypeEntity> ioCodeLostList = bussinessTypeService.list(Wrappers.lambdaQuery(BasicBussinessTypeEntity.class)
|
|
|
|
|
List<BasicBussinessTypeEntity> bussinessTypeEntities = bussinessTypeService.list(Wrappers.lambdaQuery(BasicBussinessTypeEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), BasicBussinessTypeEntity::getUpdateTime, now)
|
|
|
|
|
.between(!(boolean) map.get("isNew"), BasicBussinessTypeEntity::getUpdateTime
|
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
|
);
|
|
|
|
|
if (CollectionUtil.isNotEmpty(ioCodeLostList)) {
|
|
|
|
|
jsonMap.put(BasicBussinessTypeEntity.class.getSimpleName(), ioCodeLostList);
|
|
|
|
|
if (CollectionUtil.isNotEmpty(bussinessTypeEntities)) {
|
|
|
|
|
jsonMap.put(BasicBussinessTypeEntity.class.getSimpleName(), bussinessTypeEntities);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//确认有开启扫码单据类型同步
|
|
|
|
|
if (needExec(info.getTypeScan())) {
|
|
|
|
|
Map<String, Object> map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.BASIC_BUSTYPE_CHANGE, createFile);
|
|
|
|
|
totalTimeMap.put(BasicExportStatusTimeEnum.BASIC_BUSTYPE_CHANGE, map);
|
|
|
|
|
List<BasicBusTypeChangeEntity> ioCodeRelList = busTypeChangeService.list(Wrappers.lambdaQuery(BasicBusTypeChangeEntity.class)
|
|
|
|
|
List<BasicBusTypeChangeEntity> busTypeChangeEntities = busTypeChangeService.list(Wrappers.lambdaQuery(BasicBusTypeChangeEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), BasicBusTypeChangeEntity::getUpdateTime, now)
|
|
|
|
|
.between(!(boolean) map.get("isNew"), BasicBusTypeChangeEntity::getUpdateTime
|
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
|
);
|
|
|
|
|
if (CollectionUtil.isNotEmpty(ioCodeRelList)) {
|
|
|
|
|
jsonMap.put(BasicBusTypeChangeEntity.class.getSimpleName(), ioCodeRelList);
|
|
|
|
|
if (CollectionUtil.isNotEmpty(busTypeChangeEntities)) {
|
|
|
|
|
jsonMap.put(BasicBusTypeChangeEntity.class.getSimpleName(), busTypeChangeEntities);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//确认有开启第三方单据类型同步
|
|
|
|
|
if (needExec(info.getTypeThird())) {
|
|
|
|
|
Map<String, Object> map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.THR_BUSTYPE_ORIGIN, createFile);
|
|
|
|
|
totalTimeMap.put(BasicExportStatusTimeEnum.THR_BUSTYPE_ORIGIN, map);
|
|
|
|
|
List<ThrBusTypeOriginEntity> ioCodeRelList = thrBusTypeOriginService.list(Wrappers.lambdaQuery(ThrBusTypeOriginEntity.class)
|
|
|
|
|
List<ThrBusTypeOriginEntity> thrBusTypeOriginEntities = thrBusTypeOriginService.list(Wrappers.lambdaQuery(ThrBusTypeOriginEntity.class)
|
|
|
|
|
.le((boolean) map.get("isNew"), ThrBusTypeOriginEntity::getUpdateTime, now)
|
|
|
|
|
.between(!(boolean) map.get("isNew"), ThrBusTypeOriginEntity::getUpdateTime
|
|
|
|
|
, map.get("oldDate"), now)
|
|
|
|
|
);
|
|
|
|
|
if (CollectionUtil.isNotEmpty(ioCodeRelList)) {
|
|
|
|
|
jsonMap.put(ThrBusTypeOriginEntity.class.getSimpleName(), ioCodeRelList);
|
|
|
|
|
if (CollectionUtil.isNotEmpty(thrBusTypeOriginEntities)) {
|
|
|
|
|
jsonMap.put(ThrBusTypeOriginEntity.class.getSimpleName(), thrBusTypeOriginEntities);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|