Browse Source

[商场][修改]:添加service_phone字段

release_toaliyun_real
gongbiao 7 years ago
parent
commit
1ef3dda45e
2 changed files with 21 additions and 7 deletions
  1. +13
    -5
      mallinkService/src/main/java/com/simple/domain/po/WxMall.java
  2. +8
    -2
      mallinkService/src/main/resources/mapper/WxMallMapper.xml

+ 13
- 5
mallinkService/src/main/java/com/simple/domain/po/WxMall.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.math.BigDecimal;
import java.util.List;

@Table(name = "wx_mall")
public class WxMall implements Serializable {
@@ -81,6 +80,9 @@ public class WxMall implements Serializable {
/*支付ID,参看wx_pay_account**/
@io.swagger.annotations.ApiModelProperty(value="支付ID,参看wx_pay_account",name="payId")
private Long payId;
@io.swagger.annotations.ApiModelProperty(value="电话",name="servicePhone")
private String servicePhone;

public String getTenantId() {
return tenantId;
}
@@ -160,7 +162,13 @@ public class WxMall implements Serializable {
payId = _payId;
}

public String getServicePhone() {
return servicePhone;
}

public void setServicePhone(String servicePhone) {
this.servicePhone = servicePhone;
}

public static enum Field
{


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

@@ -16,10 +16,12 @@
<result column="park_area" jdbcType="DECIMAL" property="parkArea" />
<result column="park_place_number" jdbcType="INTEGER" property="parkPlaceNumber" />
<result column="pay_id" jdbcType="BIGINT" property="payId" />
<result column="service_phone" jdbcType="VARCHAR" property="servicePhone" />

</resultMap>
<sql id="allColumns">
`id`,`tenant_id`,`name`,`group`,`country`,`province`,`city`,`addr`,`wiwide_id`,`total_area`,`operating_area`,`park_area`,`park_place_number`,`pay_id`
`id`,`tenant_id`,`name`,`group`,`country`,`province`,`city`,`addr`,`wiwide_id`,`total_area`,`operating_area`,`park_area`,`park_place_number`,`pay_id`,`service_phone`
</sql>

<sql id="dynamicWhereConditions">
@@ -93,7 +95,11 @@
<if test=" null != payId ">
and `pay_id` = #{payId}
</if>
</if>
<if test=" null != servicePhone ">
and `service_phone` = #{servicePhone}

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


Loading…
Cancel
Save