Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
4328a0dd4b
@ -986,9 +986,10 @@ export default {
|
||||
validityOne: null,
|
||||
validityTwo:null,
|
||||
validity:row.validity,
|
||||
giftCardDetail: row.useInstructions , //券详情
|
||||
giftCardDetail: row.cardDetail, //券详情
|
||||
giftCardTime: row.validity, //券有效期
|
||||
giftCardTotal: 1 //券数量
|
||||
giftCardTotal: 1, //券数量
|
||||
instruction: row.useInstructions, //使用说明
|
||||
}
|
||||
|
||||
this.tableDatas.push(data)
|
||||
@ -1011,14 +1012,15 @@ export default {
|
||||
goodsTotal: "", //商品数量
|
||||
vouchersId:row.id, //券id
|
||||
giftCardName:row.name, //赠送卡券名称
|
||||
giftCardType: row.type, //券类型
|
||||
giftCardType: row.discountType, //券类型
|
||||
timeType: row.timeType,
|
||||
validityZero: row.validityZero,
|
||||
validityOne: row.validityOne,
|
||||
validityTwo:row.validityTwo,
|
||||
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //券详情
|
||||
giftCardTime: "", //券有效期
|
||||
giftCardTotal: 1//券数量
|
||||
giftCardTotal: 1,//券数量
|
||||
instruction: row.instruction,//使用说明
|
||||
}
|
||||
|
||||
// this.form.tableDatas.push(data)
|
||||
|
@ -785,9 +785,10 @@ export default {
|
||||
validityOne: null,
|
||||
validityTwo:null,
|
||||
validity:row.validity,
|
||||
giftCardDetail: row.useInstructions , //券详情
|
||||
giftCardDetail: row.cardDetail , //券详情
|
||||
giftCardTime: row.validity, //券有效期
|
||||
giftCardTotal: 1 //券数量
|
||||
giftCardTotal: 1, //券数量
|
||||
instruction: row.useInstructions, //使用说明
|
||||
}
|
||||
|
||||
this.tableDatas.push(data)
|
||||
@ -810,14 +811,15 @@ export default {
|
||||
goodsTotal: "", //商品数量
|
||||
vouchersId:row.id, //券id
|
||||
giftCardName:row.name, //赠送卡券名称
|
||||
giftCardType: row.type, //券类型
|
||||
giftCardType: row.discountType, //券类型
|
||||
timeType: row.timeType,
|
||||
validityZero: row.validityZero,
|
||||
validityOne: row.validityOne,
|
||||
validityTwo:row.validityTwo,
|
||||
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //券详情
|
||||
giftCardTime: "", //券有效期
|
||||
giftCardTotal: 1//券数量
|
||||
giftCardTotal: 1,//券数量
|
||||
instruction: row.instruction,//使用说明
|
||||
}
|
||||
|
||||
this.form.tableDatas.push(data)
|
||||
|
@ -943,9 +943,10 @@ export default {
|
||||
validityOne: null,
|
||||
validityTwo:null,
|
||||
validity:row.validity,
|
||||
giftCardDetail: row.useInstructions , //券详情
|
||||
giftCardDetail: row.cardDetail , //券详情
|
||||
giftCardTime: row.validity, //券有效期
|
||||
giftCardTotal: 1 //券数量
|
||||
giftCardTotal: 1 , //券数量
|
||||
instruction: row.useInstructions, //使用说明
|
||||
}
|
||||
|
||||
this.ruleForm.dlist.push(data)
|
||||
@ -979,14 +980,15 @@ export default {
|
||||
goodsTotal: "", //商品数量
|
||||
vouchersId:row.id, //券id
|
||||
giftCardName:row.name, //赠送卡券名称
|
||||
giftCardType: row.type, //券类型
|
||||
giftCardType: row.discountType, //券类型
|
||||
timeType: row.timeType,
|
||||
validityZero: row.validityZero,
|
||||
validityOne: row.validityOne,
|
||||
validityTwo:row.validityTwo,
|
||||
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //券详情
|
||||
giftCardTime: "", //券有效期
|
||||
giftCardTotal: 1//券数量
|
||||
giftCardTotal: 1,//券数量
|
||||
instruction: row.instruction,//使用说明
|
||||
}
|
||||
this.ruleForm.xylist.push(data)
|
||||
this.$message.success("新增成功")
|
||||
@ -1008,14 +1010,15 @@ export default {
|
||||
goodsTotal: "", //商品数量
|
||||
vouchersId:row.id, //券id
|
||||
giftCardName:row.name, //赠送卡券名称
|
||||
giftCardType: row.type, //券类型
|
||||
giftCardType: row.discountType, //券类型
|
||||
timeType: row.timeType,
|
||||
validityZero: row.validityZero,
|
||||
validityOne: row.validityOne,
|
||||
validityTwo:row.validityTwo,
|
||||
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //券详情
|
||||
giftCardTime: "", //券有效期
|
||||
giftCardTotal: 1//券数量
|
||||
giftCardTotal: 1,//券数量
|
||||
instruction: row.instruction,//使用说明
|
||||
}
|
||||
console.log(data)
|
||||
this.ruleForm.ylist.push(data)
|
||||
|
@ -194,8 +194,8 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="卡券有效期" prop="validity">
|
||||
<el-input-number :min="1" placeholder="请输入卡券有效期" v-model="form.validity">
|
||||
<template slot="append">天</template>
|
||||
</el-input-number>
|
||||
<span style="margin-left: 10px">天</span>
|
||||
<!-- <div style="width: 217px">
|
||||
<el-input type="number" placeholder="请输入卡券有效期" v-model="form.validity">
|
||||
<template slot="append">天</template>
|
||||
|
@ -75,7 +75,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="优惠金额" align="center" prop="discountAmount" >
|
||||
<template slot-scope="scope">
|
||||
减 <el-tag effect="plain" >{{scope.row.discountAmount}}</el-tag> 元
|
||||
<span v-if="scope.row.discountType == 0">减 <el-tag effect="plain" >{{scope.row.discountAmount}}</el-tag> 元</span>
|
||||
<span v-if="scope.row.discountType == 1">打 <el-tag effect="plain" >{{scope.row.specialDiscount}}</el-tag> 折</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="有效期" align="center" prop="validity" >
|
||||
|
@ -501,6 +501,7 @@ export default {
|
||||
})
|
||||
} else {
|
||||
this.auditPrem = []
|
||||
this.form.auditPrem = ""
|
||||
}
|
||||
},
|
||||
getAuditPrem(){
|
||||
|
@ -328,8 +328,8 @@
|
||||
label="券类型"
|
||||
width="80">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.giftCardType == 0" >油品券</span>
|
||||
<!-- <span v-if="scope.row.giftCardType == 1" >洗车券</span>-->
|
||||
<span v-if="scope.row.giftCardType == 0" >满减券</span>
|
||||
<span v-if="scope.row.giftCardType == 1" >折扣券</span>
|
||||
<!-- <span v-if="scope.row.giftCardType == 2" >通用券</span>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -626,8 +626,8 @@
|
||||
label="券类型"
|
||||
width="100">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.type == 0" >油品券</span>
|
||||
<!-- <span v-if="scope.row.type == 1" >洗车券</span>-->
|
||||
<span v-if="scope.row.discountType == 0" >满减券</span>
|
||||
<span v-if="scope.row.discountType == 1" >折扣券</span>
|
||||
<!-- <span v-if="scope.row.type == 2" >通用券</span>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -950,9 +950,10 @@ export default {
|
||||
validityOne: null,
|
||||
validityTwo:null,
|
||||
validity:row.validity,
|
||||
giftCardDetail: row.useInstructions , //券详情
|
||||
giftCardDetail: row.cardDetail , //券详情
|
||||
giftCardTime: row.validity, //券有效期
|
||||
giftCardTotal: 1 //券数量
|
||||
giftCardTotal: 1 , //券数量
|
||||
instruction: row.useInstructions, //使用说明
|
||||
}
|
||||
|
||||
this.tableDatas.push(data)
|
||||
@ -972,14 +973,15 @@ export default {
|
||||
activeGift: 1, //充值赠送类型:1、赠送优惠券 2、赠送兑换券
|
||||
vouchersId:row.id, //券id
|
||||
giftCardName:row.name, //赠送卡券名称
|
||||
giftCardType: row.type, //券类型
|
||||
giftCardType: row.discountType, //券类型
|
||||
timeType: row.timeType,
|
||||
validityZero: row.validityZero,
|
||||
validityOne: row.validityOne,
|
||||
validityTwo:row.validityTwo,
|
||||
giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //券详情
|
||||
giftCardTime: "", //券有效期
|
||||
giftCardTotal: 1//券数量
|
||||
giftCardTotal: 1,//券数量
|
||||
instruction: row.instruction,//使用说明
|
||||
}
|
||||
|
||||
this.tableDatas1.push(data)
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.fuint.business.member.controller;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.fuint.business.member.entity.LJStaff;
|
||||
@ -148,6 +149,8 @@ public class LJStaffController extends BaseController {
|
||||
*/
|
||||
@PutMapping
|
||||
public ResponseObject edit(@Validated @RequestBody LJStaff staff){
|
||||
if (ObjectUtil.isEmpty(staff.getAuditPrem()))
|
||||
mtStaffService.lambdaUpdate().eq(LJStaff::getId,staff.getId()).set(LJStaff::getAuditPrem,null).update();
|
||||
return getSuccessResult(mtStaffService.updateStaff(staff));
|
||||
}
|
||||
|
||||
|
@ -133,9 +133,6 @@
|
||||
<if test="user.chainStoreId != null and user.chainStoreId != ''">
|
||||
and mub.chain_store_id = #{user.chainStoreId}
|
||||
</if>
|
||||
<if test="user.storeId != null and user.storeId != ''">
|
||||
and mub.store_id = #{user.storeId}
|
||||
</if>
|
||||
<if test="user.mobile != null and user.mobile != ''">
|
||||
and mu.mobile like concat('%', #{user.mobile}, '%')
|
||||
</if>
|
||||
|
@ -147,11 +147,13 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
|
||||
// Double refuelMoney = baseMapper.selectSumByStore(storeId, "refuel_money");
|
||||
|
||||
QueryWrapper queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("chain_store_id",chainStoreId);
|
||||
queryWrapper.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 0");
|
||||
// Integer addNum = baseMapper.selectCount(queryWrapper);
|
||||
Integer addNum = userBalanceMapper.selectCount(queryWrapper);
|
||||
|
||||
QueryWrapper queryWrapper1 = new QueryWrapper<>();
|
||||
queryWrapper1.eq("chain_store_id",chainStoreId);
|
||||
queryWrapper1.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 1");
|
||||
|
||||
// Integer yesterdayAddNum = baseMapper.selectCount(queryWrapper1);
|
||||
|
Loading…
Reference in New Issue
Block a user