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