瀏覽代碼

fix 设备管理

Administrator 1 年之前
父節點
當前提交
1f2a06ece8

+ 2 - 1
ruoyi-system/src/main/java/com/ruoyi/hardware/mapper/DoumuHardwareMapper.java

@@ -2,6 +2,7 @@ package com.ruoyi.hardware.mapper;
 
 
 import java.util.List;
 import java.util.List;
 import com.ruoyi.hardware.domain.DoumuHardware;
 import com.ruoyi.hardware.domain.DoumuHardware;
+import org.apache.ibatis.annotations.Param;
 
 
 /**
 /**
  * 设备Mapper接口
  * 设备Mapper接口
@@ -58,6 +59,6 @@ public interface DoumuHardwareMapper
      * @return 结果
      * @return 结果
      */
      */
     public int deleteDoumuHardwareByHardwareIds(Long[] hardwareIds);
     public int deleteDoumuHardwareByHardwareIds(Long[] hardwareIds);
-    public int setType(String type);
+    public int setType( @Param("hardwareType") String type);
     public int setTypeOpen(DoumuHardware doumuHardware);
     public int setTypeOpen(DoumuHardware doumuHardware);
 }
 }

+ 3 - 2
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WxPayServiceImpl.java

@@ -23,6 +23,7 @@ import com.wechat.pay.java.service.payments.jsapi.model.PrepayResponse;
 import org.apache.commons.lang3.ObjectUtils;
 import org.apache.commons.lang3.ObjectUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.omg.CORBA.TIMEOUT;
 import org.omg.CORBA.TIMEOUT;
+import org.springframework.beans.factory.annotation.Configurable;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 import utils.AppletDecryptDataUtil;
 import utils.AppletDecryptDataUtil;
@@ -62,13 +63,13 @@ public class WxPayServiceImpl implements IWxPayService {
     /**
     /**
      * 小程序appId
      * 小程序appId
      */
      */
-    @Value("${wx.appId}")
+    @Value("${wx.app-id}")
     private String appId;
     private String appId;
 
 
     /**
     /**
      * 小程序密钥
      * 小程序密钥
      */
      */
-    @Value("${wx.appSecret}")
+    @Value("${wx.app-secret}")
     private String appSecret;
     private String appSecret;
 
 
     @Resource
     @Resource

+ 3 - 3
ruoyi-system/src/main/resources/mapper/system/DoumuHardwareMapper.xml

@@ -83,14 +83,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </trim>
         </trim>
         where hardware_id = #{hardwareId}
         where hardware_id = #{hardwareId}
     </update>
     </update>
-    <update id="setType">
+    <update id="setType" parameterType = "string">
         update doumu_hardware set hardware_type = #{hardwareType}
         update doumu_hardware set hardware_type = #{hardwareType}
     </update>
     </update>
     <update id="setTypeOpen">
     <update id="setTypeOpen">
         update doumu_hardware set hardware_type = #{hardwareType}
         update doumu_hardware set hardware_type = #{hardwareType}
         where hardware_id in
         where hardware_id in
-        <foreach item="hardwareIds" collection="array" open="(" separator="," close=")">
-            #{hardwareIds}
+        <foreach item="hardwareId" collection="hardwareIds" open="(" separator="," close=")">
+            #{hardwareId}
         </foreach>
         </foreach>
     </update>
     </update>