From d489aed2de688a18d6aaf76ae3630b24d56c8ee4 Mon Sep 17 00:00:00 2001
From: 81041 <81041@192.168.10.27>
Date: 星期二, 06 十一月 2018 16:06:01 +0800
Subject: [PATCH] gprs使用REPLACE 

---
 gx_tieta/src/com/fgkj/actions/Deverror_recordAction.java |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/gx_tieta/src/com/fgkj/actions/Deverror_recordAction.java b/gx_tieta/src/com/fgkj/actions/Deverror_recordAction.java
index 29f22f1..ffc7b38 100644
--- a/gx_tieta/src/com/fgkj/actions/Deverror_recordAction.java
+++ b/gx_tieta/src/com/fgkj/actions/Deverror_recordAction.java
@@ -26,7 +26,7 @@
 		Deverror_record dev_record=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Deverror_record.class);
 		User_inf uinf=(User_inf) getUser();
 		dev_record.setUid(uinf.getUId());
-		if(file.size()>0&&file!=null){
+		if(file!=null&&file.size()>0){
 			for (int i=0;i<file.size();i++) {
 				switch (i) {
 				case 0:
@@ -47,10 +47,18 @@
 			}
 		}
 		//dev_record.setPicture_num(file.size());
+		//System.out.println(dev_record);
 		ServiceModel model=service.add(dev_record);
 		result=tojson(model);
 		return SUCCESS;
 	}
+	 //鐢ㄦ埛澶勭悊鐨勭粨鏋�
+	public String update(){
+		Deverror_record dev_record=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Deverror_record.class);
+		ServiceModel model=service.update(dev_record);
+		result=tojson(model);
+		return SUCCESS;
+	}
 	//鏍规嵁stationid鏌ヨ璁惧鐨勯棶棰樿褰�
 	public String serchByCondition(){
 		BattInf binf=getGson().fromJson(json, BattInf.class);

--
Gitblit v1.9.1