|
|
@@ -22,6 +22,7 @@ import com.cyksj.model.views.*;
|
|
|
import com.cyksj.service.corp.CropChatService;
|
|
|
import com.cyksj.service.exchange.ExchangeCodeService;
|
|
|
import com.cyksj.service.order.UserRealOrderBenefitsService;
|
|
|
+import com.cyksj.service.shop.YhShopFrontService;
|
|
|
import com.cyksj.service.user.UserBindRelationService;
|
|
|
import com.cyksj.service.user.UserService;
|
|
|
import com.cyksj.service.user.WorkOrderFrontService;
|
|
|
@@ -69,6 +70,8 @@ public class UserController {
|
|
|
|
|
|
private final UserBindRelationService userBindRelationService;
|
|
|
|
|
|
+ private final YhShopFrontService yhShopFrontService;
|
|
|
+
|
|
|
@GetMapping(value = "/wx/whoami")
|
|
|
public Result<UserWhoami> whoami() {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
@@ -171,10 +174,12 @@ public class UserController {
|
|
|
* 用户工单历史列表
|
|
|
*/
|
|
|
@GetMapping("/workOrder/get")
|
|
|
- public Result<SearchResult<UserWorkOrderView>> getWorkOrder() {
|
|
|
+ public Result<SearchResult<UserWorkOrderView>> getWorkOrder(String customId) {
|
|
|
+ Long yhsId = yhShopFrontService.getYhsIdByCustomId(customId);
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
SearchResult<UserWorkOrderView> search = beanSearcher.search(UserWorkOrderView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
.field(UserWorkOrderView::getUserId, userId)
|
|
|
+ .field(UserWorkOrderView::getYhsId, yhsId)
|
|
|
.orderBy(UserWorkOrderView::getCreatedTime).desc()
|
|
|
.build());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|