宿州误改成宣城
parent
ea4df4a979
commit
98174ff8f8
|
|
@ -252,7 +252,7 @@ public class LocationController {
|
|||
if (null != params.get("deviceType")){
|
||||
device.setDeviceType(params.get("deviceType").toString());
|
||||
}
|
||||
if (null != params.get("zzjgdm") && !"341800000000".equals(params.get("zzjgdm").toString())){
|
||||
if (null != params.get("zzjgdm") && !"341300000000".equals(params.get("zzjgdm").toString())){
|
||||
String[] zzjgdms = params.get("zzjgdm").toString().split(",");
|
||||
device.setZzjgdms(zzjgdms);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ public class IndexStaticsController extends BaseController {
|
|||
/*
|
||||
* 通过ES来监听各类设备定位是否正常
|
||||
* */
|
||||
@Scheduled(cron = "0 */30 * * * ?")
|
||||
// @Scheduled(cron = "0 */30 * * * ?")
|
||||
public void listen(){
|
||||
List<String> strs = elasticSearchService.linstenDataStatus();
|
||||
if (ywryProperties.getIsSend()){
|
||||
|
|
|
|||
|
|
@ -245,10 +245,11 @@ public class TDeviceServiceImpl implements ITDeviceService {
|
|||
List<TDevice> toUpdate = new ArrayList<>();
|
||||
// 找到需要插入的记录
|
||||
List<TDevice> toInsert = new ArrayList<>();
|
||||
LambdaQueryWrapper<SysdeptJly> lqw = new LambdaQueryWrapper<>();
|
||||
// LambdaQueryWrapper<SysdeptJly> lqw = new LambdaQueryWrapper<>();
|
||||
for (TDevice entity : list) {
|
||||
baseMapper.insertOrUpdateByCodeAndType(entity);
|
||||
// boolean exists = false;
|
||||
if (entity.getDeviceType().equals("5") || entity.getDeviceType().equals("8")
|
||||
/*if (entity.getDeviceType().equals("5") || entity.getDeviceType().equals("8")
|
||||
|| entity.getDeviceType().equals("7")){ // 记录仪、5G车载、布控球 处理机构
|
||||
lqw.eq(SysdeptJly::getQyCode,entity.getZzjgdm());
|
||||
SysdeptJlyVo jlyVo = deptJlyMapper.selectVoOne(lqw);
|
||||
|
|
@ -256,8 +257,8 @@ public class TDeviceServiceImpl implements ITDeviceService {
|
|||
entity.setZzjgdm(jlyVo.getDeptId());
|
||||
entity.setZzjgmc(jlyVo.getDeptName());
|
||||
}
|
||||
baseMapper.insertOrUpdateByCodeAndType(entity);
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
/*for (TDevice existingEntity : existingEntities) {
|
||||
if (entity.getDeviceCode().equals(existingEntity.getDeviceCode()) && entity.getDeviceType().equals(existingEntity.getDeviceType())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue