소스 검색

fix 日志时间

tjf 3 년 전
부모
커밋
66d7909d64

+ 2 - 2
ruoyi-system/src/main/resources/mapper/system/ReportDetailMapper.xml

@@ -122,12 +122,12 @@
     </select>
 
     <select id="selectReportDetailByReportNumber" resultMap="ReportDetailResult">
-     select  r.report_number,  r.sample_name, r.inspect_name, r.entrust_name, r.is_qualify, r.report_url,r.issueTime from report_detail r
+     select  r.report_number,  r.sample_name, r.inspect_name, r.entrust_name, r.is_qualify, r.report_url,r.issue_time from report_detail r
         where r.report_number=#{reportNumber} and r.is_del = 'N'  limit 1
     </select>
 
     <select id="selectReportDetailByReportNumberDetail" resultMap="ReportDetailResult">
-     select  r.report_number,  r.sample_name, r.inspect_name, r.entrust_name, r.is_qualify, r.report_url,s.phonenumber,r.issueTime from report_detail r left join sys_user s on r.create_by = s.create_by
+     select  r.report_number,  r.sample_name, r.inspect_name, r.entrust_name, r.is_qualify, r.report_url,s.phonenumber,r.issue_time from report_detail r left join sys_user s on r.create_by = s.create_by
         where r.report_number=#{reportNumber} and r.is_del = 'N' and s.status = '0' and s.del_flag = '0' limit 1
     </select>
 

+ 2 - 2
ruoyi-system/src/main/resources/mapper/system/ReportQueryLogMapper.xml

@@ -67,10 +67,10 @@
             <if test="isSuccess != null">is_success,</if>
             <if test="isDel != null">is_del,</if>
             <if test="createBy != null">create_by,</if>
-            <if test="createTime != null">create_time,</if>
             <if test="updateBy != null">update_by,</if>
             <if test="updateTime != null">update_time,</if>
             <if test="remark != null">remark,</if>
+            create_time
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="reportNumber != null and reportNumber != ''">#{reportNumber},</if>
@@ -86,10 +86,10 @@
             <if test="isSuccess != null">#{isSuccess},</if>
             <if test="isDel != null">#{isDel},</if>
             <if test="createBy != null">#{createBy},</if>
-            <if test="createTime != null">#{createTime},</if>
             <if test="updateBy != null">#{updateBy},</if>
             <if test="updateTime != null">#{updateTime},</if>
             <if test="remark != null">#{remark},</if>
+            sysdate()
         </trim>
     </insert>