Sfoglia il codice sorgente

optimize import detail log

java110 2 anni fa
parent
commit
6d81748b5f

+ 10 - 0
java110-bean/src/main/java/com/java110/dto/log/AssetImportLogDetailDto.java

@@ -26,6 +26,8 @@ public class AssetImportLogDetailDto extends PageDto implements Serializable {
     private String communityId;
     private String message;
 
+    private String stateName;
+
 
     private Date createTime;
 
@@ -97,4 +99,12 @@ public class AssetImportLogDetailDto extends PageDto implements Serializable {
     public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
     }
+
+    public String getStateName() {
+        return stateName;
+    }
+
+    public void setStateName(String stateName) {
+        this.stateName = stateName;
+    }
 }

+ 4 - 1
java110-db/src/main/resources/mapper/common/AssetImportLogDetailServiceDaoImplMapper.xml

@@ -26,8 +26,11 @@
     <!-- 查询批量操作日志详情信息 add by wuxw 2018-07-03 -->
     <select id="getAssetImportLogDetailInfo" parameterType="Map" resultType="Map">
         select t.detail_id,t.detail_id detailId,t.log_id,t.log_id logId,t.status_cd,t.status_cd
-        statusCd,t.state,t.content,t.content,t.community_id,t.community_id communityId,t.message
+        statusCd,t.state,t.content,t.content,t.community_id,t.community_id communityId,t.message,
+        t.create_time createTime,td1.name stateName
         from asset_import_log_detail t
+        LEFT JOIN t_dict td1 on t.state = td1.status_cd and td1.table_name = 'asset_import_log' and td1.table_columns =
+        'state'
         where 1 =1
         <if test="detailId !=null and detailId != ''">
             and t.detail_id= #{detailId}

+ 1 - 0
java110-db/src/main/resources/mapper/common/AssetImportLogServiceDaoImplMapper.xml

@@ -129,5 +129,6 @@
         from asset_import_log_type t
         where t.status_cd = '0'
         and t.log_type = #{logType}
+        order by CAST(t.type_id AS UNSIGNED)
     </select>
 </mapper>