|
@@ -629,6 +629,9 @@ public class OrderServiceImpl extends BaseServiceImpl<OrderMapper, Order> implem
|
|
|
if (StringUtils.isNotEmpty(orderServiceWebInDTO.getSearchValueOrderCode())) {
|
|
if (StringUtils.isNotEmpty(orderServiceWebInDTO.getSearchValueOrderCode())) {
|
|
|
orderQueryWrapper.eq(prefix + "sn", orderServiceWebInDTO.getSearchValueOrderCode());
|
|
orderQueryWrapper.eq(prefix + "sn", orderServiceWebInDTO.getSearchValueOrderCode());
|
|
|
}
|
|
}
|
|
|
|
|
+ if (StringUtils.isNotBlank(orderServiceWebInDTO.getCards())) {
|
|
|
|
|
+ orderQueryWrapper.like(prefix + "card_names", orderServiceWebInDTO.getCards());
|
|
|
|
|
+ }
|
|
|
if (null != orderServiceWebInDTO.getOrderStatus()) {
|
|
if (null != orderServiceWebInDTO.getOrderStatus()) {
|
|
|
if(orderServiceWebInDTO.getOrderStatus().equals(17)){
|
|
if(orderServiceWebInDTO.getOrderStatus().equals(17)){
|
|
|
//已回访
|
|
//已回访
|
|
@@ -656,6 +659,38 @@ public class OrderServiceImpl extends BaseServiceImpl<OrderMapper, Order> implem
|
|
|
if (StringUtils.isNotEmpty(orderServiceWebInDTO.getReviewReason())) {
|
|
if (StringUtils.isNotEmpty(orderServiceWebInDTO.getReviewReason())) {
|
|
|
orderQueryWrapper.likeRight(prefix + "review_reason",orderServiceWebInDTO.getReviewReason());
|
|
orderQueryWrapper.likeRight(prefix + "review_reason",orderServiceWebInDTO.getReviewReason());
|
|
|
}
|
|
}
|
|
|
|
|
+ if(orderServiceWebInDTO.getCountryId() != null){
|
|
|
|
|
+ orderQueryWrapper.eq(prefix + "country_id", orderServiceWebInDTO.getCountryId());
|
|
|
|
|
+ }
|
|
|
|
|
+ if(orderServiceWebInDTO.getStreetId() != null){
|
|
|
|
|
+ orderQueryWrapper.eq(prefix + "street_id", orderServiceWebInDTO.getStreetId());
|
|
|
|
|
+ }
|
|
|
|
|
+ if(orderServiceWebInDTO.getCommunityId() != null){
|
|
|
|
|
+ orderQueryWrapper.eq(prefix + "community_id", orderServiceWebInDTO.getCommunityId());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(orderServiceWebInDTO.getReviewStatus() != null){
|
|
|
|
|
+
|
|
|
|
|
+ String roles = "";
|
|
|
|
|
+ List<String> authList = TokenContext.cureWebUser().getAuthorities();
|
|
|
|
|
+ if(authList.contains("10")){
|
|
|
|
|
+ roles = "10";
|
|
|
|
|
+ }else if(authList.contains("11")){
|
|
|
|
|
+ roles = "11";
|
|
|
|
|
+ }else if(authList.contains("12")){
|
|
|
|
|
+ roles = "12";
|
|
|
|
|
+ }
|
|
|
|
|
+ if(!"".equals(roles)){
|
|
|
|
|
+ if(orderServiceWebInDTO.getReviewStatus().equals(1)){
|
|
|
|
|
+ orderQueryWrapper.like(prefix + "review_government_role", roles);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ String val = roles;
|
|
|
|
|
+ orderQueryWrapper.and(wr->wr.isNull(prefix + "review_government_role").or().notLike(prefix + "review_government_role",val));
|
|
|
|
|
+ orderQueryWrapper.eq(prefix + "order_status", 6);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if(orderServiceWebInDTO.getStationId() != null && orderServiceWebInDTO.getSource() != null){
|
|
if(orderServiceWebInDTO.getStationId() != null && orderServiceWebInDTO.getSource() != null){
|
|
|
switch (orderServiceWebInDTO.getSource()){
|
|
switch (orderServiceWebInDTO.getSource()){
|
|
|
case 0:
|
|
case 0:
|