|
@@ -6,14 +6,15 @@
|
|
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
<result column="price" jdbcType="NUMERIC" property="price" />
|
|
|
+ <result column="payment" jdbcType="INTEGER" property="payment" />
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
|
<result column="expiration_at" jdbcType="TIMESTAMP" property="expirationAt" />
|
|
|
<result column="quantity" jdbcType="INTEGER" property="quantity" />
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="listByCompany" resultMap="BaseResultMap">
|
|
|
- select vod.id,p.code,p.name,vod.price,vod.created_at,vod.max_device_amount quantity,vod.end_date expiration_at from
|
|
|
- subscriptions vod
|
|
|
+ select vod.id, p.code, p.name, vod.price, vod.payment, vod.created_at, vod.max_device_amount quantity, vod.end_date expiration_at
|
|
|
+ from subscriptions vod
|
|
|
left join products p on p.id = vod.product_id
|
|
|
where vod.company_id = #{companyId} and p.code != 'com.brother.pdfreaderpro.combination.product'
|
|
|
<if test="code != null and code != ''">
|