Просмотр исходного кода

managew 订单查询筛选正常订单

master
chenchaod 6 дней назад
Родитель
Сommit
18dfd36944

+ 1
- 1
zhywpt-app-managew/src/main/java/cn/com/taiji/managew/manager/issueOrder/IssueOrderQueryManageImpl.java Просмотреть файл

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

+ 2
- 0
zhywpt-app-managew/src/main/java/cn/com/taiji/managew/repo/jpa/request/IssueOrderExaminePageRequest.java Просмотреть файл

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){//审核不通过

+ 4
- 0
zhywpt-app-managew/src/main/java/cn/com/taiji/managew/repo/jpa/request/IssueOrderPageRequest.java Просмотреть файл

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);
} }

Загрузка…
Отмена
Сохранить