| | |
| | | private List<File> file;
|
| | | //用户手动添加问题
|
| | | public String add(){
|
| | | Deverror_record dev_record=getGson("yyyy-MM-dd").fromJson(json, Deverror_record.class);
|
| | | 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:
|
| | |
| | | }
|
| | | }
|
| | | dev_record.setPicture_num(file.size());
|
| | | //System.out.println(dev_record);
|
| | | ServiceModel model=service.add(dev_record);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|