JEECG 逻辑删除
Posted 廿二又
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JEECG 逻辑删除相关的知识,希望对你有一定的参考价值。
逻辑删除
/**
* 删除员工表
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(DbJpEmployeeEntity dbJpEmployee, HttpServletRequest request)
AjaxJson j = new AjaxJson();
dbJpEmployee = systemService.getEntity(DbJpEmployeeEntity.class, dbJpEmployee.getId());
String message = "员工表删除成功";
try
//dbJpEmployeeService.delMain(dbJpEmployee);
dbJpEmployee.setDeleteFlag(1);//删除
dbJpEmployeeService.saveOrUpdate(dbJpEmployee);
systemService.addLog(message+",工号:"+dbJpEmployee.getWorkNum(), Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
catch(Exception e)
e.printStackTrace();
message = "金彭员工表删除失败";
throw new BusinessException(e.getMessage());
j.setMsg(message);
return j;
以上是关于JEECG 逻辑删除的主要内容,如果未能解决你的问题,请参考以下文章
JEECG datagrid 页面刷新reloadTable