|
@@ -1367,11 +1367,11 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
* 自主下单价格低于1000,倒扣500采美豆
|
|
|
*/
|
|
|
try {
|
|
|
- if (orderParamBo.getCartType() != 3 && productTotalFee.get() < 1000) {
|
|
|
+ if (orderParamBo.getCartType() != 3 && payTotalFee.get() < 1000) {
|
|
|
if (orderParamBo.getUserBeans() < 0) {
|
|
|
//设置手动回滚事务
|
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
- return ResponseJson.error(-3, "采美豆不足,不能提交订单。建议您前往采美旗下“呵呵商城”小程序购买小额商品。");
|
|
|
+ return ResponseJson.error(-4, "采美豆不足,不能提交订单。建议您前往采美旗下“呵呵商城”小程序购买小额商品。");
|
|
|
} else {
|
|
|
//查历史2021.10.27后是否有两个1000以下订单,有return不让下单,没有扣豆子
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
@@ -1391,7 +1391,7 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
beansHistory.setPushStatus(0);
|
|
|
beansHistory.setAddTime(date);
|
|
|
beansHistory.setDelFlag(0);
|
|
|
- int beans = orderParamBo.getUserBeans() - 500;
|
|
|
+ int beans = baseMapper.findBeans(orderParamBo.getUserId()) - 500;
|
|
|
productService.updateUserBeans(beansHistory, beans, "【价格低于1000,倒扣500采美豆】");
|
|
|
}
|
|
|
}
|