mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
精简部分代码
This commit is contained in:
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.bean.model;
|
||||
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@TableName("tz_score_log")
|
||||
public class ScoreLog {
|
||||
/**
|
||||
* 积分记录id
|
||||
*/
|
||||
@TableId
|
||||
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 0支出 1收入
|
||||
*/
|
||||
private Byte type;
|
||||
|
||||
/**
|
||||
* 记录创建时间
|
||||
*/
|
||||
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 流水号
|
||||
*/
|
||||
private String sn;
|
||||
|
||||
/**
|
||||
* 积分类型:1回收加积分 2购买减积分
|
||||
*/
|
||||
|
||||
private Byte scoreType;
|
||||
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.bean.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@TableName("tz_sens_word")
|
||||
public class SensWord {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId
|
||||
|
||||
private Long sensId;
|
||||
|
||||
/**
|
||||
* 敏感字
|
||||
*/
|
||||
private String words;
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.bean.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@TableName("tz_wx_order")
|
||||
public class WxOrder implements Serializable {
|
||||
/**
|
||||
* 微信订单id
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 订单流水号
|
||||
*/
|
||||
private String sn;
|
||||
|
||||
/**
|
||||
* 微信流水号
|
||||
*/
|
||||
|
||||
private String wxSn;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
private Byte status;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
private Double amount;
|
||||
|
||||
/**
|
||||
* 订单类型
|
||||
*/
|
||||
|
||||
private Byte orderType;
|
||||
|
||||
/**
|
||||
* 扩展信息
|
||||
*/
|
||||
|
||||
private String extendInfo;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
|
||||
private Date updateTime;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.dao;
|
||||
|
||||
import com.yami.shop.bean.model.ScoreLog;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface ScoreLogMapper extends BaseMapper<ScoreLog> {
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.dao;
|
||||
|
||||
import com.yami.shop.bean.model.SensWord;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface SensWordMapper extends BaseMapper<SensWord> {
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.dao;
|
||||
|
||||
import com.yami.shop.bean.model.WxOrder;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface WxOrderMapper extends BaseMapper<WxOrder> {
|
||||
|
||||
void updateStatusByFlowTradeNo(String outTradeNo);
|
||||
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.yami.shop.bean.model.ScoreLog;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/10/15.
|
||||
*/
|
||||
public interface ScoreLogService extends IService<ScoreLog> {
|
||||
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.yami.shop.bean.model.WxOrder;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/09/18.
|
||||
*/
|
||||
public interface WxOrderService extends IService<WxOrder> {
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.yami.shop.bean.model.ScoreLog;
|
||||
import com.yami.shop.dao.ScoreLogMapper;
|
||||
import com.yami.shop.service.ScoreLogService;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/10/15.
|
||||
*/
|
||||
@Service
|
||||
public class ScoreLogServiceImpl extends ServiceImpl<ScoreLogMapper, ScoreLog> implements ScoreLogService {
|
||||
|
||||
@Autowired
|
||||
private ScoreLogMapper scoreLogMapper;
|
||||
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.gz-yami.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.yami.shop.bean.model.WxOrder;
|
||||
import com.yami.shop.dao.WxOrderMapper;
|
||||
import com.yami.shop.service.WxOrderService;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lgh on 2018/09/18.
|
||||
*/
|
||||
@Service
|
||||
public class WxOrderServiceImpl extends ServiceImpl<WxOrderMapper, WxOrder> implements WxOrderService {
|
||||
|
||||
@Autowired
|
||||
private WxOrderMapper wxOrderMapper;
|
||||
|
||||
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
<?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.yami.shop.dao.ScoreLogMapper">
|
||||
<resultMap id="BaseResultMap" type="com.yami.shop.bean.model.ScoreLog">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="type" jdbcType="TINYINT" property="type" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="sn" jdbcType="VARCHAR" property="sn" />
|
||||
<result column="score_type" jdbcType="TINYINT" property="scoreType" />
|
||||
</resultMap>
|
||||
</mapper>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?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.yami.shop.dao.SensWordMapper">
|
||||
<resultMap id="BaseResultMap" type="com.yami.shop.bean.model.SensWord">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="sens_id" jdbcType="BIGINT" property="sensId" />
|
||||
<result column="words" jdbcType="VARCHAR" property="words" />
|
||||
</resultMap>
|
||||
</mapper>
|
||||
@@ -1,22 +0,0 @@
|
||||
<?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.yami.shop.dao.WxOrderMapper">
|
||||
<resultMap id="BaseResultMap" type="com.yami.shop.bean.model.WxOrder">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="sn" jdbcType="VARCHAR" property="sn" />
|
||||
<result column="wx_sn" jdbcType="VARCHAR" property="wxSn" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="status" jdbcType="TINYINT" property="status" />
|
||||
<result column="amount" jdbcType="DOUBLE" property="amount" />
|
||||
<result column="order_type" jdbcType="TINYINT" property="orderType" />
|
||||
<result column="extend_info" jdbcType="VARCHAR" property="extendInfo" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<update id="updateStatusByFlowTradeNo">
|
||||
update tz_wx_order set status = 1 where sn = #{outTradeNo}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user