可删除

master
cez 2022-03-15 13:31:45 +08:00
parent b6f3184f0a
commit cffb7deb82
4 changed files with 66 additions and 66 deletions

View File

@ -9,12 +9,12 @@ import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
/** /**
* @Title: Entity * @Title: Entity
* @Description: * @Description:
* @author erzhongxmu * @author erzhongxmu
* @date 2017-09-11 15:08:34 * @date 2017-09-11 15:08:34
* @version V1.0 * @version V1.0
* *
*/ */
public class WmNoticeImpPage implements java.io.Serializable { public class WmNoticeImpPage implements java.io.Serializable {
@ -68,10 +68,10 @@ public class WmNoticeImpPage implements java.io.Serializable {
/**进货通知单号*/ /**进货通知单号*/
@Excel(name="通知单号") @Excel(name="通知单号")
private String noticeId; private String noticeId;
@Excel(name="合作伙伴编号") @Excel(name="供应商编码")
private String supCode; private String supCode;
/**附件*/ /**附件*/
@Excel(name="合作伙伴名称") @Excel(name="供应商名称")
private String supName; private String supName;
@Excel(name="其他系统ID") @Excel(name="其他系统ID")
private java.lang.String otherId; private java.lang.String otherId;

View File

@ -94,7 +94,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @param request * @param request
* @return * @return
*/ */
@ -146,10 +146,10 @@ public class UserController extends BaseController {
} }
} }
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "user") @RequestMapping(params = "user")
@ -163,7 +163,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "userinfo") @RequestMapping(params = "userinfo")
@ -175,7 +175,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "changepassword") @RequestMapping(params = "changepassword")
@ -184,12 +184,12 @@ public class UserController extends BaseController {
request.setAttribute("user", user); request.setAttribute("user", user);
return "system/user/changepassword"; return "system/user/changepassword";
} }
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "savenewpwd") @RequestMapping(params = "savenewpwd")
@ -218,14 +218,14 @@ public class UserController extends BaseController {
} }
return j; return j;
} }
/** /**
* *
* *
* @author Chj * @author Chj
*/ */
@RequestMapping(params = "changepasswordforuser") @RequestMapping(params = "changepasswordforuser")
public ModelAndView changepasswordforuser(TSUser user, HttpServletRequest req) { public ModelAndView changepasswordforuser(TSUser user, HttpServletRequest req) {
if (StringUtil.isNotEmpty(user.getId())) { if (StringUtil.isNotEmpty(user.getId())) {
@ -236,9 +236,9 @@ public class UserController extends BaseController {
} }
return new ModelAndView("system/user/adminchangepwd"); return new ModelAndView("system/user/adminchangepwd");
} }
/** /**
* *
* @param req * @param req
@ -260,19 +260,19 @@ public class UserController extends BaseController {
users.setPassword(PasswordUtil.encrypt(users.getUserName(), password, PasswordUtil.getStaticSalt())); users.setPassword(PasswordUtil.encrypt(users.getUserName(), password, PasswordUtil.getStaticSalt()));
users.setStatus(Globals.User_Normal); users.setStatus(Globals.User_Normal);
users.setActivitiSync(users.getActivitiSync()); users.setActivitiSync(users.getActivitiSync());
systemService.updateEntitie(users); systemService.updateEntitie(users);
message = "用户: " + users.getUserName() + "密码重置成功"; message = "用户: " + users.getUserName() + "密码重置成功";
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO); systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} }
j.setMsg(message); j.setMsg(message);
return j; return j;
} }
/** /**
* *
* *
* @author pu.chen * @author pu.chen
*/ */
@RequestMapping(params = "lock") @RequestMapping(params = "lock")
@ -303,11 +303,11 @@ public class UserController extends BaseController {
j.setMsg(message); j.setMsg(message);
return j; return j;
} }
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "role") @RequestMapping(params = "role")
@ -335,7 +335,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "depart") @RequestMapping(params = "depart")
@ -362,7 +362,7 @@ public class UserController extends BaseController {
} }
/** /**
* easyuiAJAX * easyuiAJAX
* @param request * @param request
* @param response * @param response
* @param dataGrid * @param dataGrid
@ -373,9 +373,9 @@ public class UserController extends BaseController {
//查询条件组装器 //查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, user); org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, user);
Short[] userstate = new Short[]{Globals.User_Normal, Globals.User_ADMIN, Globals.User_Forbidden}; // Short[] userstate = new Short[]{Globals.User_Normal, Globals.User_ADMIN, Globals.User_Forbidden};
cq.in("status", userstate); // cq.in("status", userstate);
cq.eq("deleteFlag", Globals.Delete_Normal); // cq.eq("deleteFlag", Globals.Delete_Normal);
String orgIds = request.getParameter("orgIds"); String orgIds = request.getParameter("orgIds");
List<String> orgIdList = extractIdListByComma(orgIds); List<String> orgIdList = extractIdListByComma(orgIds);
@ -417,35 +417,35 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "deleteDialog") @RequestMapping(params = "deleteDialog")
public String deleteDialog(TSUser user,HttpServletRequest request) { public String deleteDialog(TSUser user,HttpServletRequest request) {
request.setAttribute("user", user); request.setAttribute("user", user);
return "system/user/user-delete"; return "system/user/user-delete";
} }
@RequestMapping(params = "delete") @RequestMapping(params = "delete")
@ResponseBody @ResponseBody
public AjaxJson delete(TSUser user, @RequestParam String deleteType, HttpServletRequest req) { public AjaxJson delete(TSUser user, @RequestParam String deleteType, HttpServletRequest req) {
if (deleteType.equals("delete")) { if (deleteType.equals("delete")) {
return this.del(user, req); return this.del(user, req);
}else if (deleteType.equals("deleteTrue")) { }else if (deleteType.equals("deleteTrue")) {
return this.trueDel(user, req); return this.trueDel(user, req);
}else{ }else{
AjaxJson j = new AjaxJson(); AjaxJson j = new AjaxJson();
j.setMsg("删除逻辑参数异常,请重试."); j.setMsg("删除逻辑参数异常,请重试.");
return j; return j;
} }
} }
/** /**
* *
* *
* @param user * @param user
* @param req * @param req
* @return * @return
@ -468,7 +468,7 @@ public class UserController extends BaseController {
userService.updateEntitie(user); userService.updateEntitie(user);
message = "用户:" + user.getUserName() + "删除成功"; message = "用户:" + user.getUserName() + "删除成功";
/** /**
if (roleUser.size()>0) { if (roleUser.size()>0) {
// 删除用户时先删除用户和角色关系表 // 删除用户时先删除用户和角色关系表
@ -483,7 +483,7 @@ public class UserController extends BaseController {
userService.delete(user); userService.delete(user);
message = "用户:" + user.getUserName() + "删除成功"; message = "用户:" + user.getUserName() + "删除成功";
} }
**/ **/
} else { } else {
message = "超级管理员不可删除"; message = "超级管理员不可删除";
} }
@ -491,7 +491,7 @@ public class UserController extends BaseController {
j.setMsg(message); j.setMsg(message);
return j; return j;
} }
/** /**
* *
* @param user * @param user
@ -526,7 +526,7 @@ public class UserController extends BaseController {
} else { } else {
message = "超级管理员不可删除"; message = "超级管理员不可删除";
}*/ }*/
try { try {
message = userService.trueDel(user); message = userService.trueDel(user);
} catch (Exception e) { } catch (Exception e) {
@ -550,7 +550,7 @@ public class UserController extends BaseController {
}*/ }*/
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -571,7 +571,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @param user * @param user
* @param req * @param req
* @return * @return
@ -673,7 +673,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "roles") @RequestMapping(params = "roles")
@ -687,7 +687,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @param request * @param request
* @param response * @param response
* @param dataGrid * @param dataGrid
@ -703,7 +703,7 @@ public class UserController extends BaseController {
/** /**
* easyuiAJAX * easyuiAJAX
* *
* @param request * @param request
* @param response * @param response
* @param dataGrid * @param dataGrid
@ -725,7 +725,7 @@ public class UserController extends BaseController {
TSDepart tsDepart = new TSDepart(); TSDepart tsDepart = new TSDepart();
if (StringUtil.isNotEmpty(user.getId())) { if (StringUtil.isNotEmpty(user.getId())) {
user = systemService.getEntity(TSUser.class, user.getId()); user = systemService.getEntity(TSUser.class, user.getId());
req.setAttribute("user", user); req.setAttribute("user", user);
idandname(req, user); idandname(req, user);
getOrgInfos(req, user); getOrgInfos(req, user);
@ -774,7 +774,7 @@ public class UserController extends BaseController {
req.setAttribute("roleName", roleName); req.setAttribute("roleName", roleName);
} }
public void getOrgInfos(HttpServletRequest req, TSUser user) { public void getOrgInfos(HttpServletRequest req, TSUser user) {
List<TSUserOrg> tSUserOrgs = systemService.findByProperty(TSUserOrg.class, "tsUser.id", user.getId()); List<TSUserOrg> tSUserOrgs = systemService.findByProperty(TSUserOrg.class, "tsUser.id", user.getId());
String orgIds = ""; String orgIds = "";
@ -789,7 +789,7 @@ public class UserController extends BaseController {
req.setAttribute("departname", departname); req.setAttribute("departname", departname);
} }
/** /**
* *
*/ */
@ -802,7 +802,7 @@ public class UserController extends BaseController {
/** /**
* panel * panel
* *
* @param request * @param request
* @return * @return
*/ */
@ -817,7 +817,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @param request * @param request
* @param response * @param response
* @param dataGrid * @param dataGrid
@ -858,7 +858,7 @@ public class UserController extends BaseController {
/** /**
* panel * panel
* *
* @param request * @param request
* @return * @return
*/ */
@ -876,7 +876,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @param request * @param request
* @param response * @param response
* @param dataGrid * @param dataGrid
@ -890,7 +890,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @param user * @param user
* @param req * @param req
* @return * @return
@ -911,7 +911,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "index") @RequestMapping(params = "index")
@ -921,7 +921,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "main") @RequestMapping(params = "main")
@ -931,7 +931,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @return * @return
*/ */
@RequestMapping(params = "testpage") @RequestMapping(params = "testpage")
@ -941,7 +941,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @param request * @param request
* @return * @return
*/ */
@ -954,7 +954,7 @@ public class UserController extends BaseController {
/** /**
* *
* *
* @param user * @param user
* @param req * @param req
* @return * @return
@ -1030,7 +1030,7 @@ public class UserController extends BaseController {
* @Title: saveStyle * @Title: saveStyle
* @Description: * @Description:
* @param request * @param request
* @return AjaxJson * @return AjaxJson
* @throws * @throws
*/ */
@RequestMapping(params = "savestyle") @RequestMapping(params = "savestyle")
@ -1061,7 +1061,7 @@ public class UserController extends BaseController {
// logger.info("cssTheme:default"); // logger.info("cssTheme:default");
// } // }
if(StringUtils.isNotEmpty(indexStyle)){ if(StringUtils.isNotEmpty(indexStyle)){
Cookie cookie = new Cookie("JEECGINDEXSTYLE", indexStyle); Cookie cookie = new Cookie("JEECGINDEXSTYLE", indexStyle);
//设置cookie有效期为一个月 //设置cookie有效期为一个月
@ -1289,4 +1289,4 @@ public class UserController extends BaseController {
public String userSelect() { public String userSelect() {
return "system/user/userSelect"; return "system/user/userSelect";
} }
} }

View File

@ -57,10 +57,10 @@
<t:dgCol title="注册日期" field="zhuCeRiQi" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol> <t:dgCol title="注册日期" field="zhuCeRiQi" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备注" field="beiZhu" queryMode="group" width="120"></t:dgCol> <t:dgCol title="备注" field="beiZhu" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol> <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgDelOpt title="删除" operationCode="mdcusdel" url="mdCusController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/> <t:dgDelOpt title="删除" url="mdCusController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" height="600" icon="icon-add" url="mdCusController.do?goAdd" funname="add"></t:dgToolBar> <t:dgToolBar title="录入" height="600" icon="icon-add" url="mdCusController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" height="600" icon="icon-edit" operationCode="mdcusedit" url="mdCusController.do?goUpdate" funname="update"></t:dgToolBar> <t:dgToolBar title="编辑" height="600" icon="icon-edit" url="mdCusController.do?goUpdate" funname="update"></t:dgToolBar>
<%-- <t:dgToolBar title="批量删除" icon="icon-remove" url="mdCusController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%> <t:dgToolBar title="批量删除" icon="icon-remove" url="mdCusController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<t:dgToolBar title="查看" height="600" icon="icon-search" url="mdCusController.do?goUpdate" funname="detail"></t:dgToolBar> <t:dgToolBar title="查看" height="600" icon="icon-search" url="mdCusController.do?goUpdate" funname="detail"></t:dgToolBar>
<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar> <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar> <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>

View File

@ -58,7 +58,7 @@
<t:dgDelOpt title="删除" url="mdSupController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/> <t:dgDelOpt title="删除" url="mdSupController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" icon="icon-add" url="mdSupController.do?goAdd" funname="add"></t:dgToolBar> <t:dgToolBar title="录入" icon="icon-add" url="mdSupController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="mdSupController.do?goUpdate" funname="update"></t:dgToolBar> <t:dgToolBar title="编辑" icon="icon-edit" url="mdSupController.do?goUpdate" funname="update"></t:dgToolBar>
<%-- <t:dgToolBar title="批量删除" icon="icon-remove" url="mdSupController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%> <t:dgToolBar title="批量删除" icon="icon-remove" url="mdSupController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<t:dgToolBar title="查看" icon="icon-search" url="mdSupController.do?goUpdate" funname="detail"></t:dgToolBar> <t:dgToolBar title="查看" icon="icon-search" url="mdSupController.do?goUpdate" funname="detail"></t:dgToolBar>
<t:dgToolBar operationCode="uasimpcus" title="第三方系统导入" icon="icon-put" funname="otherimp"></t:dgToolBar> <t:dgToolBar operationCode="uasimpcus" title="第三方系统导入" icon="icon-put" funname="otherimp"></t:dgToolBar>