浏览代码

sz 流水信息表添加字段

xiao547607 5 年之前
父节点
当前提交
b2d6baaeca

+ 121 - 0
src/main/java/com/jpsoft/epay/modules/base/entity/RechargeRecord.java

@@ -20,8 +20,16 @@ public class RechargeRecord {
 	private BigDecimal buyAmount;
 	private BigDecimal buyAmount;
 	private Integer buyElectricity;
 	private Integer buyElectricity;
 	private String buyType;
 	private String buyType;
+	private String roomId;
 	private String clientId;
 	private String clientId;
 	private String customerNo;
 	private String customerNo;
+	private String transactionNumber;
+	private String productTheme;
+	private String paymentStatus;
+	private String chargingStatus;
+	private String paymentTime;
+	private String openId;
+	private String errorLog;
 	
 	
 		/**
 		/**
 	 *获取
 	 *获取
@@ -184,4 +192,117 @@ public class RechargeRecord {
 	public void setCustomerNo(String customerNo){
 	public void setCustomerNo(String customerNo){
 		this.customerNo = customerNo;
 		this.customerNo = customerNo;
 	}
 	}
+
+	/**
+	 *获取
+	 */
+	public String getRoomId(){
+		return roomId;
+	}
+
+	/**
+	 *设置
+	 */
+	public void setRoomId(String roomId){
+		this.roomId = roomId;
+	}
+
+
+	/**
+	 *获取交易号
+	 */
+	public String getTransactionNumber(){
+		return transactionNumber;
+	}
+
+	/**
+	 *设置交易号
+	 */
+	public void setTransactionNumber(String transactionNumber){
+		this.transactionNumber = transactionNumber;
+	}
+
+	/**
+	 *获取商品主题
+	 */
+	public String getProductTheme(){
+		return productTheme;
+	}
+
+	/**
+	 *设置商品主题
+	 */
+	public void setProductTheme(String productTheme){
+		this.productTheme = productTheme;
+	}
+
+	/**
+	 *获取支付状态
+	 */
+	public String getPaymentStatus(){
+		return paymentStatus;
+	}
+
+	/**
+	 *设置支付状态
+	 */
+	public void setPaymentStatus(String paymentStatus){
+		this.paymentStatus = paymentStatus;
+	}
+
+	/**
+	 *获取充电状态
+	 */
+	public String getChargingStatus(){
+		return chargingStatus;
+	}
+
+	/**
+	 *设置充电状态
+	 */
+	public void setChargingStatus(String chargingStatus){
+		this.chargingStatus = chargingStatus;
+	}
+
+	/**
+	 *获取支付时间
+	 */
+	public String getPaymentTime(){
+		return paymentTime;
+	}
+
+	/**
+	 *设置支付时间
+	 */
+	public void setPaymentTime(String paymentTime){
+		this.paymentTime = paymentTime;
+	}
+
+	/**
+	 *获取
+	 */
+	public String getOpenId(){
+		return openId;
+	}
+
+	/**
+	 *设置
+	 */
+	public void setOpenId(String openId){
+		this.openId = openId;
+	}
+
+	/**
+	 *获取错误日志
+	 */
+	public String getErrorLog(){
+		return errorLog;
+	}
+
+	/**
+	 *设置错误日志
+	 */
+	public void setErrorLog(String errorLog){
+		this.errorLog = errorLog;
+	}
 }
 }

+ 44 - 2
src/main/resources/mapper/base/RechargeRecord.xml

@@ -16,7 +16,14 @@
 			<result property="buyType" column="buy_type" />
 			<result property="buyType" column="buy_type" />
 			<result property="clientId" column="client_id" />
 			<result property="clientId" column="client_id" />
 			<result property="customerNo" column="customer_no" />
 			<result property="customerNo" column="customer_no" />
-
+			<result property="roomId" column="room_id" />
+			<result property="transactionNumber" column="transaction_number" />
+			<result property="productTheme" column="product_theme" />
+			<result property="paymentStatus" column="payment_status" />
+			<result property="chargingStatus" column="charging_status" />
+			<result property="paymentTime" column="payment_time" />
+			<result property="openId" column="open_id" />
+			<result property="errorLog" column="error_log" />
 			</resultMap>
 			</resultMap>
 	<insert id="insert" parameterType="RechargeRecord">
 	<insert id="insert" parameterType="RechargeRecord">
 	<!--
 	<!--
@@ -26,7 +33,9 @@
 	-->
 	-->
 	<![CDATA[
 	<![CDATA[
 		insert into base_recharge_record
 		insert into base_recharge_record
-	    (id_,create_by,create_time,update_by,update_time,del_flag,serial_number,buy_amount,buy_electricity,buy_type,client_id,customer_no)
+	    (id_,create_by,create_time,update_by,update_time,del_flag,serial_number,buy_amount,buy_electricity,buy_type,client_id,customer_no,
+	    room_id,transaction_number,product_theme,payment_status,charging_status,payment_time,open_id,error_log
+	    )
 		values
 		values
 		(
 		(
 #{id,jdbcType=VARCHAR}
 #{id,jdbcType=VARCHAR}
@@ -41,6 +50,14 @@
 ,#{buyType,jdbcType=VARCHAR}
 ,#{buyType,jdbcType=VARCHAR}
 ,#{clientId,jdbcType=VARCHAR}
 ,#{clientId,jdbcType=VARCHAR}
 ,#{customerNo,jdbcType=VARCHAR}
 ,#{customerNo,jdbcType=VARCHAR}
+,#{roomId,jdbcType=VARCHAR}
+,#{transactionNumber,jdbcType=VARCHAR}
+,#{productTheme,jdbcType=VARCHAR}
+,#{paymentStatus,jdbcType=VARCHAR}
+,#{chargingStatus,jdbcType=VARCHAR}
+,#{paymentTime,jdbcType=TIMESTAMP}
+,#{openId,jdbcType=VARCHAR}
+,#{errorLog,jdbcType=VARCHAR}
 		)
 		)
 	]]>
 	]]>
 	</insert>
 	</insert>
@@ -83,6 +100,31 @@
 			<if test="customerNo!=null">
 			<if test="customerNo!=null">
 				customer_no=#{customerNo,jdbcType=VARCHAR},
 				customer_no=#{customerNo,jdbcType=VARCHAR},
 			</if>
 			</if>
+
+			<if test="roomId!=null">
+				room_id=#{roomId,jdbcType=VARCHAR},
+			</if>
+			<if test="transactionNumber!=null">
+				transaction_number=#{transactionNumber,jdbcType=VARCHAR},
+			</if>
+			<if test="productTheme!=null">
+				product_theme=#{productTheme,jdbcType=VARCHAR},
+			</if>
+			<if test="paymentStatus!=null">
+				payment_status=#{paymentStatus,jdbcType=VARCHAR},
+			</if>
+			<if test="chargingStatus!=null">
+				charging_status=#{chargingStatus,jdbcType=VARCHAR},
+			</if>
+			<if test="paymentTime!=null">
+				payment_time=#{paymentTime,jdbcType=VARCHAR},
+			</if>
+			<if test="openId!=null">
+				open_id=#{openId,jdbcType=VARCHAR},
+			</if>
+			<if test="errorLog!=null">
+				error_log=#{errorLog,jdbcType=VARCHAR},
+			</if>
 		</set>
 		</set>
 	where id_=#{id}
 	where id_=#{id}
 	</update>
 	</update>