|
@@ -104,14 +104,10 @@ public class TbOrdersApiController {
|
|
|
|
|
|
/** 查 根据订单Id查订单详情 */
|
|
/** 查 根据订单Id查订单详情 */
|
|
@RequestMapping("getDetailById")
|
|
@RequestMapping("getDetailById")
|
|
- public AjaxJson getDetailById(Long id) {
|
|
|
|
- TbOrders t = tbOrdersService.getById(id);
|
|
|
|
-
|
|
|
|
- List<TbOrders> OrderList = new ArrayList<>();
|
|
|
|
- OrderList.add(t);
|
|
|
|
- List<TbOrdersDto> tbOrdersDto = methodOrdersService.getTbOrdersDto(OrderList);
|
|
|
|
- if(tbOrdersDto.size() > 0) return AjaxJson.getSuccessData(tbOrdersDto.get((0)));
|
|
|
|
- return AjaxJson.getError();
|
|
|
|
|
|
+ public AjaxJson getDetailById() {
|
|
|
|
+ SoMap so = SoMap.getRequestSoMap();
|
|
|
|
+ List<TbOrders> list = tbOrdersService.getDetailById(so);
|
|
|
|
+ return AjaxJson.getSuccessData(list);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|