Browse Source

前端返回值更新

Bob 1 year ago
parent
commit
d4ba149328

+ 2 - 0
pdf-tech-core/src/main/java/cn/kdan/pdf/tech/core/pojo/vo/SubscriptionVO.java

@@ -15,6 +15,8 @@ public class SubscriptionVO {
 
     private BigDecimal price;
 
+    private Integer payment;
+
     private Date createdAt;
 
     private Date expirationAt;

+ 3 - 2
pdf-tech-core/src/main/resources/sqlmap/ext/ExtSubscriptionMapper.xml

@@ -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 != ''">