use of build.dream.catering.models.dietorder.ObtainDietOrderInfoModel in project erp-catering by liuyandong33.
the class DietOrderController method obtainDietOrderInfo.
/**
* 获取订单明细
*
* @return
*/
@RequestMapping(value = "/obtainDietOrderInfo")
@ResponseBody
public String obtainDietOrderInfo() {
ApiRest apiRest = null;
Map<String, String> requestParameters = ApplicationHandler.getRequestParameters();
try {
ObtainDietOrderInfoModel obtainDietOrderInfoModel = ApplicationHandler.instantiateObject(ObtainDietOrderInfoModel.class, requestParameters);
obtainDietOrderInfoModel.validateAndThrow();
apiRest = dietOrderService.obtainDietOrderInfo(obtainDietOrderInfoModel);
} catch (Exception e) {
LogUtils.error("获取订单信息失败", controllerSimpleName, "obtainDietOrderInfo", e, requestParameters);
apiRest = new ApiRest(e);
}
return GsonUtils.toJson(apiRest);
}
Aggregations