yonge 5 år sedan
förälder
incheckning
f31df3a4a2

+ 11 - 10
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/TenantPaymentOrder.java

@@ -1,9 +1,10 @@
 package com.ym.mec.biz.dal.entity;
 package com.ym.mec.biz.dal.entity;
 
 
-import com.ym.mec.biz.dal.enums.PaymentChannelEnum;
 import org.apache.commons.lang3.builder.ToStringBuilder;
 import org.apache.commons.lang3.builder.ToStringBuilder;
 
 
+import com.ym.mec.auth.api.entity.SysUser;
 import com.ym.mec.biz.dal.enums.DealStatusEnum;
 import com.ym.mec.biz.dal.enums.DealStatusEnum;
+import com.ym.mec.biz.dal.enums.PaymentChannelEnum;
 import com.ym.mec.common.enums.BaseEnum;
 import com.ym.mec.common.enums.BaseEnum;
 
 
 /**
 /**
@@ -41,7 +42,7 @@ public class TenantPaymentOrder {
 	/**  */
 	/**  */
 	private Integer userId;
 	private Integer userId;
 	/**  */
 	/**  */
-	private String username;
+	private SysUser user = new SysUser();
 
 
 	/** 分部id */
 	/** 分部id */
 	private Integer organId;
 	private Integer organId;
@@ -105,14 +106,6 @@ public class TenantPaymentOrder {
 	/**  */
 	/**  */
 	private java.util.Date updateTime;
 	private java.util.Date updateTime;
 
 
-	public String getUsername() {
-		return username;
-	}
-
-	public void setUsername(String username) {
-		this.username = username;
-	}
-
 	public void setId(Long id) {
 	public void setId(Long id) {
 		this.id = id;
 		this.id = id;
 	}
 	}
@@ -121,6 +114,14 @@ public class TenantPaymentOrder {
 		return this.id;
 		return this.id;
 	}
 	}
 
 
+	public SysUser getUser() {
+		return user;
+	}
+
+	public void setUser(SysUser user) {
+		this.user = user;
+	}
+
 	public Integer getActivitiesId() {
 	public Integer getActivitiesId() {
 		return activitiesId;
 		return activitiesId;
 	}
 	}

+ 11 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/TenantPaymentOrderQueryInfo.java

@@ -19,6 +19,9 @@ public class TenantPaymentOrderQueryInfo extends QueryInfo {
 
 
 	@ApiModelProperty(value = "老师编号", required = false)
 	@ApiModelProperty(value = "老师编号", required = false)
 	private Integer userId;
 	private Integer userId;
+	
+	@ApiModelProperty(value = "老师电话号码", required = false)
+	private String phone;
 
 
 	@ApiModelProperty(value = "交易状态", required = false)
 	@ApiModelProperty(value = "交易状态", required = false)
 	private DealStatusEnum status;
 	private DealStatusEnum status;
@@ -61,6 +64,14 @@ public class TenantPaymentOrderQueryInfo extends QueryInfo {
 		this.userId = userId;
 		this.userId = userId;
 	}
 	}
 
 
+	public String getPhone() {
+		return phone;
+	}
+
+	public void setPhone(String phone) {
+		this.phone = phone;
+	}
+
 	public DealStatusEnum getStatus() {
 	public DealStatusEnum getStatus() {
 		return status;
 		return status;
 	}
 	}

+ 7 - 2
mec-biz/src/main/resources/config/mybatis/TenantPaymentOrderMapper.xml

@@ -8,7 +8,8 @@
 		<result column="id_" property="id" />
 		<result column="id_" property="id" />
 		<result column="activities_id_" property="activitiesId" />
 		<result column="activities_id_" property="activitiesId" />
 		<result column="user_id_" property="userId" />
 		<result column="user_id_" property="userId" />
-		<result column="real_name_" property="username" />
+		<result column="real_name_" property="user.username" />
+		<result column="phone_" property="user.phone" />
 		<result column="organ_id_" property="organId" />
 		<result column="organ_id_" property="organId" />
 		<result column="type_" property="type" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
 		<result column="type_" property="type" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
 		<result column="trans_minutes_" property="transMinutes" />
 		<result column="trans_minutes_" property="transMinutes" />
@@ -49,6 +50,9 @@
             <if test="userId != null">
             <if test="userId != null">
                 AND tpo.user_id_ = #{userId}
                 AND tpo.user_id_ = #{userId}
             </if>
             </if>
+            <if test="phone != null">
+                AND su.phone_ = #{phone}
+            </if>
             <if test="paymentChannel != null">
             <if test="paymentChannel != null">
                 AND tpo.payment_channel_ NOT IN (#{paymentChannel})
                 AND tpo.payment_channel_ NOT IN (#{paymentChannel})
             </if>
             </if>
@@ -166,7 +170,7 @@
 	<!-- 分页查询 -->
 	<!-- 分页查询 -->
 	<select id="queryPage" resultMap="TenantPaymentOrder"
 	<select id="queryPage" resultMap="TenantPaymentOrder"
 		parameterType="map">
 		parameterType="map">
-		SELECT tpo.*,su.real_name_ FROM tenant_payment_order tpo
+		SELECT tpo.*,su.real_name_,su.phone_ FROM tenant_payment_order tpo
 		LEFT JOIN sys_user su ON su.id_ = tpo.user_id_
 		LEFT JOIN sys_user su ON su.id_ = tpo.user_id_
         <include refid="queryPaymentOrder"/>
         <include refid="queryPaymentOrder"/>
 		ORDER BY tpo.id_
 		ORDER BY tpo.id_
@@ -176,6 +180,7 @@
 	<!-- 查询当前表的总记录数 -->
 	<!-- 查询当前表的总记录数 -->
 	<select id="queryCount" resultType="int">
 	<select id="queryCount" resultType="int">
 		SELECT COUNT(tpo.id_) FROM tenant_payment_order tpo
 		SELECT COUNT(tpo.id_) FROM tenant_payment_order tpo
+		LEFT JOIN sys_user su ON su.id_ = tpo.user_id_
         <include refid="queryPaymentOrder"/>
         <include refid="queryPaymentOrder"/>
 	</select>
 	</select>