| | |
| | | /*if(picNum==12){ |
| | | wrapper.set("install_pic",newPicUrl); |
| | | }*/ |
| | | int flag=mapper.update(null,wrapper); |
| | | if(flag>0&&picUrl.length()>0){ |
| | | String rootFile = CommonUtil.getRootFile();//主路径 |
| | | picUrl=picUrl.replace("doc_file",""); |
| | | //删除图片 |
| | | FileUtil.deleteFile(new File(rootFile+picUrl)); |
| | | if(picNum!=12&&picNum!=6){//文件时修改表的记录 |
| | | mapper.update(null,wrapper); |
| | | } |
| | | String rootFile = CommonUtil.getRootFile();//主路径 |
| | | picUrl=picUrl.replace("doc_file",""); |
| | | //删除图片 |
| | | FileUtil.deleteFile(new File(rootFile+picUrl)); |
| | | |
| | | } |
| | | //编辑单个图片上传 |
| | | public Response updateDevPic(MultipartFile filePic, int num,int picNum) throws IOException { |