开业筹备阶段3.0
This commit is contained in:
@@ -123,7 +123,7 @@ public class OpenPreparationController {
|
||||
FirstOrderDO firstOrderDO = new FirstOrderDO();
|
||||
try {
|
||||
BeanUtils.copyProperties(firstOrderDO, request);
|
||||
firstOrderService.saveOrder(firstOrderDO);
|
||||
firstOrderService.saveOrder(request);
|
||||
return ResponseResult.success();
|
||||
} catch (IllegalAccessException | InvocationTargetException e) {
|
||||
throw new RuntimeException(e);
|
||||
|
||||
@@ -76,9 +76,8 @@ public class MiniOpenPreparationController {
|
||||
order.setResultType(firstOrderStageInfo.getShopSubStageStatus());
|
||||
return ResponseResult.success(order);
|
||||
}
|
||||
|
||||
@GetMapping("/firstOrder/flush")
|
||||
public ResponseResult flush(@RequestParam Long shopId) {
|
||||
public ResponseResult<FirstOrderDTO> flush(@RequestParam Long shopId) {
|
||||
ShopStageInfoDO orderStageInfo = shopStageInfoDAO.getShopSubStageInfo(shopId, ShopSubStageEnum.SHOP_STAGE_15);
|
||||
try {
|
||||
if (!orderStageInfo.getShopSubStageStatus().
|
||||
@@ -102,10 +101,9 @@ public class MiniOpenPreparationController {
|
||||
}
|
||||
ShopStageInfoDO firstOrderStageInfo = shopStageInfoDAO.getShopSubStageInfo(shopId, ShopSubStageEnum.SHOP_STAGE_15);
|
||||
log.info("flush orderStageInfo:{}", firstOrderStageInfo);
|
||||
OpenPreparationFlushVO flushVO = new OpenPreparationFlushVO();
|
||||
flushVO.setShopId(shopId);
|
||||
flushVO.setFirstOderState(firstOrderStageInfo.getShopSubStageStatus());
|
||||
return ResponseResult.success(flushVO);
|
||||
FirstOrderDTO order = firstOrderService.getOrder(shopId);
|
||||
order.setResultType(firstOrderStageInfo.getShopSubStageStatus());
|
||||
return ResponseResult.success(order);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user