|
@@ -15,6 +15,7 @@ import com.github.zuihou.database.mybatis.conditions.query.QueryWrap;
|
|
|
import com.github.zuihou.security.annotation.PreAuth;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -49,8 +50,7 @@ public class OrderController extends SuperController<OrderService, Long, Order,
|
|
|
OrderPageDTO data = params.getModel();
|
|
|
Order model = BeanUtil.toBean(data, Order.class);
|
|
|
QueryWrap<Order> wrapper = this.handlerWrapper(null, params);
|
|
|
- wrapper.notIn("order_status", "INIT");
|
|
|
- wrapper.orderByDesc("create_time");
|
|
|
+ wrapper.eq(model.getOrderEquId()!=null,"order_equ_id", model.getOrderEquId()).eq(StringUtils.isNotEmpty(model.getOrderStatus()),"order_status", model.getOrderStatus()).orderByDesc("create_time");
|
|
|
baseService.pageList(page, wrapper);
|
|
|
}
|
|
|
|