Commit ada3b161 authored by tangwei's avatar tangwei

点状态,更新

parent a85fe42f
...@@ -91,7 +91,7 @@ public class InspectionController extends BaseController{ ...@@ -91,7 +91,7 @@ public class InspectionController extends BaseController{
if(map!=null){ if(map!=null){
int status= Integer.valueOf(map.get("status").toString()); int status= Integer.valueOf(map.get("status").toString());
String code= map.get("code").toString(); String code= map.get("code").toString();
if(status==2){ if(status==1){
map1.put("pointtype", true); map1.put("pointtype", true);
}else{ }else{
map1.put("pointtype",false ); map1.put("pointtype",false );
......
...@@ -314,10 +314,10 @@ ...@@ -314,10 +314,10 @@
<select id="getporint" resultType="java.util.Map"> <select id="getporint" resultType="java.util.Map">
SELECT SELECT
p_point.org_code code, p_alarm_point.`code` code ,
p_point.status p_alarm_point.is_alarm status
from p_point where p_point.id=#{pointid}
from p_alarm_point where p_alarm_point.point_type=3 and p_alarm_point.is_alarm=1 and p_alarm_point.point_id=#{pointid}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment