Quellcode durchsuchen

fix: 地址查询异常修复

Wren vor 1 Jahr
Ursprung
Commit
604b3ec5ab

+ 3 - 0
src/main/java/com/ichaoj/ams/service/impl/AmsExecuteRecordServiceImpl.java

@@ -177,7 +177,10 @@ public class AmsExecuteRecordServiceImpl extends SuperWhaleServiceImpl<AmsExecut
                 executeRecord.setExecuteStatus(2);
             }
             executeRecord.setExecuteStatus(executeRecord.getExecuteStatus() == null || executeRecord.getExecuteStatus() == 0 ? 1 : executeRecord.getExecuteStatus());
+            log.info("execute record update : {}", executeRecord);
+            log.info("updating...");
             this.updateById(executeRecord);
+            log.info("update complete");
         });
 
 

+ 11 - 2
src/main/resources/mapper/AmsAddressAccountMapper.xml

@@ -31,7 +31,16 @@
         <if test="request.addressType != null and request.addressType >= 0">
             and a.address_type = #{request.addressType}
         </if>
-        GROUP BY a.address
+        GROUP BY
+        a.ams_address_id,
+        a.user_id,
+        a.address,
+        a.chain_id,
+        a.address_type,
+        a.group_name,
+        a.keystore,
+        a.last_oper_time,
+        a.create_time
 
         <if test="request.orderBy != null and request.orderBy != ''
          and request.orderType != null and request.orderType != ''">
@@ -40,7 +49,7 @@
 
         <if test="request.orderBy == null or request.orderBy == ''
          or request.orderType == null or request.orderType == ''">
-            order by a.create_time desc
+            order by a.address desc
         </if>
     </select>