新增 查询占桩订单详情接口

This commit is contained in:
Lemon
2023-08-19 10:17:09 +08:00
parent 7b1b6e8405
commit 85a5ee66d8
5 changed files with 91 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.domain.OrderPileOccupy;
import com.jsowell.pile.dto.GenerateOccupyOrderDTO;
import com.jsowell.pile.service.OrderPileOccupyService;
import com.jsowell.pile.vo.uniapp.OccupyOrderDetailVO;
import com.jsowell.pile.vo.uniapp.OrderPileOccupyVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -88,7 +89,8 @@ public class OccupyOrderController extends BaseController {
logger.info("查询占桩订单详情页 param:{}", occupyCode);
RestApiResponse<?> response = null;
try {
orderPileOccupyService.getOccupyOrderDetail(occupyCode);
OccupyOrderDetailVO vo = orderPileOccupyService.getOccupyOrderDetail(occupyCode);
response = new RestApiResponse<>(vo);
} catch (Exception e) {
logger.error("查询占桩订单详情页 error,", e);
response = new RestApiResponse<>(e);