no message

This commit is contained in:
DESKTOP-369JRHT\12997 2024-07-15 16:52:04 +08:00
parent 831c73d498
commit eeebaaaa51
22 changed files with 201 additions and 41 deletions

View File

@ -56,10 +56,10 @@ Vue.prototype.download = download
Vue.prototype.handleTree = handleTree Vue.prototype.handleTree = handleTree
Vue.prototype.imgurl = 'http://192.168.0.138:8008' Vue.prototype.imgurl = 'http://192.168.0.138:8008'
// Vue.prototype.pcUrl = 'http://192.168.0.178:83/' // Vue.prototype.pcUrl = 'http://192.168.0.178:83/'
// Vue.prototype.cashierUrl = 'http://192.168.31.178:83/#/homeindex' // 收银台 // Vue.prototype.cashierUrl = 'http://192.168.31.178:84/homeindex' // 收银台
// Vue.prototype.pcUrl = 'http://192.168.31.178:83/#/homeindex' // 收银台 // Vue.prototype.pcUrl = 'http://192.168.31.178:83/#/homeindex' // 收银台
// Vue.prototype.ztUrl = 'http://192.168.31.178:82/' // 中台 // Vue.prototype.ztUrl = 'http://192.168.31.178:82/' // 中台
Vue.prototype.cashierUrl = 'https://cashier.youkerr.com/#/homeindex' // 收银台 Vue.prototype.cashierUrl = 'https://cashier.youkerr.com/homeindex' // 收银台
Vue.prototype.pcUrl = 'https://www.youkerr.com/' // 收银台 Vue.prototype.pcUrl = 'https://www.youkerr.com/' // 收银台
Vue.prototype.ztUrl = 'https://oil.youkerr.com/' // 中台 Vue.prototype.ztUrl = 'https://oil.youkerr.com/' // 中台
const Collapse= false const Collapse= false

View File

@ -21,6 +21,7 @@
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item style="float: right"> <el-form-item style="float: right">
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<el-button @click="resetQuery" icon="el-icon-refresh" >重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
@ -648,6 +649,15 @@ export default {
this.queryParams.page = 1; this.queryParams.page = 1;
this.getList(); this.getList();
}, },
resetQuery() {
this.queryParams = {
page: 1,
pageSize: 10,
name:'',
status: '',
};
this.getList();
},
handleChange(){ handleChange(){
}, },
// //

View File

@ -22,6 +22,8 @@
</el-form-item> </el-form-item>
<el-form-item style="float: right"> <el-form-item style="float: right">
<el-button type="primary" icon="el-icon-search" @click="handleQuery1">查询</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery1">查询</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -351,6 +353,17 @@ export default {
this.loading = false; this.loading = false;
}) })
}, },
//
resetQuery() {
this.queryParams1 = {
page:1,
pageSize:10,
// id使
storeId:"",
}
this.getDutyList();
},
} }
} }
</script> </script>

View File

@ -312,7 +312,7 @@ import {getmyDataApi, getRunningWaterByTissueApi, getTissueByDataApi, getTrading
// //
async getOrderStatistics() { async getOrderStatistics() {
await this.getDeptList() // await this.getDeptList()
let dateRange = [] let dateRange = []
if (this.beginTime && this.endTime) { if (this.beginTime && this.endTime) {
@ -321,7 +321,7 @@ import {getmyDataApi, getRunningWaterByTissueApi, getTissueByDataApi, getTrading
} }
getTissueByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{ getTissueByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
this.orderStatistics = res.data this.orderStatistics = res.data
this.getOrderStatistics() // this.getOrderStatistics()
}) })
@ -341,7 +341,7 @@ import {getmyDataApi, getRunningWaterByTissueApi, getTissueByDataApi, getTrading
this.orderList = response.data.records; this.orderList = response.data.records;
this.total = response.data.total; this.total = response.data.total;
this.isSysDate = false this.isSysDate = false
this.getOrderStatistics()
}) })
}, },
async getDeptList() { async getDeptList() {
@ -364,6 +364,8 @@ import {getmyDataApi, getRunningWaterByTissueApi, getTissueByDataApi, getTrading
this.queryParams = { this.queryParams = {
page: 1, page: 1,
pageSize: 10, pageSize: 10,
status:"refund",
} }
this.beginTime = "" this.beginTime = ""
this.endTime = "" this.endTime = ""

View File

@ -173,6 +173,7 @@ import {
pageSize: 10, pageSize: 10,
beginTime:"", beginTime:"",
endTime:"", endTime:"",
isType:"3",
}, },
orderStatistics:{ orderStatistics:{
amount:'0', amount:'0',
@ -194,7 +195,7 @@ import {
this.beginTime = start this.beginTime = start
this.endTime = new Date() this.endTime = new Date()
this.isSysDate = true this.isSysDate = true
await this.getDeptList(); // await this.getDeptList();
this.getList(); this.getList();
@ -238,18 +239,20 @@ import {
}, },
// //
getList(val){ async getList(val){
await this.getDeptList()
let dateRange = [] let dateRange = []
if (this.beginTime && this.endTime) { if (this.beginTime && this.endTime) {
dateRange.push(this.beginTime.toLocaleDateString()) dateRange.push(this.beginTime.toLocaleDateString())
dateRange.push(this.endTime.toLocaleDateString()) dateRange.push(this.endTime.toLocaleDateString())
} }
getDayListApi(this.addDateRange(this.queryParams, dateRange)).then( response => { await getDayListApi(this.addDateRange(this.queryParams, dateRange)).then( response => {
this.orderList = response.data.records; this.orderList = response.data.records;
this.total = response.data.total; this.total = response.data.total;
this.isSysDate = false this.isSysDate = false
this.getOrderStatistics()
}) })
this.getOrderStatistics()
}, },
// //
@ -263,6 +266,8 @@ import {
this.queryParams = { this.queryParams = {
page: 1, page: 1,
pageSize: 10, pageSize: 10,
isType:"3",
} }
this.beginTime = "" this.beginTime = ""
this.endTime = "" this.endTime = ""

View File

@ -124,7 +124,12 @@
<el-table-column prop="addr" align="center" label="门店省市"> </el-table-column> <el-table-column prop="addr" align="center" label="门店省市"> </el-table-column>
<el-table-column prop="amount" align="center" label="交易金额"> </el-table-column> <el-table-column prop="amount" align="center" label="交易金额"> </el-table-column>
<el-table-column prop="strokeCount" align="center" label="交易笔数"> </el-table-column> <el-table-column prop="strokeCount" align="center" label="交易笔数"> </el-table-column>
<el-table-column prop="unitPrice" align="center" label="笔单价"> </el-table-column> <el-table-column prop="unitPrice" align="center" label="笔单价">
<template slot-scope="scope">
{{ scope.row.unitPrice?(Number(scope.row.unitPrice).toFixed(2)) : '' }}
</template>
</el-table-column>
<el-table-column prop="dailyAmount" align="center" label="日均交易金额"> </el-table-column> <el-table-column prop="dailyAmount" align="center" label="日均交易金额"> </el-table-column>
<el-table-column prop="strokesPerDay" align="center" label="日均交易笔数"> </el-table-column> <el-table-column prop="strokesPerDay" align="center" label="日均交易笔数"> </el-table-column>
<!-- <el-table-column prop="parentStoreId" align="center" label="机构编号"> </el-table-column>--> <!-- <el-table-column prop="parentStoreId" align="center" label="机构编号"> </el-table-column>-->

View File

@ -34,7 +34,7 @@
<el-form-item style="float: right"> <el-form-item style="float: right">
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<!-- <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>--> <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
@ -245,6 +245,16 @@ export default {
this.queryParams.page = 1; this.queryParams.page = 1;
this.getList(); this.getList();
}, },
resetQuery() {
this.queryParams = {
supplierName: '',
contactPerson: '',
contactPhone: '',
page:null,
pageSize:null
};
this.getList();
},
}, },
} }

View File

@ -15,7 +15,7 @@
<el-form-item style="float: right"> <el-form-item style="float: right">
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<!-- <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>--> <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
@ -399,6 +399,14 @@ export default {
this.queryParams.page = 1; this.queryParams.page = 1;
this.getList(); this.getList();
}, },
resetQuery() {
this.queryParams = {
tankName: '',
page:null,
pageSize:null
};
this.getList();
},
// //
tankAdd() { tankAdd() {
// //

View File

@ -38,7 +38,7 @@
</el-form-item> </el-form-item>
<el-form-item style="float: right"> <el-form-item style="float: right">
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<!-- <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>--> <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -730,10 +730,18 @@ export default {
}, },
// //
resetQuery() { resetQuery() {
this.dateRange = []; // this.dateRange = [];
this.resetForm("queryForm"); // this.resetForm("queryForm");
this.$refs.tables.sort(this.defaultSort.prop, this.defaultSort.order) // this.$refs.tables.sort(this.defaultSort.prop, this.defaultSort.order)
this.handleQuery(); // this.handleQuery();
this.queryParams = {
page: 1,
pageSize: 10,
realName: '',
mobile: '',
status: ''
}
this.getList();
}, },
// //
handleStatusChange(row) { handleStatusChange(row) {

View File

@ -23,7 +23,7 @@
</el-form-item> </el-form-item>
<el-form-item style="float: right"> <el-form-item style="float: right">
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<!-- <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>--> <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -290,10 +290,18 @@ export default {
}, },
// //
resetQuery() { resetQuery() {
this.dateRange = []; // this.dateRange = [];
this.resetForm("queryForm"); // this.resetForm("queryForm");
this.$refs.tables.sort(this.defaultSort.prop, this.defaultSort.order) // this.$refs.tables.sort(this.defaultSort.prop, this.defaultSort.order)
this.handleQuery(); // this.handleQuery();
this.queryParams = {
page: 1,
pageSize: 10,
realName: '',
tagCodeSn: '',
snCode: ''
}
this.getList();
}, },
// //

View File

@ -58,7 +58,7 @@ Vue.prototype.handleTree = handleTree
Vue.prototype.bkUrl = 'https://www.youkerr.com/' //跳转油站 Vue.prototype.bkUrl = 'https://www.youkerr.com/' //跳转油站
Vue.prototype.pcUrl = 'https://www.youkerr.com' // 收银台 Vue.prototype.pcUrl = 'https://www.youkerr.com/' // 收银台
// 全局组件挂载 // 全局组件挂载
Vue.component('DictTag', DictTag) Vue.component('DictTag', DictTag)
Vue.component('Pagination', Pagination) Vue.component('Pagination', Pagination)

View File

@ -5,6 +5,7 @@ import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model; import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@ -37,10 +38,14 @@ public class FavorableRecords extends Model<FavorableRecords> {
//创建者 //创建者
private String createBy; private String createBy;
//创建时间 //创建时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
private Date createTime; private Date createTime;
//更新者 //更新者
private String updateBy; private String updateBy;
//更新时间 //更新时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
private Date updateTime; private Date updateTime;
} }

View File

@ -11,4 +11,5 @@ public class AllOrderInfoDto extends AllOrderInfo {
private Long deptId; //节点类型:1代理商2连锁店3基本门店4三方机构 private Long deptId; //节点类型:1代理商2连锁店3基本门店4三方机构
private List<Long> storeIds; private List<Long> storeIds;
private String flag; private String flag;
private String isType;
} }

View File

@ -41,6 +41,10 @@ public interface AllOrderInfoMapper extends BaseMapper<AllOrderInfo> {
AllOrderInfoVo getRunningWaterByDayData(@Param("allOrderInfo") AllOrderInfoDto allOrderInfo); AllOrderInfoVo getRunningWaterByDayData(@Param("allOrderInfo") AllOrderInfoDto allOrderInfo);
AllOrderInfoVo getRunningWaterByDayDataLimit(@Param("allOrderInfo") AllOrderInfoDto allOrderInfo);
AllOrderInfoVo getRunningWaterByData(@Param("allOrderInfo") AllOrderInfoDto allOrderInfo); AllOrderInfoVo getRunningWaterByData(@Param("allOrderInfo") AllOrderInfoDto allOrderInfo);

View File

@ -251,6 +251,12 @@
) AS unitPrice ) AS unitPrice
from all_order_info aoi from all_order_info aoi
WHERE date_format(aoi.pay_time,'%y%m%d') BETWEEN date_format(#{allOrderInfo.params.beginTime},'%y%m%d') AND date_format(#{allOrderInfo.params.endTime},'%y%m%d') WHERE date_format(aoi.pay_time,'%y%m%d') BETWEEN date_format(#{allOrderInfo.params.beginTime},'%y%m%d') AND date_format(#{allOrderInfo.params.endTime},'%y%m%d')
<if test="allOrderInfo.storeIds != null">
and aoi.store_id in
<foreach collection="allOrderInfo.storeIds" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
GROUP BY date_format(aoi.pay_time,'%y%m%d') GROUP BY date_format(aoi.pay_time,'%y%m%d')
HAVING HAVING
amount > 0 amount > 0
@ -271,7 +277,14 @@
) AS unitPrice ) AS unitPrice
from all_order_info aoi from all_order_info aoi
WHERE date_format(aoi.pay_time,'%y%m%d') BETWEEN date_format(#{allOrderInfo.params.beginTime},'%y%m%d') AND date_format(#{allOrderInfo.params.endTime},'%y%m%d') WHERE date_format(aoi.pay_time,'%y%m%d') BETWEEN date_format(#{allOrderInfo.params.beginTime},'%y%m%d') AND date_format(#{allOrderInfo.params.endTime},'%y%m%d')
<if test="allOrderInfo.storeIds != null">
and aoi.store_id in
<foreach collection="allOrderInfo.storeIds" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</select> </select>
<select id="getRunningWaterByData" resultType="com.fuint.business.order.vo.AllOrderInfoVo"> <select id="getRunningWaterByData" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
select select
COUNT(DISTINCT aoi.store_id) storeCount, COUNT(DISTINCT aoi.store_id) storeCount,
@ -437,6 +450,21 @@
</if> </if>
</where> </where>
</select> </select>
<select id="getRunningWaterByDayDataLimit" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
SELECT
*
from all_order_info
<where>
<if test="allOrderInfo.storeIds != null">
and store_id in
<foreach collection="allOrderInfo.storeIds" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</where>
order by create_time ASC limit 1
</select>
<!-- WHERE--> <!-- WHERE-->
<!-- DATE(pay_time) = CURDATE();--> <!-- DATE(pay_time) = CURDATE();-->
<!-- <if test="startTime != null ">&lt;!&ndash; 开始时间检索 &ndash;&gt;--> <!-- <if test="startTime != null ">&lt;!&ndash; 开始时间检索 &ndash;&gt;-->

View File

@ -60,6 +60,7 @@ import java.math.BigDecimal;
import java.math.RoundingMode; import java.math.RoundingMode;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId; import java.time.ZoneId;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit; import java.time.temporal.ChronoUnit;
@ -784,11 +785,6 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
} }
public IPage<AllOrderInfoVo> runningWaterByDay(Page page, AllOrderInfoDto allOrderInfo) { public IPage<AllOrderInfoVo> runningWaterByDay(Page page, AllOrderInfoDto allOrderInfo) {
//计算天数
if (ObjectUtil.isEmpty(allOrderInfo.getParams().get("beginTime")) || ObjectUtil.isEmpty(allOrderInfo.getParams().get("endTime"))) {
throw new RuntimeException("请选择时间范围");
}
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
if (ObjectUtil.isEmpty(allOrderInfo.getDeptId())) { if (ObjectUtil.isEmpty(allOrderInfo.getDeptId())) {
@ -801,6 +797,25 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
allOrderInfo.setStoreIds(longs); allOrderInfo.setStoreIds(longs);
} }
//计算天数
if (ObjectUtil.isEmpty(allOrderInfo.getParams().get("beginTime")) || ObjectUtil.isEmpty(allOrderInfo.getParams().get("endTime"))) {
// throw new RuntimeException("请选择时间范围");
AllOrderInfoVo runningWaterByDay = allOrderInfoMapper.getRunningWaterByDayDataLimit(allOrderInfo);
allOrderInfo.getParams().put("beginTime",runningWaterByDay.getCreateTime());
// 获取当前时间
LocalDateTime now = LocalDateTime.now();
// 定义所需的格式
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
// 格式化当前时间
String formattedNow = now.format(formatter);
allOrderInfo.getParams().put("endTime",formattedNow);
}
// 数据查询 // 数据查询
IPage<AllOrderInfoVo> runningWaterByDay = allOrderInfoMapper.getRunningWaterByDay(page,allOrderInfo); IPage<AllOrderInfoVo> runningWaterByDay = allOrderInfoMapper.getRunningWaterByDay(page,allOrderInfo);
@ -810,15 +825,47 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
} }
public AllOrderInfoVo getRunningWaterByDayData(AllOrderInfoDto allOrderInfo) { public AllOrderInfoVo getRunningWaterByDayData(AllOrderInfoDto allOrderInfo) {
//计算天数 AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
if (!ObjectUtil.isNotEmpty(allOrderInfo.getParams().get("beginTime")) && ObjectUtil.isNotEmpty(allOrderInfo.getParams().get("endTime"))) { // allOrderInfo.setDeptType("3");
throw new RuntimeException(""); // allOrderInfo.setStoreId(nowAccountInfo.getStoreId());
// List<SysDeptVo> sysDepts = new ArrayList<>();
// if ("3".equals(allOrderInfo.getIsType())) {
// SysDeptVo sysDept = sysDeptMapper.getStoreByDept(nowAccountInfo.getDeptId());
// sysDepts.add(sysDept);
// }else {
// sysDepts = sysDeptMapper.selectChildrenDeptByIdStore(nowAccountInfo.getDeptId());
// }
if (ObjectUtil.isEmpty(allOrderInfo.getDeptId())) {
allOrderInfo.setDeptType("3");
List<SysDeptVo> sysDepts = sysDeptMapper.selectChildrenDeptByIdStore(nowAccountInfo.getDeptId());
allOrderInfo.setStoreIds(sysDepts.stream().map(SysDeptVo::getStoreId).collect(Collectors.toList()));
}else {
ArrayList<Long> longs = new ArrayList<>();
longs.add(Long.parseLong(nowAccountInfo.getStoreId().toString()));
allOrderInfo.setStoreIds(longs);
} }
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
allOrderInfo.setDeptType("3"); // allOrderInfo.setStoreIds(sysDepts.stream().map(SysDeptVo::getStoreId).collect(Collectors.toList()));
List<SysDeptVo> sysDepts = sysDeptMapper.selectChildrenDeptByIdStore(nowAccountInfo.getDeptId()); //计算天数
allOrderInfo.setStoreIds(sysDepts.stream().map(SysDeptVo::getStoreId).collect(Collectors.toList())); if (ObjectUtil.isEmpty(allOrderInfo.getParams().get("beginTime")) || ObjectUtil.isEmpty(allOrderInfo.getParams().get("endTime"))) {
// throw new RuntimeException("");
AllOrderInfoVo runningWaterByDay = allOrderInfoMapper.getRunningWaterByDayDataLimit(allOrderInfo);
allOrderInfo.getParams().put("beginTime",runningWaterByDay.getCreateTime());
// 获取当前时间
LocalDateTime now = LocalDateTime.now();
// 定义所需的格式
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
// 格式化当前时间
String formattedNow = now.format(formatter);
allOrderInfo.getParams().put("endTime",formattedNow);
}
// 数据查询 // 数据查询
AllOrderInfoVo runningWaterByDay = allOrderInfoMapper.getRunningWaterByDayData(allOrderInfo); AllOrderInfoVo runningWaterByDay = allOrderInfoMapper.getRunningWaterByDayData(allOrderInfo);

View File

@ -266,7 +266,7 @@ public class LJUserController extends BaseController {
* @return * @return
*/ */
@PutMapping("/edit") @PutMapping("/edit")
public ResponseObject editUser(@Validated @RequestBody LJUser user){ public ResponseObject editUser(@Validated @RequestBody LJUser user){
return getSuccessResult(userService.editUser(user)); return getSuccessResult(userService.editUser(user));
} }
} }

View File

@ -71,6 +71,7 @@ public class UserBalance extends BaseEntity implements Serializable {
* 固定等级 * 固定等级
*/ */
private String fixingLevel; private String fixingLevel;
private String remark;

View File

@ -10,7 +10,7 @@
</sql> </sql>
<sql id="selectUserAndBalance"> <sql id="selectUserAndBalance">
select mu.*,mub.id balanceId,mub.grade_id,mub.card_balance,mub.points,mub.consume_num,mub.growth_value,mub.refuel_money, select mu.*,mub.id balanceId,mub.grade_id,mub.card_balance,mub.points,mub.consume_num,mub.growth_value,mub.refuel_money,
mub.second_card,mub.fixing_level,mub.create_time balCreateTime mub.second_card,mub.fixing_level,mub.create_time balCreateTime,mub.remark remark
FROM mt_user mu FROM mt_user mu
LEFT JOIN mt_user_balance mub ON mu.id = mub.mt_user_id LEFT JOIN mt_user_balance mub ON mu.id = mub.mt_user_id
</sql> </sql>

View File

@ -562,6 +562,7 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
if (!ObjectUtil.isEmpty(balance)){ if (!ObjectUtil.isEmpty(balance)){
balance.setGradeId(userVo.getGradeId()); balance.setGradeId(userVo.getGradeId());
balance.setFixingLevel(userVo.getFixingLevel()); balance.setFixingLevel(userVo.getFixingLevel());
balance.setRemark(userVo.getRemark());
balanceService.updateUserBalance(balance); balanceService.updateUserBalance(balance);
} }
return row; return row;

View File

@ -3,7 +3,7 @@ import store from './store'
import { Message } from 'element-ui' import { Message } from 'element-ui'
import NProgress from 'nprogress' import NProgress from 'nprogress'
import 'nprogress/nprogress.css' import 'nprogress/nprogress.css'
import { getToken } from '@/utils/auth' import { getToken,setToken } from '@/utils/auth'
import { isRelogin } from '@/utils/request' import { isRelogin } from '@/utils/request'
NProgress.configure({ showSpinner: false }) NProgress.configure({ showSpinner: false })
@ -12,15 +12,19 @@ const whiteList = ['/login', '/auth-redirect']
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
NProgress.start() NProgress.start()
if (true) {
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
console.log("urlParams111",urlParams)
console.log("urlParams111",window.location.search)
const data = urlParams.get('token'); const data = urlParams.get('token');
console.log(data); // 输出: "value" console.log("token",data); // 输出: "value"
if(data) { if(data) {
console.log(data); // 输出: "value" console.log(data); // 输出: "value"
setToken(data); setToken(data);
} }
}
if (getToken()) { if (getToken()) {

View File

@ -144,7 +144,7 @@ Router.prototype.push = function push(location) {
} }
export default new Router({ export default new Router({
// mode: 'history', // 去掉url中的# mode: 'history', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes routes: constantRoutes
}) })