|
@@ -13,7 +13,6 @@ import com.zhongshu.card.server.core.domain.org.UserAccount;
|
|
|
import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
|
|
import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
|
|
|
import com.zhongshu.card.server.core.service.base.SuperService;
|
|
import com.zhongshu.card.server.core.service.base.SuperService;
|
|
|
import com.zhongshu.card.server.core.service.devices.deviceProduct.DeviceProductBindDeviceService;
|
|
import com.zhongshu.card.server.core.service.devices.deviceProduct.DeviceProductBindDeviceService;
|
|
|
-import com.zhongshu.card.server.core.service.devices.permiss.DevicePermissVerifyService;
|
|
|
|
|
import com.zhongshu.card.server.core.util.CommonUtil;
|
|
import com.zhongshu.card.server.core.util.CommonUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
@@ -41,11 +40,11 @@ public class OrderService extends SuperService {
|
|
|
private ExpenseFlowServiceImpl expenseFlowService;
|
|
private ExpenseFlowServiceImpl expenseFlowService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 小程序扫 设备码 下单
|
|
|
|
|
|
|
+ * 小程序扫 设备码 下单 (微信)
|
|
|
*
|
|
*
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public ResultContent cToBqrCodeBCreateOrder(DeviceQrCodeParam param) {
|
|
|
|
|
|
|
+ public ResultContent wxCToBQrCodeCreateOrder(DeviceQrCodeParam param) {
|
|
|
if (StringUtils.isEmpty(param.getDeviceId())) {
|
|
if (StringUtils.isEmpty(param.getDeviceId())) {
|
|
|
return ResultContent.buildFail("deviceId不能为空");
|
|
return ResultContent.buildFail("deviceId不能为空");
|
|
|
}
|
|
}
|
|
@@ -87,7 +86,7 @@ public class OrderService extends SuperService {
|
|
|
// 是否是浮动计费 计费方式
|
|
// 是否是浮动计费 计费方式
|
|
|
orderParam.setChargeableType(ChargeableType.Specified);
|
|
orderParam.setChargeableType(ChargeableType.Specified);
|
|
|
|
|
|
|
|
- // 指定支付方式
|
|
|
|
|
|
|
+ // 指定支付方式 而且是微信渠道
|
|
|
orderParam.setAppointPaymentType(Boolean.TRUE);
|
|
orderParam.setAppointPaymentType(Boolean.TRUE);
|
|
|
orderParam.setPaymentType(PaymentType.WeChatPay);
|
|
orderParam.setPaymentType(PaymentType.WeChatPay);
|
|
|
|
|
|