| | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.*; |
| | | |
| | | @Repository |
| | |
| | | |
| | | /** |
| | | * 根据参数查询出入库通知单 |
| | | * |
| | | * @param parameter |
| | | * @return |
| | | */ |
| | |
| | | }else { |
| | | hql += InoutNoticeOut.class.getName(); |
| | | } |
| | | hql += " where companyId =:companyId and deptId =:deptId"; |
| | | hql += " where companyId =:companyId and deptId =:deptId and completeStatus =:completeStatus"; |
| | | |
| | | Map<String, Object> args = new HashMap<>(); |
| | | args.put("companyId", ContextUtil.getCompanyId()); |
| | | args.put("deptId", ContextUtil.subDeptId(null)); |
| | | |
| | | args.put("completeStatus", "NONE"); |
| | | String str = (String) parameter.get("customerId"); |
| | | if (StringUtils.isNotEmpty(str)) { |
| | | hql += " and customerId =:customerId"; |
| | |
| | | |
| | | /** |
| | | * 根据id获取通知单信息 |
| | | * |
| | | * @param id |
| | | * @param type |
| | | * @return |