Merge branch 'sit-Carl' of gitee.com:carl_Ming_1/smart-admin into sit-He-v3

This commit is contained in:
Admin 2022-01-23 06:40:06 +00:00 committed by Gitee
commit 924a83a7e0
18 changed files with 154 additions and 180 deletions

View File

@ -81,11 +81,12 @@ export const isexistCart = (id, pet, address) => {
/** /**
* 删除购物车 * 删除购物车
*/ */
export const deleteCart = (productCode) => { export const deleteCart = ( productCode) => {
debugger;
var data = { var data = {
productCode: productCode productCode
} }
return fetch('cancelCartProductInfo', data, 'POST') return fetch('cancelCartProductInfo',productCode,'POST')
} }
/** /**
* 购物车批量提交 * 购物车批量提交
@ -188,16 +189,14 @@ export const userquery = (stype,) => {
return fetch('goods?petType=' + stype, data, 'POST') return fetch('goods?petType=' + stype, data, 'POST')
} }
//处方信息 //处方信息
export const userque = (stype, curPage, curRow) => { export const userque = (goodsName, curPage,curRow) => {
if (!curPage) if(!curPage)
curPage = 1; curPage=1;
if (!curRow) if(!curRow)
curRow = 10; curRow=10;
let queryTail = 'page=' + curPage + '&rows=' + curRow; let queryTail='page='+curPage+'&rows='+curRow;
if (stype) if(goodsName)
queryTail = '?stype=' + queryTail + '&' + queryTail; queryTail = '?goodsName='+goodsName;
else
queryTail = '?' + queryTail;
var data = { var data = {
} }
return fetch('goods' + queryTail, data, 'POST') return fetch('goods' + queryTail, data, 'POST')

View File

@ -22,8 +22,9 @@
.rc-button{ .rc-button{
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: flex-end;
width: 375px; width: 100%;
height: 80px; height: 80px;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0px -3px 6px rgba(0, 0, 0, 0.1); box-shadow: 0px -3px 6px rgba(0, 0, 0, 0.1);
@ -38,6 +39,7 @@ opacity: 1;
border-radius: 30px; border-radius: 30px;
background: #E2001A; background: #E2001A;
display: flex; display: flex;
margin-right: 20px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 16px; font-size: 16px;

View File

@ -1,12 +1,11 @@
<template> <template>
<div class="crumbs" v-if="showTab"> <div class="crumbs" v-if="showTab">
<el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to=item.path v-for="(item, index) in titleLists" <el-breadcrumb-item to="/" >{{ this.homepageName }}</el-breadcrumb-item>
:key="index">{{ item.meta.title }}</el-breadcrumb-item>
<!-- <el-breadcrumb-item>商品管理</el-breadcrumb-item> <el-breadcrumb-item :to=item.path v-for="(item, index) in crumbs"
<el-breadcrumb-item>商品分类</el-breadcrumb-item> --> :key="index">{{ item.title }}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</div> </div>
</template> </template>
@ -14,93 +13,25 @@
import { mapState, mapMutations } from "vuex"; import { mapState, mapMutations } from "vuex";
export default { export default {
props:["crumbs"],
name:"crumbs",
data() { data() {
return { return {
title: "", homepageName:'首页'
path: "", };
titleLists: [ },
{ created(){
path: '/', if(this.showTab != false)
name: 'index', this.showTab=true;
meta:{ },
title: '首页', watch: {
},
} mounted() {
} },
],
showTab: true,
isShow: true,
};
},
watch: {
$route() {
this.setTitle();
},
},
mounted() {
this.setTitle();
},
methods: {
...mapMutations(["changemessage",'selectMenu']),
setTitle() {
console.log(this.$route.matched);
console.log(this.titleLists);
let userinfo=[]
let saveUserInfo={
path:'admin',
name:'1',
meta:'b341181c-aced-11e9-89bf-00163e0e8daf',
}
userinfo.push(this.$route.matched);
let list=[];
console.log(userinfo);
userinfo.map(item=>{
console.log(item);
list=item;
})
console.log(list);
let anlist={
path:'admin',
name:'1',
meta:'b341181c-aced-11e9-89bf-00163e0e8daf',
}
list.forEach(element=>{
console.log(element);
anlist=element
})
for(let i in list){
saveUserInfo.path=list[i].path;
saveUserInfo.name=list[i].name;
saveUserInfo.meta=list[i].meta;
}
console.log(saveUserInfo);
// store.commit('se', current.name);
this.selectMenu({ data: saveUserInfo });
console.log(this.$store.state.tabsList);
this.titleLists=this.$store.state.tabsList;
// console.log(userlisa);
console.log(this.titleLists);
},
},
// created(){
// let user=this.$store.state.tabsList;
// this.tags=user;
// console.log(this.tags);
// console.log(user);
// console.log(this.$store.state.tabsList)
// },
// mounted(){
// }
methods: {
...mapMutations(["changemessage",'selectMenu'])
}
}; };
</script> </script>

View File

@ -1164,7 +1164,7 @@
} }
window.addEventListener("scroll", this.handleScroll, true); window.addEventListener("scroll", this.handleScroll, true);
this.userchufang();// this.userchufang();//
this.catmessage();// this.catmessage();//
this.catclickGan(); this.catclickGan();
this.catclickShi(); this.catclickShi();
@ -1468,9 +1468,9 @@
this.dataLoaded=false; this.dataLoaded=false;
let data=[]; let data=[];
if(stype==undefined||stype==null){ if(stype==undefined||stype==null){
data = await biaomessage(0,'',1,6); data = await biaomessage(0,'',1,12);
}else{ }else{
data = await biaomessage(this.userserachlist,'',1,6); data = await biaomessage(this.userserachlist,'',1,12);
} }
if(data){ if(data){
let userlist=[]; let userlist=[];
@ -1546,12 +1546,14 @@
}, },
// //
async userchufang() { async userchufang(item) {
if(!item)
item = this.discounchufang[0].title;
this.dataLoaded=false; this.dataLoaded=false;
let list=[]; let list=[];
let data = await userque(); let data = await userque(item,1,8);
if(data){ if(data){
list=data.slice(0,6); list=data.slice(0,8);
this.processinformation=list; this.processinformation=list;
this.chufanlist=data; this.chufanlist=data;
this.dataLoaded=true; this.dataLoaded=true;
@ -1560,15 +1562,17 @@
// //
async userquery(item) { async userquery(item) {
this.dataLoaded=false; this.dataLoaded=false;
let list=[];
let data = await userquery(item); let data = await userquery(item);
if(data){ if(data){
this.processinformation=data; list=data.slice(0,8);
this.processinformation=list;
this.dataLoaded=true; this.dataLoaded=true;
} }
}, },
// //
userclick(item,index){ userclick(item,index){
this.userquery(index) this.userchufang(index)
}, },
// //
catclickGan(){ catclickGan(){

View File

@ -146,6 +146,7 @@
<script> <script>
import Myheader from "~/components/header.vue"; import Myheader from "~/components/header.vue";
import { mapMutations } from "vuex";
import { userin} from "../../ajax/getData"; import { userin} from "../../ajax/getData";
import MyFooter from '~/components/rc-footer.vue' import MyFooter from '~/components/rc-footer.vue'
import {selectaddress,canceldanhao,generateOrderWX} from "../../ajax/getData"; import {selectaddress,canceldanhao,generateOrderWX} from "../../ajax/getData";
@ -168,6 +169,7 @@ export default {
usersalesAmount:'', usersalesAmount:'',
leftico: require("../../assets/image/rc-left.png"), leftico: require("../../assets/image/rc-left.png"),
orderNumber:'', orderNumber:'',
userdata:"",
usermessage:null, usermessage:null,
userid: null, userid: null,
useralllist:[], useralllist:[],
@ -196,7 +198,11 @@ export default {
}; };
}, },
methods: { methods: {
...mapMutations(["checkIsLogin"]),
refreshDesktopNav:function(){
RCDL.navigation.currentState=null;
RCDL.navigation.rebuild();
},
// //
async canceldanhao(orderNumber) { async canceldanhao(orderNumber) {
let data = await canceldanhao(this.userphone,this.orderNumber); let data = await canceldanhao(this.userphone,this.orderNumber);
@ -221,6 +227,12 @@ userpay(){
if(this.goldastates==0){ if(this.goldastates==0){
this.canceldanhao(); this.canceldanhao();
} }
else if( this.customer='联系客服申请售后'){
var option = {
customer: {id: '', name: '', email: '', mobile: '', memberId: this.userdata.data.id}
}
dis_livchat(option);
}
}, },
// //
onceagain(){ onceagain(){
@ -317,6 +329,9 @@ if(data){
}, },
mounted() { mounted() {
this.checkIsLogin();
this.userdata=this.$store.state.userInfo;
console.log(this.userdata);
this.usermessage = JSON.parse(localStorage.getItem("userInfo")); this.usermessage = JSON.parse(localStorage.getItem("userInfo"));
this.userid = this.usermessage.data.id; this.userid = this.usermessage.data.id;
this.userphone=this.usermessage.data.mobile; this.userphone=this.usermessage.data.mobile;

View File

@ -54,7 +54,7 @@
</div> </div>
<div class="rc-userbottom"> <div class="rc-userbottom">
<span>数量:{{ item.pcs }}</span> <span>数量:{{ item.pcs }}</span>
<i>{{ }}</i> <i>10</i>
</div> </div>
<div class="rc-userbottomm"> <div class="rc-userbottomm">
<i>{{ item.userprice }}</i> <i>{{ item.userprice }}</i>
@ -289,6 +289,9 @@ export default {
this.goldmedal = data; this.goldmedal = data;
this.alllist=[]; this.alllist=[];
this.useralllist=[]; this.useralllist=[];
this.obligation=[];
this.receiving=[];
this.pending=[];
for (let i = 0; i < this.goldmedal.length; i++) { for (let i = 0; i < this.goldmedal.length; i++) {
this.useralllist.push(this.goldmedal[i].orderDetailList[0]); this.useralllist.push(this.goldmedal[i].orderDetailList[0]);
this.alllist.push(this.goldmedal[i].orderDetailList[0]) this.alllist.push(this.goldmedal[i].orderDetailList[0])
@ -299,10 +302,11 @@ export default {
}else if(this.goldmedal[i].status==1){ }else if(this.goldmedal[i].status==1){
this.receiving.push(this.goldmedal[i].orderDetailList[0]); this.receiving.push(this.goldmedal[i].orderDetailList[0]);
} }
else if(this.goldmedal[i].status==4){ else if(this.useralllist[i].status==2){
this.pending.push(this.goldmedal[i].orderDetailList[0]); this.pending.push(this.goldmedal[i].orderDetailList[0]);
} }
} }
for (var i = 0; i < this.useralllist.length; i++) { for (var i = 0; i < this.useralllist.length; i++) {
this.useralllist[i].orderNumber = this.goldmedal[i].orderNumber; this.useralllist[i].orderNumber = this.goldmedal[i].orderNumber;
this.useralllist[i].status = this.goldmedal[i].status; this.useralllist[i].status = this.goldmedal[i].status;
@ -346,7 +350,7 @@ export default {
// addressDetailInfo: orderAddress[0].detailAddress, // addressDetailInfo: orderAddress[0].detailAddress,
// }, // },
// }; // };
postData.push(oneProduct); // postData.push(oneProduct);
let res = await generateOrderWX(postData); let res = await generateOrderWX(postData);
let userPayData = { let userPayData = {
orderId: res.data, orderId: res.data,
@ -383,7 +387,7 @@ export default {
message: "取消订单成功", message: "取消订单成功",
}); });
setTimeout(() => { setTimeout(() => {
this.indet(); this.indet(this.userdata);
this.activeIndex=0; this.activeIndex=0;
this.useralllist=[]; this.useralllist=[];
}, 500); }, 500);

View File

@ -2,6 +2,7 @@
<div> <div>
<Myheader></Myheader> <Myheader></Myheader>
<div class="rc-top"></div> <div class="rc-top"></div>
<tabs :crumbs="crumbs"></tabs>
<div class="rc-max-width--xl rc-main"> <div class="rc-max-width--xl rc-main">
<div class="usersearch"> <div class="usersearch">
<div class="usercontentshow" ref="usercontent"> <div class="usercontentshow" ref="usercontent">
@ -310,6 +311,7 @@
import Myheader from "~/components/header.vue"; import Myheader from "~/components/header.vue";
import MyFooter from '~/components/rc-footer.vue' import MyFooter from '~/components/rc-footer.vue'
import FixRight from "~/components/fixed-right.vue"; import FixRight from "~/components/fixed-right.vue";
import tabs from "~/components/tabs.vue";
import { import {
userstype, userstype,
biaome, biaome,
@ -320,21 +322,27 @@ import {
export default { export default {
data() { data() {
return { return {
value: "", crumbs:[
isLoading: false, {
userstype: [], path:'/productdetails/productlist/',
activeIndex: "0", title:'产品列表',
allacindex: 0, }
userishwo: true, ],
userishwo4: true, value: "",
userserachlist: [ isLoading: false,
{ userstype: [],
categoryName: [], // activeIndex: "0",
tagUsedAge: [], // allacindex: 0,
tagFunction: [], // userishwo: true,
tagBreed: [], // userishwo4: true,
}, userserachlist: [
], {
categoryName: [], //
tagUsedAge: [], //
tagFunction: [], //
tagBreed: [], //
},
],
activeIndex1: 0, activeIndex1: 0,
activeIndexa: "-1", activeIndexa: "-1",
dialogInfo1: false, dialogInfo1: false,
@ -343,6 +351,7 @@ export default {
activeIndexd: "-1", activeIndexd: "-1",
activeIndexe: "-1", activeIndexe: "-1",
activeIndexf: "-1", activeIndexf: "-1",
inRxGoods:false,
isadrond: true, isadrond: true,
isshow: false, isshow: false,
openshow: false, openshow: false,
@ -476,7 +485,8 @@ export default {
components: { components: {
Myheader, Myheader,
MyFooter, MyFooter,
FixRight FixRight,
tabs
}, },
created() { created() {
this.routeParams=this.$route.query; this.routeParams=this.$route.query;
@ -527,7 +537,7 @@ export default {
} }
} }
} }
data = await searchchanpin(searchCriteria, usertype, 1, 12); data = await searchchanpin(searchCriteria, usertype, 1, 120);
} }
if (data) { if (data) {
this.rccontair = data; this.rccontair = data;
@ -698,9 +708,12 @@ export default {
tmp.checked=true; tmp.checked=true;
} }
}); });
this.inRxGoods=true;
} }
else else {
this.prefecture[this.rxGoodsIndexPointer].checked=false; this.prefecture[this.rxGoodsIndexPointer].checked=false;
this.inRxGoods=false;
}
}, },
resetAllOptions(){ resetAllOptions(){
let _self = this; let _self = this;
@ -736,7 +749,7 @@ export default {
let isRxGoods=false; let isRxGoods=false;
let productCode = []; let productCode = [];
let mainProductCode = item.productCode; let mainProductCode = item.productCode;
if(!item.ecPrice && !item.price) if(this.inRxGoods)
{ {
isRxGoods=1; isRxGoods=1;
productCode = [item.productCode]; productCode = [item.productCode];

View File

@ -104,23 +104,23 @@ export default {
register(){ register(){
console.log(this.tel) console.log(this.tel)
if (!/^[1][3,4,5,7,8][0-9]{9}$/.test(this.tel) || this.tel === "") { if ( this.alladdress==='') {
this.$message({ this.$message({
type: 'warning', type: 'warning',
message: '手机号码输入有误' message: '请输入详细地址 '
}); });
return return
}else if(this.alladdress===''){ }if(!/^[1][3,4,5,7,8][0-9]{9}$/.test(this.tel) || this.tel === ""){
this.$message({ this.$message({
type: 'warning', type: 'warning',
message: '请输入详细地址' message: '手机号码输入有误'
}); });
return return
} }
else if(this.userpeople===''){ else if(this.userpeople===''){
this.$message({ this.$message({
type: 'warning', type: 'warning',
message: '请输入姓名' message: '请填写收货人'
}); });
return return
} }

View File

@ -158,7 +158,7 @@ export default {
if(data){ if(data){
this.$message({ this.$message({
type: 'warning', type: 'warning',
message: '删除成功' message: '地址删除成功'
}); });
} }
this.editaddress(); this.editaddress();

View File

@ -363,6 +363,7 @@ export default {
activeIndexd: "-1", activeIndexd: "-1",
activeIndexe: "-1", activeIndexe: "-1",
activeIndexf: "-1", activeIndexf: "-1",
inRxGoods:false,
isadrond: true, isadrond: true,
isshow: false, isshow: false,
openshow: false, openshow: false,
@ -590,7 +591,7 @@ export default {
} }
} }
} }
data = await searchchanpin(searchCriteria, usertype, 1, 12); data = await searchchanpin(searchCriteria, usertype, 1, 120);
} }
if (data) { if (data) {
this.rccontair = data; this.rccontair = data;
@ -706,9 +707,12 @@ export default {
tmp.checked=true; tmp.checked=true;
} }
}); });
this.inRxGoods=true;
} }
else else {
this.prefecture[this.rxGoodsIndexPointer].checked=false; this.prefecture[this.rxGoodsIndexPointer].checked=false;
this.inRxGoods=false;
}
}, },
resetAllOptions(){ resetAllOptions(){
let _self = this; let _self = this;

View File

@ -48,6 +48,7 @@ public class OrderController {
@Autowired @Autowired
private CartService cartService; private CartService cartService;
@ApiOperation(value = "微信支付订单", notes = "生成订单") @ApiOperation(value = "微信支付订单", notes = "生成订单")
@PostMapping("royalcanin/generateOrderWX") @PostMapping("royalcanin/generateOrderWX")
public ResponseDTO<String> generateOrderWX(@RequestBody List<OrdersEntity> ordersEntityList) throws Exception { public ResponseDTO<String> generateOrderWX(@RequestBody List<OrdersEntity> ordersEntityList) throws Exception {
@ -57,6 +58,7 @@ public class OrderController {
String mobile = ""; String mobile = "";
int buyCount = 0; int buyCount = 0;
double total_fee = 0 ; double total_fee = 0 ;
double basePoint = 0 ;
WxPayEntity wxPayEntity = new WxPayEntity(); WxPayEntity wxPayEntity = new WxPayEntity();
JSONArray orderDatilListJson = new JSONArray(); JSONArray orderDatilListJson = new JSONArray();
OrdersEntity ordersEntity = new OrdersEntity(); OrdersEntity ordersEntity = new OrdersEntity();
@ -79,6 +81,7 @@ public class OrderController {
}else{ }else{
total_fee = total_fee + Double.parseDouble(ordersEntitys.getPayAmount()) * ordersEntitys.getBuyCount() ; total_fee = total_fee + Double.parseDouble(ordersEntitys.getPayAmount()) * ordersEntitys.getBuyCount() ;
} }
basePoint = basePoint + ordersEntitys.getBasePoint();
orderAddress.setAddressCityName(ordersEntitys.getOrderAddress().getAddressCityName()); orderAddress.setAddressCityName(ordersEntitys.getOrderAddress().getAddressCityName());
orderAddress.setAddressCountyName(ordersEntitys.getOrderAddress().getAddressCountyName()); orderAddress.setAddressCountyName(ordersEntitys.getOrderAddress().getAddressCountyName());
orderAddress.setAddressDetailInfo(ordersEntitys.getOrderAddress().getAddressDetailInfo()); orderAddress.setAddressDetailInfo(ordersEntitys.getOrderAddress().getAddressDetailInfo());
@ -100,6 +103,7 @@ public class OrderController {
ordersEntity.setBuyCount(buyCount); ordersEntity.setBuyCount(buyCount);
ordersEntity.setOrderNo(GenerateSequenceUtil.generateSequenceNo()); ordersEntity.setOrderNo(GenerateSequenceUtil.generateSequenceNo());
ordersEntity.setOrderStatus("0"); ordersEntity.setOrderStatus("0");
ordersEntity.setBasePoint(basePoint);
if(orderService.generateOrder(ordersEntity,orderDatilListJson) == 1){ if(orderService.generateOrder(ordersEntity,orderDatilListJson) == 1){
wxPayEntity.setProduct_id(ordersEntity.getProductCode()); wxPayEntity.setProduct_id(ordersEntity.getProductCode());

View File

@ -25,4 +25,6 @@ public class CartEntity {
private String mobile; private String mobile;
private int leftAllotment;
} }

View File

@ -41,5 +41,5 @@ public class OrderEntity {
private String payType="1"; private String payType="1";
private String basePoint;
} }

View File

@ -41,4 +41,6 @@ public class OrdersEntity {
private OrderAddress orderAddress; private OrderAddress orderAddress;
private Double basePoint;
} }

View File

@ -21,17 +21,17 @@ public class MemberAccountChangeEntity {
/** /**
* 会员ID * 会员ID
*/ */
private int memberId; private String memberId;
/** /**
* 积分变更类型 * 积分变更类型
*/ */
private int changeTypeId; private String changeTypeId;
/** /**
* 积分增加/减少数量 * 积分增加/减少数量
*/ */
private BigDecimal changeValue; private String changeValue;
/** /**
* 积分明细 * 积分明细

View File

@ -1,10 +1,11 @@
package net.lab1024.smartadmin.module.system.wxpay; package net.lab1024.smartadmin.module.system.wxpay;
import net.lab1024.smartadmin.module.system.royalcanin.domain.RoyalcaninOperateLogService; import net.lab1024.smartadmin.module.system.royalcanin.MemberAccountService;
import net.lab1024.smartadmin.module.system.royalcanin.good.model.OrderEntity;
import net.lab1024.smartadmin.module.system.royalcanin.good.service.OrderService; import net.lab1024.smartadmin.module.system.royalcanin.good.service.OrderService;
import net.lab1024.smartadmin.module.system.royalcanin.memberAccount.MemberAccountChangeEntity;
import net.lab1024.smartadmin.module.system.royalcanin.notify.model.NotifyEntity; import net.lab1024.smartadmin.module.system.royalcanin.notify.model.NotifyEntity;
import net.lab1024.smartadmin.module.system.royalcanin.notify.service.NotifyService; import net.lab1024.smartadmin.module.system.royalcanin.notify.service.NotifyService;
import net.lab1024.smartadmin.module.system.royalcanin.orderMaster.AddOrSaveEntity;
import net.lab1024.smartadmin.module.system.royalcanin.orderMaster.QueryEntity; import net.lab1024.smartadmin.module.system.royalcanin.orderMaster.QueryEntity;
import net.lab1024.smartadmin.module.system.wxpay.sdk.WXPay; import net.lab1024.smartadmin.module.system.wxpay.sdk.WXPay;
import net.lab1024.smartadmin.module.system.wxpay.sdk.WXPayUtil; import net.lab1024.smartadmin.module.system.wxpay.sdk.WXPayUtil;
@ -40,6 +41,12 @@ public class WxpayService {
private NotifyService notifyService; private NotifyService notifyService;
@Autowired
private MemberAccountService memberAccountService;
public String generateQRCode(WxPayEntity wxPayEntity) throws Exception { public String generateQRCode(WxPayEntity wxPayEntity) throws Exception {
WXPay wxpay = new WXPay(config); WXPay wxpay = new WXPay(config);
InetAddress ip4 = Inet4Address.getLocalHost(); InetAddress ip4 = Inet4Address.getLocalHost();
@ -86,6 +93,13 @@ public class WxpayService {
if ("SUCCESS".equals(sortedMap.get("result_code"))) { if ("SUCCESS".equals(sortedMap.get("result_code"))) {
String outTradeNo = sortedMap.get("out_trade_no"); // 流水号 String outTradeNo = sortedMap.get("out_trade_no"); // 流水号
String totalFee = sortedMap.get("total_fee"); // 交易金额 String totalFee = sortedMap.get("total_fee"); // 交易金额
OrderEntity orderEntity = orderService.findByOrderId(outTradeNo);
MemberAccountChangeEntity memberAccountChangeEntity = new MemberAccountChangeEntity();
memberAccountChangeEntity.setChangeTypeId("1");
memberAccountChangeEntity.setChangeValue(orderEntity.getBasePoint());
memberAccountChangeEntity.setMemberId(orderEntity.getMemberId());
memberAccountService.memberAccountChange(memberAccountChangeEntity);
NotifyEntity notifyEntity = new NotifyEntity(); NotifyEntity notifyEntity = new NotifyEntity();
notifyEntity.setAppId(sortedMap.get("appid")); notifyEntity.setAppId(sortedMap.get("appid"));

View File

@ -78,7 +78,8 @@ public class SmartJWTUtil {
} }
public static void main(String[] args) { public static void main(String[] args) {
String token = SmartJWTUtil.generateToken("844350"); String token = SmartJWTUtil.generateToken("884234");
System.out.println(token);
System.out.println(SmartJWTUtil.decodeToken(token)); System.out.println(SmartJWTUtil.decodeToken(token));
} }

View File

@ -36,7 +36,7 @@ CREATE TABLE IF NOT EXISTS `t_department` (
DELETE FROM `t_department`; DELETE FROM `t_department`;
/*!40000 ALTER TABLE `t_department` DISABLE KEYS */; /*!40000 ALTER TABLE `t_department` DISABLE KEYS */;
INSERT INTO `t_department` (`id`, `name`, `short_name`, `manager_id`, `parent_id`, `sort`, `update_time`, `create_time`) VALUES INSERT INTO `t_department` (`id`, `name`, `short_name`, `manager_id`, `parent_id`, `sort`, `update_time`, `create_time`) VALUES
(1, '1024创新实验室', 'ZWGWL', 16, 0, 1, '2019-04-03 10:41:25', '2019-04-03 10:41:25'), (1, '实验室', 'ZWGWL', 16, 0, 1, '2019-04-03 10:41:25', '2019-04-03 10:41:25'),
(2, '二级部门-2', NULL, 15, 1, 17, '2019-04-15 16:45:10', '2019-04-15 16:45:10'), (2, '二级部门-2', NULL, 15, 1, 17, '2019-04-15 16:45:10', '2019-04-15 16:45:10'),
(4, '二级部门-1', '管理', 14, 1, 20, '2019-04-17 16:14:55', '2019-04-17 16:14:55'), (4, '二级部门-1', '管理', 14, 1, 20, '2019-04-17 16:14:55', '2019-04-17 16:14:55'),
(8, '三级部门-1', NULL, NULL, 4, 8, '2019-04-25 12:25:52', '2019-04-25 12:25:52'), (8, '三级部门-1', NULL, NULL, 4, 8, '2019-04-25 12:25:52', '2019-04-25 12:25:52'),
@ -213,7 +213,7 @@ CREATE TABLE IF NOT EXISTS `t_file` (
DELETE FROM `t_file`; DELETE FROM `t_file`;
/*!40000 ALTER TABLE `t_file` DISABLE KEYS */; /*!40000 ALTER TABLE `t_file` DISABLE KEYS */;
INSERT INTO `t_file` (`id`, `module_id`, `module_type`, `file_name`, `file_size`, `file_type`, `file_path`, `file_location_type`, `creater_user`, `update_time`, `create_time`) VALUES INSERT INTO `t_file` (`id`, `module_id`, `module_type`, `file_name`, `file_size`, `file_type`, `file_path`, `file_location_type`, `creater_user`, `update_time`, `create_time`) VALUES
(1, '1', '1', '阿里云1.jpg', NULL, NULL, 'backUser/config/d1788b717be24f14ba526f25397b936f', 2, 1, NULL, '2019-07-05 10:38:15'), (1, '1', '1', '阿里.jpg', NULL, NULL, 'backUser/config/d1788b717be24f14ba526f25397b936f', 2, 1, NULL, '2019-07-05 10:38:15'),
(2, '2', '1', '1.jpg', NULL, NULL, 'backUser/config/8895ec770c4e4e558c6d9b54eb00dffc', 2, 1, '2019-07-18 09:20:59', '2019-07-18 09:20:25'), (2, '2', '1', '1.jpg', NULL, NULL, 'backUser/config/8895ec770c4e4e558c6d9b54eb00dffc', 2, 1, '2019-07-18 09:20:59', '2019-07-18 09:20:25'),
(3, '3', '1', '随笔.txt', NULL, NULL, 'backUser/config/f5cbc4c9a56f4fa7ad0ba58b0aa5d169', 2, 1, NULL, '2019-07-18 09:22:47'), (3, '3', '1', '随笔.txt', NULL, NULL, 'backUser/config/f5cbc4c9a56f4fa7ad0ba58b0aa5d169', 2, 1, NULL, '2019-07-18 09:22:47'),
(4, '3', '1', '1.jpg', NULL, NULL, 'backUser/config/2019071809245603e0a4e449a4bf3aa28ee731c309040.jpg', 1, 1, NULL, '2019-07-18 09:24:51'), (4, '3', '1', '1.jpg', NULL, NULL, 'backUser/config/2019071809245603e0a4e449a4bf3aa28ee731c309040.jpg', 1, 1, NULL, '2019-07-18 09:24:51'),
@ -328,7 +328,7 @@ INSERT INTO `t_notice` (`id`, `title`, `content`, `deleted`, `send_status`, `cre
(95, '4444444', '444444444444', 1, 1, 1, '2019-07-13 17:54:53', '2019-09-04 09:42:02'), (95, '4444444', '444444444444', 1, 1, 1, '2019-07-13 17:54:53', '2019-09-04 09:42:02'),
(96, '3434', '444444', 1, 1, 1, '2019-07-13 17:58:42', '2019-11-08 09:05:24'), (96, '3434', '444444', 1, 1, 1, '2019-07-13 17:58:42', '2019-11-08 09:05:24'),
(97, '44444', '555555555555', 1, 1, 1, '2019-07-13 17:58:54', '2019-09-03 16:19:50'), (97, '44444', '555555555555', 1, 1, 1, '2019-07-13 17:58:54', '2019-09-03 16:19:50'),
(98, '《青花瓷》', '素胚勾勒出青花笔锋浓转淡\n瓶身描绘的牡丹一如你初妆\n冉冉檀香透过窗心事我了然\n周杰伦 青花瓷\n周杰伦 青花瓷\n宣纸上走笔至此搁一半\n釉色渲染仕女图韵味被私藏\n而你嫣然的一笑如含苞待放\n你的美一缕飘散\n去到我去不了的地方\n天青色等烟雨 而我在等你\n炊烟袅袅升起 隔江千万里\n在瓶底书刻隶仿前朝的飘逸\n就当我为遇见你伏笔\n天青色等烟雨 而我在等你\n月色被打捞起 晕开了结局\n如传世的青花瓷自顾自美丽\n你眼带笑意\n色白花青的锦鲤跃然于碗底\n临摹宋体落款时却惦记着你\n你隐藏在窑烧里千年的秘密\n极细腻犹如绣花针落地\n篱外芭蕉惹骤雨门环惹铜绿\n而我路过那江南小镇惹了你\n在泼墨山水画里\n你从墨色深处被隐去\n天青色等烟雨 而我在等你\n炊烟袅袅升起 隔江千万里\n在瓶底书刻隶仿前朝的飘逸\n就当我为遇见你伏笔\n天青色等烟雨 而我在等你\n月色被打捞起 晕开了结局\n如传世的青花瓷自顾自美丽\n你眼带笑意\n天青色等烟雨 而我在等你\n炊烟袅袅升起 隔江千万里\n在瓶底书刻隶仿前朝的飘逸\n就当我为遇见你伏笔\n天青色等烟雨 而我在等你\n月色被打捞起 晕开了结局\n如传世的青花瓷自顾自美丽\n你眼带笑意 ', 1, 1, 1, '2019-08-05 16:36:44', '2019-09-02 17:53:12'), (98, '《青花瓷》', '你眼带笑意 ', 1, 1, 1, '2019-08-05 16:36:44', '2019-09-02 17:53:12'),
(99, '1', '2', 1, 1, 30, '2019-08-08 14:53:58', '2019-08-08 14:54:07'), (99, '1', '2', 1, 1, 30, '2019-08-08 14:53:58', '2019-08-08 14:54:07'),
(100, '呵呵', '呵呵', 1, 1, 1, '2019-08-20 16:52:53', '2019-09-02 17:46:59'), (100, '呵呵', '呵呵', 1, 1, 1, '2019-08-20 16:52:53', '2019-09-02 17:46:59'),
(101, 'aa', 'bbcc', 1, 1, 30, '2019-08-23 09:51:01', '2019-08-23 09:51:28'), (101, 'aa', 'bbcc', 1, 1, 30, '2019-08-23 09:51:01', '2019-08-23 09:51:28'),
@ -1604,29 +1604,6 @@ CREATE TABLE IF NOT EXISTS `t_royalcanin_operate_log` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=51 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=MyISAM AUTO_INCREMENT=51 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE `t_good_user` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户Id',
`username` varchar(128) DEFAULT NULL COMMENT '用户名',
`sex` varchar(20) DEFAULT NULL COMMENT '性别',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='产品用户表';
CREATE TABLE `t_good_flow` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`flow_no` varchar(32) DEFAULT NULL COMMENT '流水号',
`order_no` varchar(20) DEFAULT NULL COMMENT '订单号',
`product_id` varchar(20) DEFAULT NULL COMMENT '产品主键ID',
`pay_amount` varchar(11) DEFAULT NULL COMMENT '支付金额',
`pay_type` int(11) DEFAULT NULL COMMENT '支付方式\r\n 1支付宝\r\n 2微信',
`buy_count` int(11) DEFAULT NULL COMMENT '购买个数',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='产品流水表';
CREATE TABLE `t_good_orders` ( CREATE TABLE `t_good_orders` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
@ -1643,6 +1620,7 @@ CREATE TABLE `t_good_orders` (
`member_id` varchar(20) DEFAULT NULL COMMENT '用户member', `member_id` varchar(20) DEFAULT NULL COMMENT '用户member',
`phone_number` varchar(20) DEFAULT NULL COMMENT '用户手机', `phone_number` varchar(20) DEFAULT NULL COMMENT '用户手机',
`buy_count` int(11) DEFAULT NULL COMMENT '产品购买的个数', `buy_count` int(11) DEFAULT NULL COMMENT '产品购买的个数',
`base_point` int(11) DEFAULT NULL COMMENT '产品积分',
`pay_type` int(11) DEFAULT NULL COMMENT '支付方式 1支付宝 2微信', `pay_type` int(11) DEFAULT NULL COMMENT '支付方式 1支付宝 2微信',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '订单创建时间', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '订单创建时间',
`pay_time` datetime DEFAULT NULL COMMENT '支付时间', `pay_time` datetime DEFAULT NULL COMMENT '支付时间',
@ -1677,6 +1655,7 @@ CREATE TABLE IF NOT EXISTS `t_royalcanin_cart` (
`product_img` varchar(5000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `product_img` varchar(5000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`specifications` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `specifications` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`buy_count` int(20) DEFAULT NULL, `buy_count` int(20) DEFAULT NULL,
`left_allotment` int(20) DEFAULT NULL,
`member_id` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `member_id` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mobile` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `mobile` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,