Prechádzať zdrojové kódy

fix 新增商品信息,对接微信支付,除回调接口

Administrator 1 rok pred
rodič
commit
14f678d481

+ 6 - 6
ruoyi-system/src/main/java/com/ruoyi/system/domain/DoumuProductInfo.java

@@ -22,7 +22,7 @@ public class DoumuProductInfo extends BaseEntity
     private Long productId;
 
     /** 微信标识 */
-    private String openid;
+    private String openId;
 
     /** 订单号 */
     @Excel(name = "订单号")
@@ -310,12 +310,12 @@ public class DoumuProductInfo extends BaseEntity
         this.quantity = quantity;
     }
 
-    public String getOpenid() {
-        return openid;
+    public String getOpenId() {
+        return openId;
     }
 
-    public void setOpenid(String openid) {
-        this.openid = openid;
+    public void setOpenId(String openId) {
+        this.openId = openId;
     }
 
     public String getGoodsName() {
@@ -355,7 +355,7 @@ public class DoumuProductInfo extends BaseEntity
     public String toString() {
         return "DoumuProductInfo{" +
                 "productId=" + productId +
-                ", openid='" + openid + '\'' +
+                ", openId='" + openId + '\'' +
                 ", orderNumber='" + orderNumber + '\'' +
                 ", name='" + name + '\'' +
                 ", deliveryType='" + deliveryType + '\'' +

+ 5 - 5
ruoyi-system/src/main/resources/mapper/system/DoumuProductInfoMapper.xml

@@ -6,7 +6,7 @@
 
     <resultMap type="DoumuProductInfo" id="DoumuProductInfoResult">
         <result property="productId"    column="product_id"    />
-        <result property="openid"    column="openid"    />
+        <result property="openId"    column="open_id"    />
         <result property="orderNumber"    column="order_number"    />
         <result property="name"    column="name"    />
         <result property="deliveryType"    column="delivery_type"    />
@@ -40,7 +40,7 @@
     </resultMap>
 
     <sql id="selectDoumuProductInfoVo">
-        select product_id,openid,order_number, name, delivery_type, phonenumber,contact_number,quantity,province_id,province,city_id,city,county_id,county,lon,lat,status, address,
+        select product_id,open_id,order_number, name, delivery_type, phonenumber,contact_number,quantity,province_id,province,city_id,city,county_id,county,lon,lat,status, address,
                flow_type,goods_name,total_price, mail_no,hardware_num,closed_time, create_by, create_time, update_by, update_time, remark from doumu_product_info
     </sql>
 
@@ -81,7 +81,7 @@
     <insert id="insertDoumuProductInfo" parameterType="DoumuProductInfo" useGeneratedKeys="true" keyProperty="productId">
         insert into doumu_product_info
         <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="openid != null "> openid,</if>
+            <if test="openId != null "> open_id,</if>
             <if test="orderNumber != null "> order_number,</if>
             <if test="name != null and name != ''">name,</if>
             <if test="deliveryType != null">delivery_type,</if>
@@ -111,7 +111,7 @@
             <if test="remark != null">remark,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="openid != null "> #{openid},</if>
+            <if test="openId != null "> #{openId},</if>
             <if test="orderNumber != null ">#{orderNumber},</if>
             <if test="name != null and name != ''">#{name},</if>
             <if test="deliveryType != null">#{deliveryType},</if>
@@ -145,7 +145,7 @@
     <update id="updateDoumuProductInfo" parameterType="DoumuProductInfo">
         update doumu_product_info
         <trim prefix="SET" suffixOverrides=",">
-            <if test="openid != null "> openid = #{openid},</if>
+            <if test="openId != null "> open_id = #{openId},</if>
             <if test="orderNumber != null  and orderNumber != ''"> order_number = #{orderNumber},</if>
             <if test="name != null and name != ''">name = #{name},</if>
             <if test="deliveryType != null">delivery_type = #{deliveryType},</if>