activeInfoModel.setObuId(issueOrderinfo.getObuId()); | activeInfoModel.setObuId(issueOrderinfo.getObuId()); | ||||
QtkCardInfo cardInfo = qtkCardInfoRepo.findByCardId(issueOrderinfo.getCardId()); | QtkCardInfo cardInfo = qtkCardInfoRepo.findByCardId(issueOrderinfo.getCardId()); | ||||
activeInfoModel.setWarrantyDate(cardInfo.getWarrantyDate()); | activeInfoModel.setWarrantyDate(cardInfo.getWarrantyDate()); | ||||
return null; | |||||
return activeInfoModel; | |||||
} | } | ||||
@Override | @Override |
hql.append(" and promotionModes = :promotionModes", promotionModes); | hql.append(" and promotionModes = :promotionModes", promotionModes); | ||||
if (pass == 1){//待领取 | if (pass == 1){//待领取 | ||||
hql.append(" and orderStep = :orderStep", IssueOrderStep.WAITING_AUDIT); | hql.append(" and orderStep = :orderStep", IssueOrderStep.WAITING_AUDIT); | ||||
hql.append(" and orderStatus = :orderStatus", "NORMAL"); | |||||
hql.append(" and "); | hql.append(" and "); | ||||
hql.append("(receiveStatus is null or receiveStatus = 0)"); | hql.append("(receiveStatus is null or receiveStatus = 0)"); | ||||
} | } | ||||
if (pass == 2){//待审核 | if (pass == 2){//待审核 | ||||
hql.append(" and orderStep = :orderStep", IssueOrderStep.WAITING_AUDIT); | hql.append(" and orderStep = :orderStep", IssueOrderStep.WAITING_AUDIT); | ||||
hql.append(" and orderStatus = :orderStatus", "NORMAL"); | |||||
hql.append(" and receiveStatus = :receiveStatus", true); | hql.append(" and receiveStatus = :receiveStatus", true); | ||||
} | } | ||||
if (pass == 3){//审核不通过 | if (pass == 3){//审核不通过 |
hql.append(" and insertTime <= :endTime", endTime); | hql.append(" and insertTime <= :endTime", endTime); | ||||
hql.append(" and orderStep = :orderStep", orderStep); | hql.append(" and orderStep = :orderStep", orderStep); | ||||
hql.append(" and orderStatus = :orderStatus", orderStatus); | hql.append(" and orderStatus = :orderStatus", orderStatus); | ||||
//查阶段时候,只查正常订单 | |||||
if (orderStatus == null && orderStep != null){ | |||||
hql.append(" and orderStatus != :orderStatus", "NORMAL"); | |||||
} | |||||
if (!agencyId.equals("52010106004") && !"MANAGER".equals(identityType)){//黔通管理员可以查所有 | if (!agencyId.equals("52010106004") && !"MANAGER".equals(identityType)){//黔通管理员可以查所有 | ||||
hql.append(" and agencyId = :agencyId", agencyId); | hql.append(" and agencyId = :agencyId", agencyId); | ||||
} | } |