|
|
|
@ -48,9 +48,9 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-------------------下面是Model部分-------------------
|
|
|
|
|
|
|
|
|
|
public boolean addWxRecord(int station_id , String station_name , int equipmentId , String equipmentName , int connectorId , String connectorNo , String wx_openid , int status_id , int type_id , String type_name , String memo ,){
|
|
|
|
|
Record record = new Record();
|
|
|
|
|
//增加维修记录表
|
|
|
|
|
public boolean addWxRecord(int station_id , String station_name , int equipmentId , String equipmentName , int connectorId , String connectorNo , String wx_openid , int status_id , int type_id , String type_name , String memo ,){
|
|
|
|
|
Record record = new Record();
|
|
|
|
|
record.set("station_id",station_id);
|
|
|
|
|
record.set("station_name",station_name);
|
|
|
|
|
record.set("equipmentId",equipmentId);
|
|
|
|
@ -65,3 +65,15 @@ public boolean addWxRecord(int station_id , String station_name , int equipmentI
|
|
|
|
|
record.set("memo",memo);
|
|
|
|
|
Db.save("t_wx_record","id",record);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//删除维修记录表
|
|
|
|
|
public void delWxRecordById(int id){
|
|
|
|
|
String sql="delete from t_wx_record where id=?";
|
|
|
|
|
Db.update(sql,id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//修改维修记录表
|
|
|
|
|
public void updateWxRecordById(int id,int station_id , String station_name , int equipmentId , String equipmentName , int connectorId , String connectorNo , String wx_openid , int status_id , int type_id , String type_name , String memo ,){
|
|
|
|
|
String sql="update t_wx_record set station_id= ?,station_name= ?,equipmentId= ?,equipmentName= ?,connectorId= ?,connectorNo= ?,wx_openid= ?,status_id= ?,create_time= ?,type_id= ?,type_name= ?,memo= ? where id=?";
|
|
|
|
|
Db.update(sql,station_id , station_name , equipmentId , equipmentName , connectorId , connectorNo , wx_openid , status_id , create_time , type_id , type_name , memo , id);
|
|
|
|
|
}
|
|
|
|
|