打印处理
This commit is contained in:
parent
63ec546d5c
commit
5aa43002fd
@ -139,19 +139,6 @@ public class IntegralOrdersController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 礼品订单
|
|
||||||
*
|
|
||||||
* 判断积分是否足够
|
|
||||||
*
|
|
||||||
* 增加订单之前首先判断是否还存在 库存
|
|
||||||
*
|
|
||||||
* 增加积分订单
|
|
||||||
*
|
|
||||||
* 减去积分商城库存
|
|
||||||
*
|
|
||||||
* 减去商品库存
|
|
||||||
*
|
|
||||||
* 减去用户积分
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@PostMapping("integralOrdersProcessing")
|
@PostMapping("integralOrdersProcessing")
|
||||||
|
@ -443,7 +443,7 @@
|
|||||||
|
|
||||||
</update>
|
</update>
|
||||||
<update id="updatePaymentType">
|
<update id="updatePaymentType">
|
||||||
update integral_orders set status = '1' where order_number = #{orderNumber}
|
update integral_orders set processing_status = '1' where order_number = #{orderNumber}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="queryIntegralOrdersByOrderNo">
|
<select id="queryIntegralOrdersByOrderNo">
|
||||||
|
@ -177,13 +177,6 @@ public class IntegralOrdersServiceImpl implements IntegralOrdersService {
|
|||||||
integralOrdersList.setStoreId(nowAccountInfo.getStoreId());
|
integralOrdersList.setStoreId(nowAccountInfo.getStoreId());
|
||||||
// 首先判断是否足够积分
|
// 首先判断是否足够积分
|
||||||
LJUserVo ljUserVos = ljUserMapper.selectAllInfoById2(integralOrdersList.getIntegralOrdersList().get(0).getUserId(), nowAccountInfo.getChainStoreId());
|
LJUserVo ljUserVos = ljUserMapper.selectAllInfoById2(integralOrdersList.getIntegralOrdersList().get(0).getUserId(), nowAccountInfo.getChainStoreId());
|
||||||
if (ObjectUtil.isEmpty(ljUserVos)) {
|
|
||||||
// 个人信息为空时,初始化
|
|
||||||
// return
|
|
||||||
// userBalanceService.initBalance(integralOrdersList.getIntegralOrdersList().get(0).getUserId(), nowAccountInfo.getChainStoreId());
|
|
||||||
// ljUserVos = ljUserMapper.selectAllInfoById2(integralOrdersList.getIntegralOrdersList().get(0).getUserId(), nowAccountInfo.getChainStoreId());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ljUserVos.getPoints() < integralOrdersList.getAllPoints()) {
|
if (ljUserVos.getPoints() < integralOrdersList.getAllPoints()) {
|
||||||
integralOrdersList.getIntegralOrdersList().get(0).setStatus("un");
|
integralOrdersList.getIntegralOrdersList().get(0).setStatus("un");
|
||||||
return integralOrdersList.getIntegralOrdersList().get(0);
|
return integralOrdersList.getIntegralOrdersList().get(0);
|
||||||
@ -456,7 +449,7 @@ public class IntegralOrdersServiceImpl implements IntegralOrdersService {
|
|||||||
|
|
||||||
// 首先判断是否足够积分
|
// 首先判断是否足够积分
|
||||||
LJUserVo ljUserVos = ljUserMapper.selectAllInfoById2(nowAccountInfo.getId(), integralOrdersList.getChainStoreId());
|
LJUserVo ljUserVos = ljUserMapper.selectAllInfoById2(nowAccountInfo.getId(), integralOrdersList.getChainStoreId());
|
||||||
if (ljUserVos.getPoints() < integralOrdersList.getAllPoints()) {
|
if (ljUserVos.getPoints() <= integralOrdersList.getAllPoints()) {
|
||||||
integralOrdersList.getIntegralOrdersList().get(0).setStatus("un");
|
integralOrdersList.getIntegralOrdersList().get(0).setStatus("un");
|
||||||
applet.put("code", "error");
|
applet.put("code", "error");
|
||||||
applet.put("msg", "积分不足");
|
applet.put("msg", "积分不足");
|
||||||
|
@ -43,8 +43,10 @@ import com.fuint.business.member.service.ILJStaffService;
|
|||||||
import com.fuint.business.order.entity.AllOrderInfo;
|
import com.fuint.business.order.entity.AllOrderInfo;
|
||||||
import com.fuint.business.order.entity.CardBalanceChange;
|
import com.fuint.business.order.entity.CardBalanceChange;
|
||||||
import com.fuint.business.order.entity.CashierOrder;
|
import com.fuint.business.order.entity.CashierOrder;
|
||||||
|
import com.fuint.business.order.entity.GrowthValueChange;
|
||||||
import com.fuint.business.order.service.AllOrderInfoService;
|
import com.fuint.business.order.service.AllOrderInfoService;
|
||||||
import com.fuint.business.order.service.CardBalanceChangeService;
|
import com.fuint.business.order.service.CardBalanceChangeService;
|
||||||
|
import com.fuint.business.order.service.GrowthValueChangeService;
|
||||||
import com.fuint.business.storeInformation.entity.LJStore;
|
import com.fuint.business.storeInformation.entity.LJStore;
|
||||||
import com.fuint.business.storeInformation.service.ILJStoreService;
|
import com.fuint.business.storeInformation.service.ILJStoreService;
|
||||||
import com.fuint.business.userManager.entity.UserBalance;
|
import com.fuint.business.userManager.entity.UserBalance;
|
||||||
@ -415,6 +417,9 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
|
|||||||
|
|
||||||
CardValueChildMapper cardValueChildMapper;
|
CardValueChildMapper cardValueChildMapper;
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
GrowthValueChangeService growthValueChangeService;
|
||||||
/**
|
/**
|
||||||
* 查询支付状态 修改相关关联表
|
* 查询支付状态 修改相关关联表
|
||||||
* @param id
|
* @param id
|
||||||
@ -470,7 +475,18 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
|
|||||||
integralDetailService.insert2(integralDetail);
|
integralDetailService.insert2(integralDetail);
|
||||||
}
|
}
|
||||||
// 成长值变动明细
|
// 成长值变动明细
|
||||||
|
if (!ObjectUtil.isEmpty(cardValueRecord.getGrowthValue()) && cardValueRecord.getGrowthValue() != 0) {
|
||||||
|
GrowthValueChange growthValueChange = new GrowthValueChange();
|
||||||
|
growthValueChange.setUserId(cardValueRecord.getMtUserId());
|
||||||
|
growthValueChange.setChainStoreId(cardValueRecord.getChainStoreId());
|
||||||
|
|
||||||
|
growthValueChange.setStoreId(cardValueRecord.getStoreId());
|
||||||
|
growthValueChange.setFromType("余额充值赠送");
|
||||||
|
growthValueChange.setGrowthValue(cardValueRecord.getGrowthValue());
|
||||||
|
growthValueChange.setOrderNo(cardValueRecord.getPaymentNo());
|
||||||
|
growthValueChange.setAfterTheChange(userBalance.getGrowthValue());
|
||||||
|
growthValueChangeService.insertGrowthValueChange(growthValueChange);
|
||||||
|
}
|
||||||
// 员工提成
|
// 员工提成
|
||||||
if (ObjectUtil.isNotEmpty(cardValueRecord.getMtStaffId()) && !ObjectUtil.isEmpty(cardValueRecord.getRoyaltyType()) && !"1".equals(cardValueRecord.getRoyaltyType())) {
|
if (ObjectUtil.isNotEmpty(cardValueRecord.getMtStaffId()) && !ObjectUtil.isEmpty(cardValueRecord.getRoyaltyType()) && !"1".equals(cardValueRecord.getRoyaltyType())) {
|
||||||
CommissionRecord commissionRecord = employeeCommissions(cardValueRecord);
|
CommissionRecord commissionRecord = employeeCommissions(cardValueRecord);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
select sum(pay_money)
|
select sum(pay_money)
|
||||||
from all_order_info
|
from all_order_info
|
||||||
<where>
|
<where>
|
||||||
dept_id IN
|
store_id IN
|
||||||
<foreach collection="list" item="list" separator="," open="(" close=")">
|
<foreach collection="list" item="list" separator="," open="(" close=")">
|
||||||
#{list.storeId}
|
#{list.storeId}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
@ -454,11 +454,15 @@ public class HandoverRecordServiceImpl implements HandoverRecordService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final String LOAD_LIBRARY = "TSCLIB";
|
private static final String LOAD_LIBRARY = "TSCLIB";
|
||||||
|
@Override
|
||||||
|
public void printLocally(Map<String, Object> handover) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//打印机
|
//打印机
|
||||||
// private static final String print_model = "58130IVC";
|
// private static final String print_model = "58130IVC";
|
||||||
@Override
|
// @Override
|
||||||
public void printLocally(Map<String, Object> handover) {
|
public void printLocally2(Map<String, Object> handover) {
|
||||||
|
|
||||||
Map<String, Object> baseInfo = (Map<String, Object>)handover.get("baseInfo");
|
Map<String, Object> baseInfo = (Map<String, Object>)handover.get("baseInfo");
|
||||||
Map<String, Object> orderSummary = (Map<String, Object>)handover.get("orderSummary");
|
Map<String, Object> orderSummary = (Map<String, Object>)handover.get("orderSummary");
|
||||||
|
@ -4,6 +4,7 @@ import com.fuint.repository.bean.StoreDistanceBean;
|
|||||||
import com.fuint.business.store.entity.MtStore;
|
import com.fuint.business.store.entity.MtStore;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.fuint.system.dept.entity.SysDept;
|
import com.fuint.system.dept.entity.SysDept;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -14,6 +15,7 @@ import java.util.List;
|
|||||||
* Created by FSQ
|
* Created by FSQ
|
||||||
* CopyRight https://www.fuint.cn
|
* CopyRight https://www.fuint.cn
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface MtStoreMapper extends BaseMapper<MtStore> {
|
public interface MtStoreMapper extends BaseMapper<MtStore> {
|
||||||
|
|
||||||
MtStore queryStoreByName(@Param("name") String name);
|
MtStore queryStoreByName(@Param("name") String name);
|
||||||
|
@ -47,21 +47,10 @@
|
|||||||
|
|
||||||
</where>
|
</where>
|
||||||
</update>
|
</update>
|
||||||
<update id="editStatusBydeptIdList">
|
|
||||||
update mt_store
|
|
||||||
set status = 'jy'
|
|
||||||
<where>
|
|
||||||
contract_dept_id IN
|
|
||||||
<foreach collection="list" item="list" separator="," open="(" close=")">
|
|
||||||
#{list.deptId}
|
|
||||||
</foreach>
|
|
||||||
</where>
|
|
||||||
</update>
|
|
||||||
<update id="editStatusByExpirationTime">
|
|
||||||
update mt_store
|
|
||||||
set status = 'jy'
|
|
||||||
where expiration_time > NOW() and status = 'qy'
|
|
||||||
</update>
|
|
||||||
<update id="ifDeleteByDeptId" parameterType="java.lang.Long">
|
<update id="ifDeleteByDeptId" parameterType="java.lang.Long">
|
||||||
update mt_store
|
update mt_store
|
||||||
set if_delete = '1'
|
set if_delete = '1'
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.fuint.business.store.mapper.MtStoreMapper">
|
||||||
|
<update id="editStatusBydeptIdList" parameterType="java.util.List">
|
||||||
|
update mt_store
|
||||||
|
set status = 'jy'
|
||||||
|
where contract_dept_id IN
|
||||||
|
<foreach collection="list" item="item" separator="," open="(" close=")">
|
||||||
|
#{item.deptId}
|
||||||
|
</foreach>
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="editStatusByExpirationTime">
|
||||||
|
update mt_store
|
||||||
|
set status = 'jy'
|
||||||
|
where expiration_time < NOW() and status = 'qy' and expiration_time is not null
|
||||||
|
</update>
|
||||||
|
|
||||||
|
</mapper>
|
@ -488,6 +488,7 @@ public class StoreServiceImpl extends ServiceImpl<MtStoreMapper, MtStore> implem
|
|||||||
AllOrderInfoMapper allOrderInfoMapper;
|
AllOrderInfoMapper allOrderInfoMapper;
|
||||||
// 将流水上限和时间上限的部门全部设置为不可用
|
// 将流水上限和时间上限的部门全部设置为不可用
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public void flowflowConfiguration() {
|
public void flowflowConfiguration() {
|
||||||
// 查询第三方 的所有部门
|
// 查询第三方 的所有部门
|
||||||
LambdaQueryWrapper<SysDept> sysDeptWrapper = Wrappers.lambdaQuery();
|
LambdaQueryWrapper<SysDept> sysDeptWrapper = Wrappers.lambdaQuery();
|
||||||
@ -503,8 +504,11 @@ public class StoreServiceImpl extends ServiceImpl<MtStoreMapper, MtStore> implem
|
|||||||
LambdaQueryWrapper<MtStore> storeWrapper = Wrappers.lambdaQuery();
|
LambdaQueryWrapper<MtStore> storeWrapper = Wrappers.lambdaQuery();
|
||||||
storeWrapper.eq(MtStore::getContractDeptId,sysDeptsList);
|
storeWrapper.eq(MtStore::getContractDeptId,sysDeptsList);
|
||||||
List<MtStore> mtStores = mtStoreMapper.selectList(storeWrapper);
|
List<MtStore> mtStores = mtStoreMapper.selectList(storeWrapper);
|
||||||
|
BigDecimal bigDecimal = new BigDecimal("0");
|
||||||
// 计算总流水
|
// 计算总流水
|
||||||
BigDecimal bigDecimal = allOrderInfoMapper.allStream(mtStores);
|
if (ObjectUtil.isNotEmpty(mtStores)) {
|
||||||
|
bigDecimal = allOrderInfoMapper.allStream(mtStores);
|
||||||
|
}
|
||||||
|
|
||||||
if (bigDecimal.compareTo(sysDept.getTurnoverLimit()) >= 0) {
|
if (bigDecimal.compareTo(sysDept.getTurnoverLimit()) >= 0) {
|
||||||
// 设置当前部门为禁用
|
// 设置当前部门为禁用
|
||||||
@ -527,14 +531,13 @@ public class StoreServiceImpl extends ServiceImpl<MtStoreMapper, MtStore> implem
|
|||||||
// 将有油站设置为未启用
|
// 将有油站设置为未启用
|
||||||
mtStoreMapper.editStatusBydeptIdList(sysDeptsList);
|
mtStoreMapper.editStatusBydeptIdList(sysDeptsList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 将过期油站设置为不可用
|
// 将过期油站设置为不可用
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public void petrolStationsAreExpired() {
|
public void petrolStationsAreExpired() {
|
||||||
// 直接修改
|
// 直接修改
|
||||||
mtStoreMapper.editStatusByExpirationTime();
|
mtStoreMapper.editStatusByExpirationTime();
|
||||||
|
@ -45,7 +45,8 @@ public class QuartzConfig {
|
|||||||
// .withIdentity("jyTrigger", "jyTriggerGroup")
|
// .withIdentity("jyTrigger", "jyTriggerGroup")
|
||||||
// //.withSchedule(SimpleScheduleBuilder.simpleSchedule())
|
// //.withSchedule(SimpleScheduleBuilder.simpleSchedule())
|
||||||
// .startAt(statTime) //默认当前时间启动 ,也可以写为:.startNow();
|
// .startAt(statTime) //默认当前时间启动 ,也可以写为:.startNow();
|
||||||
// .withSchedule(CronScheduleBuilder.cronSchedule("0/2 * * * * ?")) //两秒执行一次
|
// .withSchedule(CronScheduleBuilder.cronSchedule("0 0 0 * * *")) //0点执行执行一次
|
||||||
|
//// .withSchedule(CronScheduleBuilder.cronSchedule("0/2 * * * * ?")) //两秒执行一次
|
||||||
// .build();
|
// .build();
|
||||||
|
|
||||||
//5.注册任务和定时器
|
//5.注册任务和定时器
|
||||||
@ -56,11 +57,11 @@ public class QuartzConfig {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
//6.启动 调度器
|
//6.启动 调度器
|
||||||
try {
|
// try {
|
||||||
scheduler.start();
|
// scheduler.start();
|
||||||
} catch (SchedulerException e) {
|
// } catch (SchedulerException e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
}
|
// }
|
||||||
log.info("启动时间 : " + new Date());
|
log.info("启动时间 : " + new Date());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.fuint.business.store.task;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fuint.business.store.service.StoreService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
@Slf4j
|
||||||
|
public class storeConfigTask {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
StoreService storeService;
|
||||||
|
// @Scheduled(cron="0/5 * * * * ? ") // 一秒钟执行一次
|
||||||
|
// @Scheduled(cron="0 * * * * ?") // 一分钟执行一次
|
||||||
|
@Scheduled(cron="0 0 0 * * *")
|
||||||
|
public void storeTask(){
|
||||||
|
log.info("24点,定时任务执行中...(店铺设置禁用)");
|
||||||
|
|
||||||
|
// 将流水上限和时间上限的部门全部设置为不可用
|
||||||
|
storeService.flowflowConfiguration();
|
||||||
|
// // 将过期油站设置为不可用
|
||||||
|
storeService.petrolStationsAreExpired();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -4,6 +4,7 @@ import com.fuint.business.store.controller.BackendStoreController;
|
|||||||
import com.fuint.business.store.service.StoreService;
|
import com.fuint.business.store.service.StoreService;
|
||||||
import org.quartz.*;
|
import org.quartz.*;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
@ -19,11 +20,13 @@ public class streamTask implements Job {
|
|||||||
@Override
|
@Override
|
||||||
public void execute(JobExecutionContext context) throws JobExecutionException {
|
public void execute(JobExecutionContext context) throws JobExecutionException {
|
||||||
|
|
||||||
// 执行任务的逻辑
|
// // 执行任务的逻辑
|
||||||
System.out.println("24点,定时任务执行中...");
|
// System.out.println("24点,定时任务执行中...");
|
||||||
// 将流水上限和时间上限的部门全部设置为不可用
|
// // 将流水上限和时间上限的部门全部设置为不可用
|
||||||
storeService.flowflowConfiguration();
|
// storeService.flowflowConfiguration();
|
||||||
// 将过期油站设置为不可用
|
// // 将过期油站设置为不可用
|
||||||
storeService.petrolStationsAreExpired();
|
// storeService.petrolStationsAreExpired();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,9 @@ package com.fuint.business.userManager.mapper;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.fuint.business.userManager.entity.UserBalance;
|
import com.fuint.business.userManager.entity.UserBalance;
|
||||||
|
import com.fuint.business.userManager.vo.UserBalanceVo;
|
||||||
|
|
||||||
public interface UserBalanceMapper extends BaseMapper<UserBalance> {
|
public interface UserBalanceMapper extends BaseMapper<UserBalance> {
|
||||||
|
|
||||||
|
int subtractUserBalanceByLock(UserBalanceVo balance);
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.fuint.business.userManager.mapper.UserBalanceMapper">
|
||||||
|
|
||||||
|
<update id="subtractUserBalanceByLock">
|
||||||
|
update mt_user_balance
|
||||||
|
<set>
|
||||||
|
<if test="changeCardBalance != null ">
|
||||||
|
card_balance = card_balance - #{changeCardBalance}
|
||||||
|
</if>
|
||||||
|
<if test="changePoints != null ">
|
||||||
|
points = points- #{changePoints}
|
||||||
|
</if>
|
||||||
|
<if test="changeGrowthValue != null ">
|
||||||
|
growth_value = growth_value - #{changeGrowthValue}
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
@ -10,13 +10,16 @@ import com.fuint.business.userManager.entity.UserBalance;
|
|||||||
import com.fuint.business.userManager.mapper.UserBalanceMapper;
|
import com.fuint.business.userManager.mapper.UserBalanceMapper;
|
||||||
import com.fuint.business.userManager.service.LJUserGradeService;
|
import com.fuint.business.userManager.service.LJUserGradeService;
|
||||||
import com.fuint.business.userManager.service.UserBalanceService;
|
import com.fuint.business.userManager.service.UserBalanceService;
|
||||||
|
import com.fuint.business.userManager.vo.UserBalanceVo;
|
||||||
import com.fuint.common.dto.AccountInfo;
|
import com.fuint.common.dto.AccountInfo;
|
||||||
|
import com.fuint.common.util.RedisLock;
|
||||||
import com.fuint.common.util.TokenUtil;
|
import com.fuint.common.util.TokenUtil;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 会员储值卡信息 业务层
|
* 会员储值卡信息 业务层
|
||||||
@ -52,6 +55,48 @@ public class UserBalanceServiceImpl extends ServiceImpl<UserBalanceMapper, UserB
|
|||||||
return row;
|
return row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public int addUserBalanceByLock(UserBalanceVo balance) {
|
||||||
|
|
||||||
|
int row = baseMapper.updateById(balance);
|
||||||
|
return row;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
RedisLock redisLock;
|
||||||
|
|
||||||
|
public int subtractUserBalanceByLock(UserBalanceVo balance) {
|
||||||
|
String lockKey = "userChangeBalance"+balance.getMtUserId()+balance.getChainStoreId();
|
||||||
|
Boolean flag = redisLock.tryLock(lockKey, 5001, 5000, TimeUnit.MILLISECONDS);
|
||||||
|
if (flag) {
|
||||||
|
UserBalance userBalance = selectUserBalance(balance.getMtUserId(), balance.getChainStoreId());
|
||||||
|
if (ObjectUtil.isEmpty(userBalance)) throw new RuntimeException("暂无用户信息!");
|
||||||
|
if (ObjectUtil.isNotEmpty(balance.getChangeCardBalance())) {
|
||||||
|
if (balance.getChangeCardBalance().compareTo(userBalance.getCardBalance())>0) {
|
||||||
|
throw new RuntimeException("用户余额不足!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (ObjectUtil.isNotEmpty(balance.getChangePoints())) {
|
||||||
|
if (balance.getChangeCardBalance().compareTo(userBalance.getCardBalance())>0) {
|
||||||
|
throw new RuntimeException("用户积分不足!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (ObjectUtil.isNotEmpty(balance.getChangeGrowthValue())) {
|
||||||
|
if (balance.getChangeGrowthValue().compareTo(userBalance.getGrowthValue())>0) {
|
||||||
|
throw new RuntimeException("用户成长值不足!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
balance.setId(userBalance.getId());
|
||||||
|
int row = baseMapper.subtractUserBalanceByLock(balance);
|
||||||
|
|
||||||
|
redisLock.unlock(lockKey);
|
||||||
|
return row;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<UserBalance> selectUserBalance(int userId) {
|
public List<UserBalance> selectUserBalance(int userId) {
|
||||||
QueryWrapper queryWrapper = new QueryWrapper<>();
|
QueryWrapper queryWrapper = new QueryWrapper<>();
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.fuint.business.userManager.vo;
|
||||||
|
|
||||||
|
import com.fuint.business.userManager.entity.UserBalance;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class UserBalanceVo extends UserBalance {
|
||||||
|
/**
|
||||||
|
* 余额变化
|
||||||
|
*/
|
||||||
|
private Double changeCardBalance;
|
||||||
|
/**
|
||||||
|
* 积分变化
|
||||||
|
*/
|
||||||
|
private Integer changePoints;
|
||||||
|
/**
|
||||||
|
* 成长值变化
|
||||||
|
*/
|
||||||
|
private Integer changeGrowthValue;
|
||||||
|
|
||||||
|
}
|
@ -101,15 +101,15 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
|
|||||||
/**
|
/**
|
||||||
* 查询所有过期
|
* 查询所有过期
|
||||||
*/
|
*/
|
||||||
SysDept selectStatusByTurnoverTime(Long deptId);
|
SysDept selectStatusByTurnoverTime(@Param("deptId") Long deptId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询是否过期 直接将过期的部门设置为未启用
|
* 查询是否过期 直接将过期的部门设置为未启用
|
||||||
*/
|
*/
|
||||||
int updateStatusByTurnoverTime();
|
int updateStatusByTurnoverTime();
|
||||||
|
|
||||||
int updateStatusById(Long deptId);
|
int updateStatusById(@Param("deptId") Long deptId);
|
||||||
|
|
||||||
int updateStatusByList(@Param("sysDeptsList") List<SysDept> sysDeptsList);
|
int updateStatusByList(@Param("list") List<SysDept> sysDeptsList);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -96,9 +96,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectStatusByTurnoverTime" resultType="com.fuint.system.dept.entity.SysDept">
|
<select id="selectStatusByTurnoverTime" resultType="com.fuint.system.dept.entity.SysDept">
|
||||||
select * from sys_dept where turnover_time > NOW() and turnoverType = 2 and status = 'qy'
|
select * from sys_dept where turnover_time > NOW() and turnover_type = 2 and status = 'qy'
|
||||||
<if test="deptId != null">
|
<if test="deptId != null">
|
||||||
dept_id = #{deptId}
|
and dept_id = #{deptId}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -108,12 +108,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
update sys_dept set status = 'jy' where turnover_time > NOW() and turnoverType = 2
|
update sys_dept set status = 'jy' where turnover_time > NOW() and turnoverType = 2
|
||||||
</update>
|
</update>
|
||||||
<update id="updateStatusById">
|
<update id="updateStatusById">
|
||||||
update sys_dept set status = 'jy' where deptId = #{deptId}
|
update sys_dept set status = 'jy' where dept_id = #{deptId}
|
||||||
|
|
||||||
</update>
|
</update>
|
||||||
|
<!-- where deptId = #{deptId}-->
|
||||||
<update id="updateStatusByList">
|
<update id="updateStatusByList">
|
||||||
update sys_dept set status = 'jy' where deptId = #{deptId}
|
update sys_dept set status = 'jy'
|
||||||
<where>
|
<where>
|
||||||
dept_id IN
|
dept_id IN
|
||||||
<foreach collection="list" item="list" separator="," open="(" close=")">
|
<foreach collection="list" item="list" separator="," open="(" close=")">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--发票-->
|
<!--发票-->
|
||||||
<template>
|
<template>
|
||||||
<div class="app-center">
|
<div class="app-center">
|
||||||
<div class="box-center">
|
<div id="report" ref="report" class="box-center">
|
||||||
<div class="box-title">交班统计</div>
|
<div class="box-title">交班统计</div>
|
||||||
<div class="box-ge">
|
<div class="box-ge">
|
||||||
<div class="input-box">
|
<div class="input-box">
|
||||||
@ -378,7 +378,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -496,11 +495,18 @@ import {removeUserId} from "@/utils/auth";
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
printLocally() {
|
async printLocally() {
|
||||||
printLocallyApi(this.handoverList).then(res=>{
|
const printHTML = document.querySelector('#report').innerHTML
|
||||||
|
// 将打印的区域赋值,进行打印
|
||||||
|
window.document.body.innerHTML = printHTML
|
||||||
|
window.print() // 调用window打印方法
|
||||||
|
window.location.reload() // 打印完成后重新加载页面
|
||||||
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 交班
|
// 交班
|
||||||
async shift() {
|
async shift() {
|
||||||
let msg = '交班并退出系统, 是否继续?'
|
let msg = '交班并退出系统, 是否继续?'
|
||||||
@ -699,6 +705,37 @@ import {removeUserId} from "@/utils/auth";
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
#report {
|
||||||
|
|
||||||
|
/* 打印时缩放,防止页面溢出 */
|
||||||
|
//zoom: 0.6;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
@page {
|
||||||
|
margin: 1000px;
|
||||||
|
/* size: A4 landscape; size: landscape横向,size: portrait;纵向,如果不设置,则页面有横向和纵向的选择框 */
|
||||||
|
}
|
||||||
|
|
||||||
|
//.box-center{
|
||||||
|
// margin: 20cm;
|
||||||
|
// zoom: 0.1;
|
||||||
|
//}
|
||||||
|
//#report {
|
||||||
|
// //margin: 20cm;
|
||||||
|
// margin: 0 auto;
|
||||||
|
// /* 打印时缩放,防止页面溢出 */
|
||||||
|
// zoom: 0.5;
|
||||||
|
//
|
||||||
|
//}
|
||||||
|
.cover{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.app-center{
|
.app-center{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<view class="t-b-box">
|
<view class="t-b-box">
|
||||||
<view class="goodsimg">
|
<view class="goodsimg">
|
||||||
<image :src="baseUrl+form.coverImage" mode="aspectFit"></image>
|
<image :src="baseUrl+form.coverImage" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-r-box">
|
<view class="right-r-box">
|
||||||
<view class="-title">{{form.giftName}}</view>
|
<view class="-title">{{form.giftName}}</view>
|
||||||
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
<view class="right-size" v-if="form.shippingType == '物流配送'">
|
<view class="right-size" v-if="form.shippingType == '物流配送'">
|
||||||
|
|
||||||
<span>{{form.courierCompanies}}:{{form.theTrackingNumber}}</span>
|
<span>{{form.courierCompanies?form.courierCompanies:'暂无物流信息'}}:{{form.theTrackingNumber?form.theTrackingNumber:''}}</span>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="right-size">门店自提</view>
|
<view v-else class="right-size">门店自提</view>
|
||||||
</view>
|
</view>
|
||||||
@ -75,7 +75,7 @@
|
|||||||
</u-steps-item>
|
</u-steps-item>
|
||||||
<u-steps-item title="已发货" :desc="form.shippingTime?form.shippingTime:'--'">
|
<u-steps-item title="已发货" :desc="form.shippingTime?form.shippingTime:'--'">
|
||||||
</u-steps-item>
|
</u-steps-item>
|
||||||
<u-steps-item title="运输中"></u-steps-item>
|
<u-steps-item :title="this.form.orderStatus"></u-steps-item>
|
||||||
</u-steps>
|
</u-steps>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -106,7 +106,8 @@
|
|||||||
shippingType: '',
|
shippingType: '',
|
||||||
amount: '',
|
amount: '',
|
||||||
courierCompanies: '',
|
courierCompanies: '',
|
||||||
theTrackingNumber: ''
|
theTrackingNumber: '',
|
||||||
|
orderStatus: ''
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -118,6 +119,8 @@
|
|||||||
onShow() {
|
onShow() {
|
||||||
uni.$on('pointsGoodsDetails', (data) => {
|
uni.$on('pointsGoodsDetails', (data) => {
|
||||||
this.pointsGoodsDetails = data
|
this.pointsGoodsDetails = data
|
||||||
|
|
||||||
|
console.log("this.pointsGoodsDetails", this.pointsGoodsDetails)
|
||||||
if (this.pointsGoodsDetails != null) {
|
if (this.pointsGoodsDetails != null) {
|
||||||
// this.dataProcessing()
|
// this.dataProcessing()
|
||||||
this.form.orderNumber = this.pointsGoodsDetails.orderNumber
|
this.form.orderNumber = this.pointsGoodsDetails.orderNumber
|
||||||
@ -132,6 +135,7 @@
|
|||||||
this.form.shippingType = this.pointsGoodsDetails.shippingType
|
this.form.shippingType = this.pointsGoodsDetails.shippingType
|
||||||
this.form.courierCompanies = this.pointsGoodsDetails.courierCompanies
|
this.form.courierCompanies = this.pointsGoodsDetails.courierCompanies
|
||||||
this.form.theTrackingNumber = this.pointsGoodsDetails.theTrackingNumber
|
this.form.theTrackingNumber = this.pointsGoodsDetails.theTrackingNumber
|
||||||
|
this.form.orderStatus = this.pointsGoodsDetails.orderStatus
|
||||||
|
|
||||||
// 当前订单状态
|
// 当前订单状态
|
||||||
if (this.pointsGoodsDetails.orderStatus) {
|
if (this.pointsGoodsDetails.orderStatus) {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tp">
|
<view class="tp">
|
||||||
<image src="../../static/imgs/hby.png" mode="aspectFit"></image>
|
<image src="../../static/imgs/hby.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -70,15 +70,18 @@
|
|||||||
<view class="box-goods" v-for="(item,index) in integralGiftList" :key="index"
|
<view class="box-goods" v-for="(item,index) in integralGiftList" :key="index"
|
||||||
@click="godetails(item)">
|
@click="godetails(item)">
|
||||||
<view class="goods-img">
|
<view class="goods-img">
|
||||||
<image :src="baseUrl+item.coverImage" mode="aspectFit"></image>
|
<image :src="baseUrl+item.coverImage" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="goods-title">
|
<view class="goods-title">
|
||||||
{{item.giftName}}
|
{{item.giftName}}
|
||||||
</view>
|
</view>
|
||||||
|
<view class="hui-time">
|
||||||
|
库存:{{item.remainingInventory === -1?"不限":item.remainingInventory}}
|
||||||
|
</view>
|
||||||
<view class="good-red">
|
<view class="good-red">
|
||||||
<view style="display: flex;align-items: center;">
|
<view style="display: flex;align-items: center;">
|
||||||
<view class="bi" v-if="item.exchangeMethod != '金额'">
|
<view class="bi" v-if="item.exchangeMethod != '金额'">
|
||||||
<image src="../../static/imgs/jb.png" mode="aspectFit"></image>
|
<image src="../../static/imgs/jb.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view style="color: #FC1708;font-weight: bold;">
|
<view style="color: #FC1708;font-weight: bold;">
|
||||||
<span
|
<span
|
||||||
@ -88,9 +91,7 @@
|
|||||||
v-if="item.exchangeMethod == '金额' || item.exchangeMethod == '积分+金额'">¥{{item.exchangeAmount}}</span>
|
v-if="item.exchangeMethod == '金额' || item.exchangeMethod == '积分+金额'">¥{{item.exchangeAmount}}</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="hui-time">
|
|
||||||
库存:{{item.remainingInventory === -1?"不限":item.remainingInventory}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="anniux">
|
<view class="anniux">
|
||||||
<text v-if="!item.remainingInventory || item.remainingInventory==0"
|
<text v-if="!item.remainingInventory || item.remainingInventory==0"
|
||||||
|
@ -22,11 +22,11 @@
|
|||||||
<view class="goods-box" v-for="(item,index) in orderList" :key="item.id" @click="orderDetails(item)">
|
<view class="goods-box" v-for="(item,index) in orderList" :key="item.id" @click="orderDetails(item)">
|
||||||
<view class="goods-top">
|
<view class="goods-top">
|
||||||
<view class="goods-img">
|
<view class="goods-img">
|
||||||
<image :src="baseUrl+item.coverImage" mode="aspectFit"></image>
|
<image :src="baseUrl+item.coverImage" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="nr-tip">
|
<view class="nr-tip">
|
||||||
<view class="title-s">{{item.giftName}}</view>
|
<view class="title-s">{{item.giftName}}</view>
|
||||||
<view class="hui-s">{{item.createTime}}</view>
|
<view class="hui-s">{{item.createTime}} {{item.orderType==0?"(商城兑换)":"(积分兑换)"}}</view>
|
||||||
<view class="right-size">
|
<view class="right-size">
|
||||||
<view class="jg">
|
<view class="jg">
|
||||||
{{item.amount?"¥"+item.amount:''}}
|
{{item.amount?"¥"+item.amount:''}}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<view class="dis">
|
<view class="dis">
|
||||||
<!-- <uni-icons type="location-filled" size="20"></uni-icons> -->
|
<!-- <uni-icons type="location-filled" size="20"></uni-icons> -->
|
||||||
<view class="boximg">
|
<view class="boximg">
|
||||||
<image :src="logo?baseUrl+logo:'../../static/logo.png'" mode="aspectFit"></image>
|
<image :src="logo?baseUrl+logo:'../../static/logo.png'" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="">{{storeName}}</view>
|
<view class="">{{storeName}}</view>
|
||||||
@ -35,14 +35,20 @@
|
|||||||
<view class="dis">
|
<view class="dis">
|
||||||
<uni-icons type="location-filled" color="#666666" size="30" style="margin-right: 5px;"></uni-icons>
|
<uni-icons type="location-filled" color="#666666" size="30" style="margin-right: 5px;"></uni-icons>
|
||||||
|
|
||||||
<view class="">
|
<view v-if="addrInfo" class="">
|
||||||
<view class="">家庭住址</view>
|
<view class="">{{addrInfo.name}}--{{addrInfo.mobile}}</view>
|
||||||
<view class="hui-time">
|
<view class="hui-time">
|
||||||
<!-- 山东省济南市槐荫区兴福路 -->
|
<!-- 山东省济南市槐荫区兴福路 -->
|
||||||
{{addrInfo.address}}
|
{{addrInfo.address}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view v-else class="">
|
||||||
|
<view class="">请选择家庭住址</view>
|
||||||
|
<!-- <view class="hui-time">
|
||||||
|
</view> -->
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<uni-icons type="right" size="20"></uni-icons>
|
<uni-icons type="right" size="20"></uni-icons>
|
||||||
@ -52,7 +58,7 @@
|
|||||||
<view class="box-bait">
|
<view class="box-bait">
|
||||||
<view class="dis-box">
|
<view class="dis-box">
|
||||||
<view class="goodsimg">
|
<view class="goodsimg">
|
||||||
<image :src='baseUrl+goodsInfo.coverImage' mode="aspectFit"></image>
|
<image :src='baseUrl+goodsInfo.coverImage' mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="">{{goodsInfo.giftName}}</view>
|
<view class="">{{goodsInfo.giftName}}</view>
|
||||||
@ -215,6 +221,12 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_this.appltType == "WECHAT") {
|
||||||
|
_this.paymentType = "WECHAT"
|
||||||
|
} else {
|
||||||
|
_this.paymentType = "ALIPAY"
|
||||||
|
}
|
||||||
|
|
||||||
let integralOrders = {
|
let integralOrders = {
|
||||||
giftId: this.goodsInfo.id,
|
giftId: this.goodsInfo.id,
|
||||||
amount: _this.allAmout,
|
amount: _this.allAmout,
|
||||||
@ -228,8 +240,8 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
if (this.shippingType == "物流配送") {
|
if (this.shippingType == "物流配送") {
|
||||||
if (addrInfo) {
|
if (this.addrInfo) {
|
||||||
integralOrders.addressId = addrInfo.id
|
integralOrders.addressId = this.addrInfo.id
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "请填写配送信息!",
|
title: "请填写配送信息!",
|
||||||
@ -360,7 +372,6 @@
|
|||||||
// let flag = await this.checkTheRedemptionLimit(this.goodsInfo.id)
|
// let flag = await this.checkTheRedemptionLimit(this.goodsInfo.id)
|
||||||
let flag = await this.enquiryForCollection(this.goodsInfo.id)
|
let flag = await this.enquiryForCollection(this.goodsInfo.id)
|
||||||
let num = e.value + Number(flag)
|
let num = e.value + Number(flag)
|
||||||
console.log("123123", num);
|
|
||||||
//判断库存
|
//判断库存
|
||||||
if (num > this.goodsInfo.exchangeTimes) {
|
if (num > this.goodsInfo.exchangeTimes) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@ -368,9 +379,6 @@
|
|||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
console.log("exchangeTimes", this.goodsInfo.exchangeTimes)
|
|
||||||
console.log("flag", flag)
|
|
||||||
e.value = this.goodsInfo.exchangeTimes - flag
|
e.value = this.goodsInfo.exchangeTimes - flag
|
||||||
this.value = this.goodsInfo.exchangeTimes - flag
|
this.value = this.goodsInfo.exchangeTimes - flag
|
||||||
|
|
||||||
@ -394,17 +402,23 @@
|
|||||||
this.flag = true
|
this.flag = true
|
||||||
this.allData()
|
this.allData()
|
||||||
} else {
|
} else {
|
||||||
|
this.flag = false
|
||||||
|
|
||||||
this.value = e.value
|
this.value = e.value
|
||||||
this.allData()
|
this.allData()
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
transferIndex(index) {
|
transferIndex(index) {
|
||||||
// this.qhindex = index
|
// this.qhindex = index
|
||||||
|
|
||||||
const deliveryData = JSON.parse(this.goodsInfo.deliveryMethod);
|
const deliveryData = JSON.parse(this.goodsInfo.deliveryMethod);
|
||||||
console.log("deliveryData", deliveryData)
|
console.log("deliveryData", deliveryData)
|
||||||
if (deliveryData.length >= 2) {
|
if (deliveryData.length >= 2) {
|
||||||
|
deliveryData[0] = '门店自提'
|
||||||
|
deliveryData[1] = '物流配送'
|
||||||
this.shippingType = deliveryData[index]
|
this.shippingType = deliveryData[index]
|
||||||
this.qhindex = index
|
this.qhindex = index
|
||||||
} else if (deliveryData[0] == '门店自提') {
|
} else if (deliveryData[0] == '门店自提') {
|
||||||
@ -454,8 +468,6 @@
|
|||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
console.log("11111111")
|
|
||||||
|
|
||||||
this.allAmout = this.goodsInfo.shippingFeeAmount
|
this.allAmout = this.goodsInfo.shippingFeeAmount
|
||||||
}
|
}
|
||||||
console.log("allAmout", this.allAmout)
|
console.log("allAmout", this.allAmout)
|
||||||
@ -514,8 +526,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
getAddr() {
|
async getAddr() {
|
||||||
request({
|
await request({
|
||||||
url: 'business/userManager/mtUserExpressAddress/getList',
|
url: 'business/userManager/mtUserExpressAddress/getList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user