Pārlūkot izejas kodu

修改合作商户查看营业执照

LiFei 4 gadi atpakaļ
vecāks
revīzija
41ce5c45a0

+ 1 - 1
happy-cloud-wisdom/happy-cloud-wisdom-biz/src/main/java/org/jeecg/modules/hlwcpmanager/mapper/xml/HlwCpSettingMapper.xml

@@ -10,8 +10,8 @@
           a.id as "id",
           a.business_license as "businessLicense"
         FROM hlw_cp_setting a
+        where a.id=#{hlwPayment.cpId}
         order by a.update_time desc
-        limit 1
     </select>
 
 

+ 1 - 1
happy-cloud-wisdom/happy-cloud-wisdom-biz/src/main/java/org/jeecg/modules/hlwpayment/controller/HlwPaymentController.java

@@ -271,7 +271,7 @@ public class HlwPaymentController extends JeecgController<HlwPayment, IHlwPaymen
     @GetMapping(value = "/getBusinessLicense")
     public Result<?> getBusinessLicense(HlwPayment hlwPayment) {
         HlwPayment hlwPayment1 = new HlwPayment();
-        if (hlwPayment.getIsThroughPlatform() == 1) {
+        if (hlwPayment.getCpId() !=null) {
             hlwPayment1 = hlwCpSettingService.getBusinessLicense(hlwPayment);
             hlwPayment1.setFilePathPrefix(aliyunUrl);
         } else {