|
|
@ -14,6 +14,7 @@
|
|
|
|
<result property="cover" column="cover"/>
|
|
|
|
<result property="cover" column="cover"/>
|
|
|
|
<result property="userName" column="user_name"/>
|
|
|
|
<result property="userName" column="user_name"/>
|
|
|
|
<result property="phonenumber" column="phonenumber"/>
|
|
|
|
<result property="phonenumber" column="phonenumber"/>
|
|
|
|
|
|
|
|
<result property="integral" column="integral"/>
|
|
|
|
<result property="consigneeName" column="consignee_name"/>
|
|
|
|
<result property="consigneeName" column="consignee_name"/>
|
|
|
|
<result property="address" column="address"/>
|
|
|
|
<result property="address" column="address"/>
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
<result property="status" column="status"/>
|
|
|
@ -64,6 +65,7 @@
|
|
|
|
bdr.certificate_id,
|
|
|
|
bdr.certificate_id,
|
|
|
|
bc.name as certificate_name,
|
|
|
|
bc.name as certificate_name,
|
|
|
|
bc.cover as cover,
|
|
|
|
bc.cover as cover,
|
|
|
|
|
|
|
|
bc.integral,
|
|
|
|
bdr.u_id,
|
|
|
|
bdr.u_id,
|
|
|
|
bdr.consignee_name as user_name,
|
|
|
|
bdr.consignee_name as user_name,
|
|
|
|
bdr.phonenumber,
|
|
|
|
bdr.phonenumber,
|
|
|
@ -129,12 +131,13 @@
|
|
|
|
<select id="selectBDistributionRecordsById" parameterType="Long" resultMap="BDistributionRecordsResult">
|
|
|
|
<select id="selectBDistributionRecordsById" parameterType="Long" resultMap="BDistributionRecordsResult">
|
|
|
|
select bdr.id,
|
|
|
|
select bdr.id,
|
|
|
|
bdr.activity_id,
|
|
|
|
bdr.activity_id,
|
|
|
|
(select name from b_activity_points where id = bdr.activity_id) as activity_name,
|
|
|
|
(select name from b_activity_points where id = bdr.activity_id) as activity_name,
|
|
|
|
bdr.certificate_id,
|
|
|
|
bdr.certificate_id,
|
|
|
|
(select name from b_certificates where id = bdr.certificate_id) as certificate_name,
|
|
|
|
(select name from b_certificates where id = bdr.certificate_id) as certificate_name,
|
|
|
|
(select cover from b_certificates where id = bdr.certificate_id) as cover,
|
|
|
|
(select cover from b_certificates where id = bdr.certificate_id) as cover,
|
|
|
|
bdr.u_id,
|
|
|
|
bdr.u_id,
|
|
|
|
bdr.consignee_name as user_name,
|
|
|
|
bdr.consignee_name as user_name,
|
|
|
|
|
|
|
|
(select bc.integral from b_certificates bc where bc.id = bdr.certificate_id) as integral,
|
|
|
|
bdr.phonenumber,
|
|
|
|
bdr.phonenumber,
|
|
|
|
bdr.type,
|
|
|
|
bdr.type,
|
|
|
|
bdr.cre_type,
|
|
|
|
bdr.cre_type,
|
|
|
|