| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.hibernate.Session; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | args.put("companyId", companyId); |
| | | args.put("progress", InoutConstant.PROGRESS_RECORD); |
| | | args.put("recordStatus1", InoutConstant.RECORD_STATUS_DEL); |
| | | args.put("recordStatus2", InoutConstant.RECORD_STATUS_ERROR); |
| | | args.put("recordStatus2", "ERROR"); |
| | | |
| | | if(StringUtils.isNotEmpty(depotId)){ |
| | | hql += " and depotId =:depotId"; |
| | |
| | | * @param endTime |
| | | * @return |
| | | */ |
| | | public List<MStockChange> listStockChange(String companyId, String depotId, Date startTime, Date endTime) { |
| | | String hql = " from " + MStockChange.class.getName() + " where companyId =:companyId"; |
| | | public List<InoutStockChange> listStockChange(String companyId, String depotId, Date startTime, Date endTime) { |
| | | String hql = " from " + InoutStockChange.class.getName() + " where companyId =:companyId"; |
| | | |
| | | Map<String, Object> args = new HashMap<String, Object>(); |
| | | args.put("companyId", companyId); |
| | |
| | | * @param endTime |
| | | * @return |
| | | */ |
| | | public List<MLossOver> listLossOver(String companyId, String depotId, Date startTime, Date endTime) { |
| | | String hql = " from " + MLossOver.class.getName() + " where companyId =:companyId"; |
| | | public List<InoutLossOver> listLossOver(String companyId, String depotId, Date startTime, Date endTime) { |
| | | String hql = " from " + InoutLossOver.class.getName() + " where companyId =:companyId"; |
| | | |
| | | Map<String, Object> args = new HashMap<String, Object>(); |
| | | args.put("companyId", companyId); |
| | |
| | | args.put("companyId", companyId); |
| | | args.put("progress", InoutConstant.PROGRESS_RECORD); |
| | | args.put("recordStatus1", InoutConstant.RECORD_STATUS_DEL); |
| | | args.put("recordStatus2", InoutConstant.RECORD_STATUS_ERROR); |
| | | args.put("recordStatus2", "ERROR"); |
| | | |
| | | if(null != startTime){ |
| | | hql += " and registerTime >:startTime"; |