| | |
| | | args.put("companyId", ContextUtil.getCompanyId()); |
| | | args.put("deptId", ContextUtil.subDeptId(null)); |
| | | |
| | | if (null != param) { |
| | | if (null != param && param.size() != 0) { |
| | | String str = (String) param.get("type"); |
| | | if (StringUtils.isNotEmpty(str)) { |
| | | hql += " and type =:type"; |
| | |
| | | if(StringUtils.isEmpty(data.getDeptId())){ |
| | | data.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | if (StringUtils.isEmpty(data.getCreateUser())) { |
| | | data.setCreateUser(ContextUtil.getLoginUserCName()); |
| | | } |
| | | data.setUpdateTime(new Date()); |
| | | Session session = this.getSessionFactory().openSession(); |
| | | |
| | | try { |