|
@@ -20,6 +20,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="goodsType" column="goods_type"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+
|
|
|
+ <resultMap type="com.zhongzheng.modules.order.vo.OrderHandleGoodsVo" id="OrderHandleGoodsVoResult">
|
|
|
+ <result property="realname" column="realname"/>
|
|
|
+ <result property="telPhone" column="telphone" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
|
|
|
+ <result property="idCard" column="id_card" typeHandler="com.zhongzheng.common.type.EncryptHandler"/>
|
|
|
+ <result property="goodsName" column="goods_name"/>
|
|
|
+ <result property="year" column="year"/>
|
|
|
+ <result property="goodsRealPrice" column="goods_real_price"/>
|
|
|
+ <result property="orderGoodsId" column="order_goods_id"/>
|
|
|
+ <result property="userId" column="user_id"/>
|
|
|
+ <result property="gradeId" column="grade_id"/>
|
|
|
+ <result property="goodsId" column="goods_id"/>
|
|
|
+ <result property="subjectNames" column="subject_names"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.order.bo.OrderHandleQueryBo" resultType="com.zhongzheng.modules.order.vo.OrderHandleVo">
|
|
|
SELECT u.*,
|
|
|
(select count( DISTINCT o.user_id ) from `order` o where u.handle_order_sn = o.handle_order_sn) user_num,
|
|
@@ -91,7 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ORDER BY u.create_time DESC
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectOrderGoodsList" parameterType="com.zhongzheng.modules.order.bo.OrderHandleQueryBo" resultType="com.zhongzheng.modules.order.vo.OrderHandleGoodsVo">
|
|
|
+ <select id="selectOrderGoodsList" parameterType="com.zhongzheng.modules.order.bo.OrderHandleQueryBo" resultMap="OrderHandleGoodsVoResult">
|
|
|
SELECT
|
|
|
u.realname,
|
|
|
u.id_card,
|