update 查询申请开票详情新增 会员手机号码

This commit is contained in:
Lemon
2023-11-01 16:41:59 +08:00
parent 53415d34dd
commit b905a6c0f1
6 changed files with 44 additions and 16 deletions

View File

@@ -49,10 +49,7 @@
order by create_time desc
</select>
<select id="selectOrderInvoiceRecordById" parameterType="Integer" resultMap="OrderInvoiceRecordResult">
<include refid="selectOrderInvoiceRecordVo"/>
where id = #{id}
</select>
<insert id="insertOrderInvoiceRecord" parameterType="com.jsowell.pile.domain.OrderInvoiceRecord" useGeneratedKeys="true" keyProperty="id">
insert into order_invoice_record
@@ -199,4 +196,24 @@
</if>
</where>
</select>
<select id="selectOrderInvoiceRecordById" resultType="com.jsowell.pile.vo.web.OrderInvoiceRecordVO">
SELECT
t1.id,
t1.member_id as memberId,
t2.mobile_number AS phoneNumber,
t1.merchant_id AS merchantId,
t1.title_id AS titleId,
t1.order_codes AS orderCodes,
t1.STATUS,
t1.total_amount AS totalAmount,
t1.total_service_amount AS totalServiceAmount,
t1.total_elec_amount AS totalElecAmount,
t1.create_time AS createTime
FROM
order_invoice_record t1
JOIN member_basic_info t2 ON t1.member_id = t2.member_id
AND t1.del_flag = '0'
where t1.id = #{id,jdbcType=INTEGER}
</select>
</mapper>