|
|
@@ -95,10 +95,15 @@ public class IssueOrderPageRequest extends JpaPageableDataRequest<IssueOrderinfo |
|
|
|
hql.append(" and insertTime >= :startTime", startTime); |
|
|
|
hql.append(" and insertTime <= :endTime", endTime); |
|
|
|
hql.append(" and orderStep = :orderStep", orderStep); |
|
|
|
hql.append(" and orderStatus = :orderStatus", orderStatus); |
|
|
|
//查阶段时候,只查正常订单 |
|
|
|
if (orderStatus == null && orderStep != null){ |
|
|
|
hql.append(" and orderStatus != :orderStatus", "NORMAL"); |
|
|
|
if (orderStep == IssueOrderStep.ACTIVED){ |
|
|
|
hql.append(" and orderStatus = 'ACTIVE'"); |
|
|
|
}else { |
|
|
|
hql.append(" and orderStatus = 'NORMAL'"); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
hql.append(" and orderStatus = :orderStatus", orderStatus); |
|
|
|
} |
|
|
|
if (!agencyId.equals("52010106004") && !"MANAGER".equals(identityType)){//黔通管理员可以查所有 |
|
|
|
hql.append(" and agencyId = :agencyId", agencyId); |