|
|
|
@ -77,3 +77,16 @@
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//单条查询维修记录表
|
|
|
|
|
public Record getWxRecordById(int id){
|
|
|
|
|
String sql="select * from t_wx_record where id=?";
|
|
|
|
|
return Db.findFirst(sql,id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//分页查询维修记录表
|
|
|
|
|
public Page<Record> getWxRecordList(int id,int pageNum, int pageSize){
|
|
|
|
|
String sql="select * from t_wx_record where id=?";
|
|
|
|
|
return Db.paginate(pageNum, pageSize, sql,id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|