一公司企业端地图功能同步

liujun-2024-05-23-接口漏洞修复
liujun 2024-04-17 11:21:46 +08:00
parent b93c59b0c9
commit 086632290b
2 changed files with 23 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import com.zcloud.entity.Page;
import com.zcloud.entity.PageData;
import com.zcloud.service.bus.CorpInfoService;
import com.zcloud.service.dw.DwService;
import com.zcloud.service.dw.dto.AlarmGet;
import com.zcloud.service.dw.dto.MapGet;
import com.zcloud.service.dw.dto.MapInfo;
import com.zcloud.service.dw.dto.TraceGet;
@ -919,6 +920,27 @@ public class MapController extends BaseController {
}
}
@RequestMapping(value = "/getAlarmList")
@ResponseBody
public Object getAlarmList() throws Exception {
Map<String, Object> map = new HashMap<String, Object>();
PageData pd = this.getPageData();
// TODO 判断是否是公司人员定位
if (pd.get("corpId") != null && "035958e685cf4850bc40151c5e0617a6".equals(pd.getString("corpId"))) {
AlarmGet alarmGet = new AlarmGet();
alarmGet.setPage(new com.zcloud.service.dw.dto.Page());
alarmGet.getPage().setCurrent("1");
alarmGet.getPage().setSize("20");
alarmGet.setCorpId(pd.getString("corpId"));
return dwService.getAlarmList(alarmGet);
}else {
PageData value = usersService.getPersonByCardNo(pd);
map.put("result", "success");
map.put("pd", value);
return map;
}
}
/**

View File

@ -8,6 +8,7 @@ public class AlarmGet {
private String startTime;
private String endTime;
private String status;
private String corpId;
private Page page;
}