|
@@ -6,6 +6,7 @@
|
|
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
<result column="price" jdbcType="NUMERIC" property="price" />
|
|
|
+ <result column="cny_price" jdbcType="NUMERIC" property="cnyPrice" />
|
|
|
<result column="payment" jdbcType="INTEGER" property="payment" />
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
|
<result column="expiration_at" jdbcType="TIMESTAMP" property="expirationAt" />
|
|
@@ -13,7 +14,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="listByCompany" resultMap="BaseResultMap">
|
|
|
- select vod.id, p.code, p.name, vod.price, vod.payment, vod.created_at, vod.max_device_amount quantity, vod.end_date expiration_at, o.detail_type detailType
|
|
|
+ select vod.id, p.code, p.name, vod.price, vod.cny_price, vod.payment, vod.created_at, vod.max_device_amount quantity, vod.end_date expiration_at, o.detail_type detailType
|
|
|
from subscriptions vod
|
|
|
left join products p on p.id = vod.product_id
|
|
|
left join orders o on o.subscription_id = vod.id and o.status = '2'
|