Merge remote-tracking branch 'origin/liujun-2024-04-12一公司人员定位' into liujun-2024-04-12一公司人员定位

liujun-2024-05-23-接口漏洞修复
limingyu 2024-04-13 16:15:39 +08:00
commit ad356b9697
4 changed files with 32 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import com.zcloud.entity.PageData;
import com.zcloud.entity.Page; import com.zcloud.entity.Page;
import com.zcloud.service.dw.DwService; import com.zcloud.service.dw.DwService;
import com.zcloud.service.dw.dto.*; import com.zcloud.service.dw.dto.*;
import com.zcloud.util.Jurisdiction;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -44,6 +45,16 @@ public class DwController extends BaseController {
return dwService.saveOrUpdateMap(mapGet); return dwService.saveOrUpdateMap(mapGet);
} }
@RequestMapping(value = "deleteMap")
public Object deleteMap() throws Exception {
PageData pd = this.getPageData();
DeleteDto deleteDto = new DeleteDto();
deleteDto.setId(pd.getString("id"));
deleteDto.setOperatorId(Jurisdiction.getUSER_ID());
deleteDto.setOperatorName(Jurisdiction.getName());
return dwService.deleteMap(deleteDto);
}
@RequestMapping(value = "getAlarmList") @RequestMapping(value = "getAlarmList")
public Object getAlarmList(Page page) throws Exception { public Object getAlarmList(Page page) throws Exception {
PageData pd = this.getPageData(); PageData pd = this.getPageData();

View File

@ -10,4 +10,6 @@ public interface DwService {
Object getAlarmList(AlarmGet param) throws Exception; Object getAlarmList(AlarmGet param) throws Exception;
Object manageAlarm(AlarmManageDto param) throws Exception; Object manageAlarm(AlarmManageDto param) throws Exception;
Object getDictionary() throws Exception; Object getDictionary() throws Exception;
Object deleteMap(DeleteDto deleteDto);
} }

View File

@ -0,0 +1,14 @@
package com.zcloud.service.dw.dto;
import lombok.Data;
import java.util.List;
@Data
public class DeleteDto {
private String id;
private List<String> ids;
private String operatorId;
private String operatorName;
}

View File

@ -56,7 +56,11 @@ public class DwServiceImpl implements DwService {
@Override @Override
public Object getDictionary() throws Exception { public Object getDictionary() throws Exception {
System.out.println(url + "dw/getDictionary");
return HttpUtil.post(url + "dw/getDictionary", ""); return HttpUtil.post(url + "dw/getDictionary", "");
} }
@Override
public Object deleteMap(DeleteDto deleteDto) {
return HttpUtil.post(url + "dw/deleteMap", deleteDto);
}
} }