打印日志

This commit is contained in:
2024-02-21 14:43:25 +08:00
parent cf974af4de
commit 6b7812c85c
2 changed files with 197 additions and 72 deletions

View File

@@ -599,6 +599,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
this.cleanCacheByOrderCode(orderBasicInfo.getOrderCode(), orderBasicInfo.getTransactionCode()); this.cleanCacheByOrderCode(orderBasicInfo.getOrderCode(), orderBasicInfo.getTransactionCode());
int i = orderBasicInfoMapper.updateOrderBasicInfo(orderBasicInfo); int i = orderBasicInfoMapper.updateOrderBasicInfo(orderBasicInfo);
CompletableFuture.runAsync(() -> this.cleanCacheByOrderCode(orderBasicInfo.getOrderCode(), orderBasicInfo.getTransactionCode())); CompletableFuture.runAsync(() -> this.cleanCacheByOrderCode(orderBasicInfo.getOrderCode(), orderBasicInfo.getTransactionCode()));
logger.info("修改订单updateOrderBasicInfo:{}", JSONObject.toJSONString(orderBasicInfo));
return i; return i;
} }

View File

@@ -8,7 +8,8 @@
<el-tab-pane label="客户"> <el-tab-pane label="客户">
<el-col> <el-col>
<el-button type="primary" size="mini" icon="el-icon-plus" <el-button type="primary" size="mini" icon="el-icon-plus"
@click="handleAddMember">添加会员</el-button> @click="handleAddMember">添加会员
</el-button>
</el-col> </el-col>
<el-table :data="memberGroupList" stripe style="width: 100%" v-loading="loading"> <el-table :data="memberGroupList" stripe style="width: 100%" v-loading="loading">
<el-table-column label="会员id" align="center" prop="memberId"/> <el-table-column label="会员id" align="center" prop="memberId"/>
@@ -29,14 +30,128 @@
</el-table> </el-table>
<!--分页--> <!--分页-->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getMemberList" style="margin-bottom: 20px" /> :limit.sync="queryParams.pageSize" @pagination="getMemberList"
style="margin-bottom: 20px"/>
</el-tab-pane> </el-tab-pane>
<!-- 交易明细 --> <!-- 交易明细 -->
<el-tab-pane label="交易明细"> <el-tab-pane label="交易明细">
<el-table :data="details" stripe style="width: 100%" v-loading="loading"> <!--搜索条件-->
<el-form
:model="queryOrderParams"
ref="queryForm"
size="small"
:inline="true"
v-show=true
label-width="168px"
@submit.native.prevent
>
<el-form-item label="订单编号" prop="orderCode">
<el-input
v-model="queryOrderParams.orderCode"
placeholder="请输入订单编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="订单状态" prop="orderStatus">
<el-select
v-model="queryOrderParams.orderStatus"
placeholder="请选择订单状态"
clearable
style="width: 140px"
>
<el-option
v-for="dict in dict.type.order_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="手机号码" prop="mobileNumber">
<el-input
v-model="queryOrderParams.mobileNumber"
placeholder="请输入手机号码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker v-model="queryOrderParams.createTimeRange" style="width: 240px"
value-format="yyyy-MM-dd HH:mm:ss"
:default-time="['00:00:00', '23:59:59']" type="daterange"
range-separator="-"
start-placeholder="开始日期" end-placeholder="结束日期"
:clearable="true"/>
</el-form-item>
<el-form-item label="结算时间">
<el-date-picker
v-model="queryOrderParams.settleTimeRange"
style="width: 240px"
value-format="yyyy-MM-dd HH:mm:ss"
:default-time="['00:00:00', '23:59:59']"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:clearable="true"
></el-date-picker>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索
</el-button
>
</el-col>
<el-col :span="1.5">
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置
</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['order:order:export']"
>导出
</el-button
>
</el-col>
<div>
<ul>
<li v-for="totalDate in totalDateList">
{{
totalDate.dateDescription
}}期间总用电量{{ totalDate.sumUsedElectricity }}总消费金额{{
totalDate.sumOrderAmount
}}总结算金额{{ totalDate.sumSettleAmount }}
</li>
</ul>
</div>
</el-row>
<!--结果展示-->
<el-table :data="orderListResult" stripe style="width: 100%" v-loading="loading">
<el-table-column label="订单编号" align="center" prop="orderCode" width="280px"> <el-table-column label="订单编号" align="center" prop="orderCode" width="280px">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="'/order/index/orderDetail/' + scope.row.orderCode" class="link-type"> <router-link :to="'/order/index/orderDetail/' + scope.row.orderCode"
class="link-type">
<span>{{ scope.row.orderCode }}</span> <span>{{ scope.row.orderCode }}</span>
</router-link> </router-link>
</template> </template>
@@ -45,7 +160,8 @@
<el-table-column label="会员昵称" align="center" prop="nickName" width="120px"/> <el-table-column label="会员昵称" align="center" prop="nickName" width="120px"/>
<el-table-column label="电话号码" align="center" prop="mobileNumber" width="120px"/> <el-table-column label="电话号码" align="center" prop="mobileNumber" width="120px"/>
<el-table-column label="站点" align="center" prop="stationName"/> <el-table-column label="站点" align="center" prop="stationName"/>
<el-table-column label="充电桩枪口号" align="center" prop="pileConnectorCode" width="200px" /> <el-table-column label="充电桩枪口号" align="center" prop="pileConnectorCode"
width="200px"/>
<el-table-column label="微信商户订单号" align="center" prop="outTradeNo" width="165px"/> <el-table-column label="微信商户订单号" align="center" prop="outTradeNo" width="165px"/>
<el-table-column label="启动方式" align="center" prop="startMode" width="100px"> <el-table-column label="启动方式" align="center" prop="startMode" width="100px">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -74,9 +190,11 @@
<pagination v-show="getTotal > 0" :total="getTotal" :page.sync="from.pageNum" <pagination v-show="getTotal > 0" :total="getTotal" :page.sync="from.pageNum"
:limit.sync="from.pageSize" @pagination="getOrderList" style="margin-bottom: 20px"/> :limit.sync="from.pageSize" @pagination="getOrderList" style="margin-bottom: 20px"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="站点"> <el-tab-pane label="站点">
<el-col> <el-col>
<el-button type="primary" size="mini" icon="el-icon-plus" @click="addasite">添加站点</el-button> <el-button type="primary" size="mini" icon="el-icon-plus" @click="addasite">添加站点
</el-button>
</el-col> </el-col>
<el-table :data="sitesList" stripe style="width: 100%" v-loading="loading"> <el-table :data="sitesList" stripe style="width: 100%" v-loading="loading">
<el-table-column label="站点名称" align="center" prop="stationName" width="300"/> <el-table-column label="站点名称" align="center" prop="stationName" width="300"/>
@@ -85,15 +203,18 @@
<el-table-column label="操作" align="center" width="200"> <el-table-column label="操作" align="center" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" <el-button size="mini" type="text" icon="el-icon-edit"
@click="addasite(scope.row)">修改</el-button> @click="addasite(scope.row)">修改
</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" <el-button size="mini" type="text" icon="el-icon-delete"
@click="handleDelete(scope.row)">删除</el-button> @click="handleDelete(scope.row)">删除
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!--分页--> <!--分页-->
<pagination v-show="stationTotal > 0" :total="stationTotal" :page.sync="queryStation.pageNum" <pagination v-show="stationTotal > 0" :total="stationTotal" :page.sync="queryStation.pageNum"
:limit.sync="queryStation.pageSize" @pagination="getStationList" style="margin-bottom: 20px" /> :limit.sync="queryStation.pageSize" @pagination="getStationList"
style="margin-bottom: 20px"/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-col> </el-col>
@@ -110,7 +231,8 @@
<el-dialog title="添加站点" :visible.sync="getSite" :before-close="getCancel" width="1000px" append-to-body> <el-dialog title="添加站点" :visible.sync="getSite" :before-close="getCancel" width="1000px" append-to-body>
<el-form ref="exchangeRate" :model="exchangeRate" :rules="dialogRules"> <el-form ref="exchangeRate" :model="exchangeRate" :rules="dialogRules">
<el-form-item label="请选择站点"> <el-form-item label="请选择站点">
<el-select v-model="selectSite" placeholder="请选择站点" filterable style="width:300px" @change="queryInfo"> <el-select v-model="selectSite" placeholder="请选择站点" filterable style="width:300px"
@change="queryInfo">
<el-option v-for="(station, index) in stationList" :key="index" :label="station.stationName" <el-option v-for="(station, index) in stationList" :key="index" :label="station.stationName"
:value="station.id"/> :value="station.id"/>
</el-select> </el-select>
@@ -273,6 +395,7 @@ import { addMember, queryMemberList, preferentialTemplates, queryStationList } f
import {listOrder} from "@/api/order/order"; import {listOrder} from "@/api/order/order";
import {getStationListByMerchantId} from "@/api/pile/station"; import {getStationListByMerchantId} from "@/api/pile/station";
import {queryStationBillingTemplateList, getTemplate} from "@/api/billing/template.js"; import {queryStationBillingTemplateList, getTemplate} from "@/api/billing/template.js";
export default { export default {
name: 'JsowellUiDetail', name: 'JsowellUiDetail',
dicts: ['member_status', 'start_mode', 'pay_mode', 'pay_status'], dicts: ['member_status', 'start_mode', 'pay_mode', 'pay_status'],
@@ -360,10 +483,13 @@ export default {
discount: null, discount: null,
phoneNumber: null phoneNumber: null
}, },
// 查询订单搜索条件
queryOrderParams: {},
// 订单结果集
orderListResult: [],
total: 0, total: 0,
memberGroupList: [], memberGroupList: [],
getTotal: 0, getTotal: 0,
details: [],
defaultImg: [{img: require('../../../assets/images/headPort.png')}],//默认头像 defaultImg: [{img: require('../../../assets/images/headPort.png')}],//默认头像
getSite: false, //添加站点框状态 getSite: false, //添加站点框状态
stationList: [], //站点列表 stationList: [], //站点列表
@@ -432,9 +558,7 @@ export default {
this.getOrderList(); this.getOrderList();
this.getStationList() this.getStationList()
}, },
computed: { computed: {},
},
methods: { methods: {
handleAddMember() { handleAddMember() {
this.openAddMember = true this.openAddMember = true
@@ -473,7 +597,7 @@ export default {
getOrderList() { getOrderList() {
this.loading = true; this.loading = true;
listOrder(this.from).then((response) => { listOrder(this.from).then((response) => {
this.details = response.rows; this.orderListResult = response.rows;
console.log("this.from", this.from); console.log("this.from", this.from);
console.log("response", response); console.log("response", response);
this.getTotal = response.total; this.getTotal = response.total;