Procházet zdrojové kódy

流程审批动态降序排序

wangliang před 1 rokem
rodič
revize
17ee809334

+ 6 - 0
sop-business/src/main/java/com/qmth/sop/business/service/impl/TFFlowLogServiceImpl.java

@@ -20,6 +20,12 @@ import java.util.List;
 @Service
 public class TFFlowLogServiceImpl extends ServiceImpl<TFFlowLogMapper, TFFlowLog> implements TFFlowLogService {
 
+    /**
+     * 根据实体id查询
+     *
+     * @param objectId
+     * @return
+     */
     @Override
     public List<TFFlowLogResult> findByObjectId(Long objectId) {
         return this.baseMapper.findByObjectId(objectId);

+ 1 - 1
sop-business/src/main/resources/mapper/TFFlowLogMapper.xml

@@ -55,6 +55,6 @@
         where
             tffl.object_id = #{objectId}
         order by
-            tffl.create_time
+            tffl.create_time desc
     </select>
 </mapper>