新增订单模块
This commit is contained in:
@@ -13,7 +13,7 @@ spring:
|
||||
# 数据库对应的用户名
|
||||
username: root
|
||||
# 数据库对应的密码
|
||||
password: root
|
||||
password: Spinfo0123
|
||||
druid:
|
||||
enable: true
|
||||
db-type: mysql
|
||||
|
||||
@@ -13,24 +13,4 @@ mybatis-plus:
|
||||
logic-delete-value: 1
|
||||
logic-not-delete-value: 0
|
||||
# xml文件路径,classpath* 代表所有模块的resources目录 classpath 不加星号代表当前模块下的resources目录
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
|
||||
wx:
|
||||
# 公众号配置
|
||||
mp:
|
||||
configs:
|
||||
- appId: xxxxxxxx
|
||||
secret: xxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
token: xxxxxxxxxx
|
||||
aesKey: xxxxxxxxxxxxxxxxxxxx
|
||||
# 小程序配置
|
||||
ma:
|
||||
configs:
|
||||
- appId: xxxxxxxxxxxxxxxx
|
||||
secret: xxxxxxxxxxxxx
|
||||
# 微信支付商户号,请去微信支付平台申请
|
||||
mchId: 1588227511
|
||||
# 微信支付商户APIv2密钥,请去微信支付平台申请
|
||||
mchKey: xxxxxxxxxxxxxxxxxxxxx
|
||||
# p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
|
||||
keyPath: classpath:apiclient_cert.p12
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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.starry.admin.modules.commodity.mapper.CommodityInfoMapper">
|
||||
</mapper>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?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.starry.admin.modules.coupon.mapper.CouponInfoMapper">
|
||||
</mapper>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?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.starry.admin.modules.order.mapper.OrderDetailsInfoMapper">
|
||||
|
||||
<resultMap type="com.starry.admin.modules.order.module.entity.OrderDetailsInfoEntity" id="OrderDetailsInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="commodityId" column="commodity_id"/>
|
||||
<result property="commodityType" column="commodity_type"/>
|
||||
<result property="commodityMoney" column="commodity_money"/>
|
||||
<result property="remake" column="remake"/>
|
||||
<result property="updatedBy" column="updated_by"/>
|
||||
<result property="createdTime" column="created_time"/>
|
||||
<result property="createdBy" column="created_by"/>
|
||||
<result property="deleted" column="deleted"/>
|
||||
<result property="version" column="version"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOrderDetailsInfoVo">
|
||||
select id, order_id, commodity_id, commodity_type, commodity_money, remake, updated_by, created_time, created_by, deleted, version
|
||||
from order_details_info
|
||||
</sql>
|
||||
|
||||
<select id="selectOrderDetailsInfoList" resultMap="OrderDetailsInfoResult">
|
||||
<include refid="selectOrderDetailsInfoVo"/>
|
||||
<where>
|
||||
deleted = 0
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOrderDetailsInfoById" parameterType="String"
|
||||
resultMap="OrderDetailsInfoResult">
|
||||
<include refid="selectOrderDetailsInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?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.starry.admin.modules.order.mapper.OrderInfoMapper">
|
||||
<resultMap type="com.starry.admin.modules.order.module.entity.OrderInfoEntity" id="OrderInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="tenantId" column="tenant_id"/>
|
||||
<result property="orderStatus" column="order_status"/>
|
||||
<result property="orderType" column="order_type"/>
|
||||
<result property="placeType" column="place_type"/>
|
||||
<result property="firstOrder" column="first_order"/>
|
||||
<result property="refundType" column="refund_type"/>
|
||||
<result property="orderMoney" column="order_money"/>
|
||||
<result property="purchaserBy" column="purchaser_by"/>
|
||||
<result property="purchaserTime" column="purchaser_time"/>
|
||||
<result property="reviewedBy" column="reviewed_by"/>
|
||||
<result property="reviewedTime" column="reviewed_time"/>
|
||||
<result property="reviewedRemark" column="reviewed_remark"/>
|
||||
<result property="updatedTime" column="updated_time"/>
|
||||
<result property="updatedBy" column="updated_by"/>
|
||||
<result property="createdTime" column="created_time"/>
|
||||
<result property="createdBy" column="created_by"/>
|
||||
<result property="deleted" column="deleted"/>
|
||||
<result property="version" column="version"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOrderInfoVo">
|
||||
select id,
|
||||
tenant_id,
|
||||
order_status,
|
||||
order_type,
|
||||
place_type,
|
||||
first_order,
|
||||
refund_type,
|
||||
order_money,
|
||||
purchaser_by,
|
||||
purchaser_time,
|
||||
reviewed_by,
|
||||
reviewed_time,
|
||||
reviewed_remark,
|
||||
updated_time,
|
||||
updated_by,
|
||||
created_time,
|
||||
created_by,
|
||||
deleted,
|
||||
version
|
||||
from order_info
|
||||
</sql>
|
||||
|
||||
<select id="selectOrderInfoList" resultMap="OrderInfoResult">
|
||||
<include refid="selectOrderInfoVo"/>
|
||||
<where>
|
||||
deleted = 0
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOrderInfoById" parameterType="String"
|
||||
resultMap="OrderInfoResult">
|
||||
<include refid="selectOrderInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
35
play-admin/src/main/resources/mapper/weichat/WxMsgMapper.xml
Normal file
35
play-admin/src/main/resources/mapper/weichat/WxMsgMapper.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2018-2019
|
||||
~ All rights reserved, Designed By admin
|
||||
-->
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.starry.weichat.mapper.WxMsgMapper">
|
||||
<select id="listWxMsgMapGroup" resultType="com.baomidou.mybatisplus.core.metadata.IPage">
|
||||
select a.*,
|
||||
b.count_msg
|
||||
from
|
||||
wx_msg as a
|
||||
right join
|
||||
(select `wx_user_id`,
|
||||
max(`create_time`) as maxtime,
|
||||
count(`wx_user_id`) as count_msg
|
||||
from wx_msg
|
||||
<where>
|
||||
<if test="query.type != null and query.type != ''">
|
||||
AND `type` = #{query.type}
|
||||
</if>
|
||||
<if test="query.readFlag != null and query.readFlag != ''">
|
||||
AND `read_flag` = #{query.readFlag}
|
||||
</if>
|
||||
<if test="query.notInRepType != null and query.notInRepType != ''">
|
||||
AND `rep_type` NOT IN (#{query.notInRepType})
|
||||
</if>
|
||||
</where>
|
||||
group by `wx_user_id`) as b
|
||||
on a.`wx_user_id` = b.`wx_user_id`
|
||||
and a.`create_time` = b.maxtime
|
||||
order by a.`create_time` desc ;
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user