提交 713ccf66 编写于 作者: doc_wei's avatar doc_wei

图片删除修改

上级 935c0a60
......@@ -17,4 +17,6 @@ public interface SysEveWinBgPicService {
public void querySysEveWinBgPicCustomList(InputObject inputObject, OutputObject outputObject) throws Exception;
public void deleteSysEveWinBgPicMationCustomById(InputObject inputObject, OutputObject outputObject) throws Exception;
}
......@@ -8,6 +8,7 @@ import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.skyeye.authority.dao.SysEveWinBgPicDao;
import com.skyeye.authority.service.SysEveWinBgPicService;
import com.skyeye.common.constans.Constants;
import com.skyeye.common.object.InputObject;
import com.skyeye.common.object.OutputObject;
import com.skyeye.common.util.ToolUtil;
......@@ -141,5 +142,26 @@ public class SysEveWinBgPicServiceImpl implements SysEveWinBgPicService{
outputObject.settotal(beans.size());
}
}
/**
*
* @Title: deleteSysEveWinBgPicMationById
* @Description: 删除win系统桌面图片信息用户自定义
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@SuppressWarnings("static-access")
@Override
public void deleteSysEveWinBgPicMationCustomById(InputObject inputObject, OutputObject outputObject) throws Exception {
Map<String, Object> map = inputObject.getParams();
Map<String, Object> bean = sysEveWinBgPicDao.querySysEveMationById(map);
String tPath = inputObject.getRequest().getSession().getServletContext().getRealPath("/");
String basePath = tPath.substring(0, inputObject.getRequest().getSession().getServletContext().getRealPath("/").indexOf(Constants.PROJECT_WEB)) + bean.get("picUrl").toString();
ToolUtil.deleteFile(basePath);
sysEveWinBgPicDao.deleteSysEveWinBgPicMationById(map);
}
}
......@@ -110,4 +110,20 @@ public class SysEveWinBgPicController {
sysEveWinBgPicService.querySysEveWinBgPicCustomList(inputObject, outputObject);
}
/**
*
* @Title: deleteSysEveWinBgPicMationById
* @Description: 删除win系统桌面图片信息用户自定义
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/SysEveWinBgPicController/deleteSysEveWinBgPicMationCustomById")
@ResponseBody
public void deleteSysEveWinBgPicMationCustomById(InputObject inputObject, OutputObject outputObject) throws Exception{
sysEveWinBgPicService.deleteSysEveWinBgPicMationCustomById(inputObject, outputObject);
}
}
......@@ -182,6 +182,9 @@
</url>
<url id="sysevewinbgpic006" path="/post/SysEveWinBgPicController/querySysEveWinBgPicCustomList" val="获取win系统桌面图片列表用户自定义" allUse="1">
</url>
<url id="sysevewinbgpic007" path="/post/SysEveWinBgPicController/deleteSysEveWinBgPicMationCustomById" val="删除win系统桌面图片信息用户自定义" allUse="1">
<property id="rowId" name="id" ref="required" var="win系统桌面图片id"/>
</url>
<url id="sysevewinlockbgpic001" path="/post/SysEveWinLockBgPicController/querySysEveWinLockBgPicList" val="获取win系统锁屏桌面图片列表" allUse="1">
<property id="limit" name="limit" ref="required,num" var="分页参数,每页多少条数据" />
......
......@@ -77,7 +77,7 @@ layui.config({
options: {'click .del':function(index, row){
layer.confirm('确认删除选中数据吗?', { icon: 3, title: '删除win系统桌面图片' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "sysevewinbgpic003", params:{rowId: row.id}, type:'json', callback:function(json){
AjaxPostUtil.request({url:reqBasePath + "sysevewinbgpic007", params:{rowId: row.id}, type:'json', callback:function(json){
if(json.returnCode == 0){
top.winui.window.msg("删除成功", {icon: 1,time: 2000});
refreshGrid("cus-background-choose", {params:{}});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册