| | |
| | | * |
| | | * @param checkId |
| | | * @param companyId |
| | | * @param deptId |
| | | * @param foodVariety |
| | | * @return |
| | | */ |
| | | public List<CheckItemData> listCheckItem(String checkId, String companyId, |
| | | String deptId, String foodVariety) { |
| | | public List<CheckItemData> listCheckItem(String checkId, String companyId, String foodVariety) { |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | deptId = ContextUtil.subDeptId(ContextUtil.getLoginUser()); |
| | | } |
| | | |
| | | List<CheckItemData> list = checkStandardService.getCheckItemById(checkId, companyId); |
| | | |
| | | if (list == null || list.isEmpty()) { |
| | | list = checkStandardService.getCheckItemByStandard(checkId, companyId, deptId, foodVariety); |
| | | list = checkStandardService.getCheckItemByStandard(checkId, companyId, foodVariety); |
| | | } |
| | | return list; |
| | | } |