Просмотр исходного кода

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

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
af4db570d7
2 измененных файлов: 23 добавлений и 7 удалений
  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 Просмотреть файл

@@ -1,12 +1,11 @@
package com.simple.domain.po; 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.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.List;


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

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


public Integer getType() {
return type;
}


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


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

; ;
private String value; private String value;
Field(String value){ Field(String value){


+ 8
- 2
mallinkService/src/main/resources/mapper/WxAppinfoMapper.xml Просмотреть файл

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

</resultMap> </resultMap>
<sql id="allColumns"> <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>


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

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


Загрузка…
Отмена
Сохранить