|
@@ -11,6 +11,7 @@ import com.dahuatech.icc.oauth.model.v202010.GeneralRequest;
|
|
|
import com.dahuatech.icc.oauth.model.v202010.GeneralResponse;
|
|
|
import com.huimv.video.dhicc.entity.IccChannel;
|
|
|
import com.huimv.video.dhicc.result.R;
|
|
|
+import com.sun.java.swing.plaf.windows.WindowsTextAreaUI;
|
|
|
import net.sf.json.JSONObject;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -145,6 +146,7 @@ public class ClientCarManageController {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
//黑名单列表
|
|
|
@RequestMapping("/ShowCarBlackList")
|
|
|
public GeneralResponse ShowCarBlackList (HttpServletRequest request ,@RequestParam(name = "farmId") Integer farmId,
|
|
@@ -163,6 +165,27 @@ public class ClientCarManageController {
|
|
|
return generalResponse ;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ //为添加到任何名单 //draw=4是白名单 draw=5是黑名单
|
|
|
+ @RequestMapping("/ShowUnSendCar")
|
|
|
+ public GeneralResponse ShowUnSendCar (HttpServletRequest request , @RequestParam(name = "farmId") Integer farmId,
|
|
|
+ @RequestParam(name = "pageNum") String pageNum,//车辆编号
|
|
|
+ @RequestParam(name = "draw") Integer draw,//车辆编号
|
|
|
+ @RequestParam(name = "pageSize") String pageSize //车牌号
|
|
|
+ ) throws ClientException {
|
|
|
+ if(farmId!=1){
|
|
|
+ return null ;
|
|
|
+ }
|
|
|
+ String timestamp = String.valueOf((new Date()).getTime());
|
|
|
+ Long aLong = Long.valueOf(timestamp);
|
|
|
+ String Url = "/evo-apigw/ipms/carBlackList/unSendCars?pageNum="+pageNum+"&draw="+draw+"&pageSize="+pageSize+"&pageSize="+pageSize+"&_="+aLong;
|
|
|
+ IClient iClient = new DefaultClient();
|
|
|
+ GeneralRequest generalRequest = new GeneralRequest(Url, Method.GET);
|
|
|
+ GeneralResponse generalResponse = iClient.doAction(generalRequest, generalRequest.getResponseClass());
|
|
|
+ return generalResponse ;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
//添加车辆进黑名单列表
|
|
|
@RequestMapping("/addCarBlackList")
|
|
|
public GeneralResponse addCarBlackList (HttpServletRequest request ,@RequestParam(name = "farmId") Integer farmId,
|