新增sick扫码枪

feature-sick-saomaqiang
yiming 4 years ago
parent 5078ee97b6
commit cbfc1a9526

@ -1,6 +1,7 @@
package com.zhehekeji.web.controller; package com.zhehekeji.web.controller;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.core.JsonParser;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.zhehekeji.common.util.ValidatorUtil; import com.zhehekeji.common.util.ValidatorUtil;
import com.zhehekeji.core.pojo.Result; import com.zhehekeji.core.pojo.Result;
@ -151,6 +152,7 @@ public class CameraController {
}); });
jsonObject.put("streams",streams); jsonObject.put("streams",streams);
Writer write = new OutputStreamWriter(new FileOutputStream(file), "UTF-8"); Writer write = new OutputStreamWriter(new FileOutputStream(file), "UTF-8");
write.write(jsonObject.toJSONString()); write.write(jsonObject.toJSONString());
write.flush(); write.flush();
write.close(); write.close();

@ -89,6 +89,8 @@ public class StreetController {
JYDamHelper.openDO(equip,obj.getInteger("index")); JYDamHelper.openDO(equip,obj.getInteger("index"));
Integer status = JYDamHelper.ReadStatus(equip,obj.getInteger("num"),obj.getInteger("index")); Integer status = JYDamHelper.ReadStatus(equip,obj.getInteger("num"),obj.getInteger("index"));
log.info("ip:{},status:{}",lightSource.getIp(),status); log.info("ip:{},status:{}",lightSource.getIp(),status);
equip.DisConnect();
} }
}); });

Loading…
Cancel
Save