| | |
| | | Map<String, Object> args = new HashMap<String, Object>(); |
| | | |
| | | args.put("companyId", ContextUtil.getCompanyId()); |
| | | if(param != null){ |
| | | String str = (String) param.get("deptId"); |
| | | if (StringUtils.isEmpty(str)) { |
| | | str = ContextUtil.subDeptId(ContextUtil.getLoginUser()); |
| | | } |
| | | hql += " and deptId =:deptId "; |
| | | args.put("deptId", str); |
| | | } |
| | | |
| | | hql += " order by foodVariety"; |
| | | |
| | |
| | | } |
| | | if(null == data.getId()){ |
| | | data.setId(ContextUtil.getTimeId()); |
| | | } |
| | | if(null == data.getDeptId()){ |
| | | data.setDeptId(ContextUtil.subDeptId(ContextUtil.getLoginUser())); |
| | | } |
| | | |
| | | if(null == data.getUpperLimit()) data.setUpperLimit(0.0); |