Browse Source

[app配置][修改]:添加 type 字段 1 b端 2 c端

release_toaliyun_real
gongbiao 7 years ago
parent
commit
af4db570d7
2 changed files with 23 additions and 7 deletions
  1. +15
    -5
      mallinkService/src/main/java/com/simple/domain/po/WxAppinfo.java
  2. +8
    -2
      mallinkService/src/main/resources/mapper/WxAppinfoMapper.xml

+ 15
- 5
mallinkService/src/main/java/com/simple/domain/po/WxAppinfo.java View File

@@ -1,12 +1,11 @@
package com.simple.domain.po;

import javax.persistence.*;
import java.util.*;
import java.math.*;
import javax.persistence.Transient;
import java.util.List;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Table(name = "wx_appinfo")
public class WxAppinfo implements Serializable {
@@ -78,6 +77,9 @@ public class WxAppinfo implements Serializable {
public String getTenantId() {
return tenantId;
}
@io.swagger.annotations.ApiModelProperty(value="1B端2C端",name="type")
private Integer type;

public void setTenantId(String _tenantId) {
tenantId = _tenantId;
}
@@ -142,7 +144,13 @@ public class WxAppinfo implements Serializable {
payId = _payId;
}

public Integer getType() {
return type;
}

public void setType(Integer type) {
this.type = type;
}

public static enum Field
{
@@ -158,6 +166,8 @@ public class WxAppinfo implements Serializable {
,LastTokenTime_ASC("`lastTokenTime` ASC"),LastTokenTime_DESC("`lastTokenTime` DESC")
,ExpiresIn_ASC("`expiresIn` ASC"),ExpiresIn_DESC("`expiresIn` DESC")
,PayId_ASC("`payId` ASC"),PayId_DESC("`payId` DESC")
,Type_ASC("`type` ASC"),Type_DESC("`type` DESC")

;
private String value;
Field(String value){


+ 8
- 2
mallinkService/src/main/resources/mapper/WxAppinfoMapper.xml View File

@@ -14,10 +14,12 @@
<result column="last_token_time" jdbcType="TIMESTAMP" property="lastTokenTime" />
<result column="expires_in" jdbcType="INTEGER" property="expiresIn" />
<result column="pay_id" jdbcType="BIGINT" property="payId" />
<result column="type" jdbcType="INTEGER" property="type" />

</resultMap>
<sql id="allColumns">
`id`,`tenant_id`,`app_id`,`name`,`secret`,`token`,`aes_key`,`msg_data_format`,`access_token`,`last_token_time`,`expires_in`,`pay_id`
`id`,`tenant_id`,`app_id`,`name`,`secret`,`token`,`aes_key`,`msg_data_format`,`access_token`,`last_token_time`,`expires_in`,`pay_id`,`type`
</sql>

<sql id="dynamicWhereConditions">
@@ -81,7 +83,11 @@
<if test=" null != payId ">
and `pay_id` = #{payId}
</if>
</if>
<if test=" null != type ">
and `type` = #{type}

</if>
<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">


Loading…
Cancel
Save