class OrderController {

	@PostMapping(value="/syncverifystatus")
	public ResBodyData syncVerifyStatus(@Validated EcmMzfOrderStatus orderStatus) {
		log.info("syncVerifyStatus() in the OrderController start--");
		
		int statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_SUCCESS;

		boolean isSuccess=true;
		String msg="同步订单审核状态数据到结算系统成功!";
		try {
			isSuccess = orderService.syncVerifyStatus(orderStatus);
		} catch (Exception e) {
			isSuccess=false;
			log.error("同步订单审核状态接口 出错，orderService.syncVerifyStatus() for orderSn:{} got error:{}",orderStatus.getOrderSn(),e.getMessage(),e);
		}
		
		if(!isSuccess){
			msg="同步订单审核状态数据到结算系统失败!";
			statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_FAILURE;
			log.info(msg);
		}
			
		return SettlementUtil.buildReponseData("", statusCode, msg);
		
	}

}