Kaynağa Gözat

总账单添加微信端头部图片

fllmoyu 4 yıl önce
ebeveyn
işleme
141c1d4a04

+ 3 - 0
common/src/main/java/com/jpsoft/enterprise/modules/base/entity/BillInfo.java

@@ -60,5 +60,8 @@ public class BillInfo {
     @ApiModelProperty(value = "更新时间")
     private Date updateTime;
 
+    @ApiModelProperty(value = "微信展示头部图片")
+    private String picUrl;
+
 
 }

+ 7 - 2
common/src/main/resources/mapper/base/BillInfo.xml

@@ -14,6 +14,7 @@
         <result property="updateBy" column="update_by" />
         <result property="updateTime" column="update_time" />
         <result property="delFlag" column="del_flag" />
+        <result property="picUrl" column="pic_url"/>
     </resultMap>
     <insert id="insert" parameterType="com.jpsoft.enterprise.modules.base.entity.BillInfo">
         <!--
@@ -23,7 +24,7 @@
         -->
         <![CDATA[
 		insert into base_bill_info
-	    (id_,bill_name,bill_remark,wx_show,status_,create_by,create_time,update_by,update_time,del_flag)
+	    (id_,bill_name,bill_remark,wx_show,status_,create_by,create_time,update_by,update_time,del_flag,pic_url)
 		values
 		(
 #{id,jdbcType=VARCHAR}
@@ -36,6 +37,7 @@
 ,#{updateBy,jdbcType=VARCHAR}
 ,#{updateTime,jdbcType= TIMESTAMP }
 ,#{delFlag,jdbcType= NUMERIC }
+,#{picUrl,jdbcType=VARCHAR}
 		)
 	]]>
     </insert>
@@ -70,7 +72,10 @@
                 update_time=#{updateTime,jdbcType= TIMESTAMP },
             </if>
             <if test="delFlag!=null">
-                del_flag=#{delFlag,jdbcType= NUMERIC }
+                del_flag=#{delFlag,jdbcType= NUMERIC },
+            </if>
+            <if test="picUrl != null">
+                pic_url = #{picUrl,jdbcType=VARCHAR}
             </if>
         </set>
         where id_=#{id}

+ 3 - 3
web/src/main/java/com/jpsoft/enterprise/modules/pay/weixin/WxPayController.java

@@ -104,7 +104,7 @@ public class WxPayController {
                     .builder()
                     .appid(wxJpsoftConfig.getAppId())
                     .mch_id(wxJpsoftConfig.getMchId())
-                    .sub_mch_id(subMchId)
+                   // .sub_mch_id(subMchId)
                     //     .sub_appid(wxConfig.getAppId())
                     .nonce_str(WxPayKit.generateStr())
                     .body(orderInfo.getBody())
@@ -113,8 +113,8 @@ public class WxPayController {
                     .spbill_create_ip(wxJpsoftConfig.getIp())
                     .notify_url(wxJpsoftConfig.getNotifyUrl())
                     .trade_type(TradeType.JSAPI.getTradeType())
-                    .sub_openid(personInfo.getOpenId())
-                    //    .openid(orderInfo.getOpenId())
+                   // .sub_openid(personInfo.getOpenId())
+                    .openid(orderInfo.getOpenId())
                     .build()
                     .createSign(wxJpsoftConfig.getMchKey(), SignType.HMACSHA256);
 

+ 3 - 2
web/src/main/resources/application-production.yml

@@ -58,9 +58,10 @@ wx:
   jpsoft:
     appId: wx343bf93d2a3dc8af
     appSecret: ac61fa669a7a79c7d2a8188ff7ddaef6
-    mchId: 1509055881
+    #mchId: 1509055881
+    mchId: 1531793091
     subMchId: 1523544111
-    mchKey: xxd33333333333333333333333333333
+    mchKey: jpsoft11111111111111111111111111
     notifyUrl: http://xpgjapi.xiaoxinda.com/wxPay/wxJsapiPayNotify
     refundUrl: http://xpgjapi.xiaoxinda.com/wxPay/wxJsapiRefundNotify
     ip: 101.37.31.116