增加查询鲜丰订货金接口
This commit is contained in:
@@ -32,4 +32,5 @@ public interface OpeningOperationPlanService {
|
|||||||
*/
|
*/
|
||||||
PageInfo<OpeningOperationPlanListVO> getPlanListPage(PlanListRequest request);
|
PageInfo<OpeningOperationPlanListVO> getPlanListPage(PlanListRequest request);
|
||||||
Boolean flush(Long shopId);
|
Boolean flush(Long shopId);
|
||||||
|
Boolean getStatus(Long shopId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ public class OpeningOperationPlanImpl implements OpeningOperationPlanService {
|
|||||||
public Boolean flush(Long shopId) {
|
public Boolean flush(Long shopId) {
|
||||||
ShopStageInfoDO orderStageInfo = shopStageInfoDAO.getShopSubStageInfo(shopId, ShopSubStageEnum.SHOP_STAGE_15);
|
ShopStageInfoDO orderStageInfo = shopStageInfoDAO.getShopSubStageInfo(shopId, ShopSubStageEnum.SHOP_STAGE_15);
|
||||||
try {
|
try {
|
||||||
if (!ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_151.getShopSubStageStatus().
|
if (ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_152.getShopSubStageStatus().
|
||||||
equals(orderStageInfo.getShopSubStageStatus())) {
|
equals(orderStageInfo.getShopSubStageStatus())) {
|
||||||
ShopInfoDO shopInfo = shopService.getShopInfo(shopId);
|
ShopInfoDO shopInfo = shopService.getShopInfo(shopId);
|
||||||
String shopCode = shopInfo.getShopCode();
|
String shopCode = shopInfo.getShopCode();
|
||||||
@@ -218,5 +218,19 @@ public class OpeningOperationPlanImpl implements OpeningOperationPlanService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean getStatus(Long shopId) {
|
||||||
|
try{
|
||||||
|
ShopInfoDO shopInfo = shopService.getShopInfo(shopId);
|
||||||
|
String shopCode = shopInfo.getShopCode();
|
||||||
|
Boolean firstOrder = coolStoreStartFlowService.getFirstOrder(shopCode);
|
||||||
|
return firstOrder;
|
||||||
|
}catch (Exception e){
|
||||||
|
log.error("获取鲜丰订货金异常或更新状态失败");
|
||||||
|
throw new ServiceException(ErrorCodeEnum.YLF_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import com.cool.store.response.ResponseResult;
|
|||||||
import com.cool.store.service.*;
|
import com.cool.store.service.*;
|
||||||
import com.cool.store.vo.OpeningOperationPlanListVO;
|
import com.cool.store.vo.OpeningOperationPlanListVO;
|
||||||
import com.cool.store.vo.OpeningOperationPlanVO;
|
import com.cool.store.vo.OpeningOperationPlanVO;
|
||||||
|
import com.cool.store.vo.shop.ShopStageInfoVO;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
@@ -52,7 +53,11 @@ public class PCOpenPreparationController {
|
|||||||
public ResponseResult<Boolean> flush(@RequestParam("shopId") Long shopId) {
|
public ResponseResult<Boolean> flush(@RequestParam("shopId") Long shopId) {
|
||||||
return ResponseResult.success(openingOperationPlanService.flush(shopId));
|
return ResponseResult.success(openingOperationPlanService.flush(shopId));
|
||||||
}
|
}
|
||||||
|
@ApiOperation("获取鲜丰订货金状态")
|
||||||
|
@GetMapping("/getStatus")
|
||||||
|
public ResponseResult<Boolean> getStatus(@RequestParam("shopId") Long shopId) {
|
||||||
|
return ResponseResult.success(openingOperationPlanService.getStatus(shopId));
|
||||||
|
}
|
||||||
@PostMapping("/openingOperationPlan/submit")
|
@PostMapping("/openingOperationPlan/submit")
|
||||||
@ApiOperation("提交开业运营方案")
|
@ApiOperation("提交开业运营方案")
|
||||||
public ResponseResult submitPlan(@RequestBody OpeningOperationPlanRequest request) {
|
public ResponseResult submitPlan(@RequestBody OpeningOperationPlanRequest request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user