Explorar el Código

增加转换接口

xiewenjie hace 3 años
padre
commit
b5a477ada7

+ 2 - 2
sxz-core/src/main/java/com/fdkk/sxz/webApi/mapper/ISceneMapper.java

@@ -17,7 +17,7 @@ import java.util.List;
 @Component("ISceneMapper")
 public interface ISceneMapper extends IBaseMapper<SceneEntity> {
 
-    @Select("SELECT DISTINCT ts.* FROM tb_scene ts LEFT JOIN tb_scene_style tss on ts.scene_num = tss.scene_num and tss.`status`!= -2 and ts.user_id=#{param.userId} ORDER BY ts.create_time,ts.id " +
-            "DESC")
+    @Select("SELECT DISTINCT ts.* FROM tb_scene ts LEFT JOIN tb_scene_style tss on ts.scene_num = tss.scene_num and tss.`status`!= -2 and ts.user_id=#{param.userId} WHERE   tss.id is NOT null ORDER" +
+            " BY ORDER BY ts.create_time,ts.id DESC")
     List<SceneEntity> findAllByStatus(@Param("param") RequestScene scene);
 }