Commit 5ed157c1 by huangjinxin

fix:图层逻辑删除相关

1 parent 5bd34645
......@@ -18,6 +18,8 @@ public interface MapBlockInfoDao extends JpaRepository<MapBlockInfoEntity, Integ
List<MapBlockInfoEntity> findByGroupId(String groupId);
List<MapBlockInfoEntity> findByTeamId(String teamId);
List<MapBlockInfoEntity> findByLayerId(String layerId);
MapBlockInfoEntity findByTeamIdAndLayerId(String teamId, String layerId);
......@@ -28,7 +30,7 @@ public interface MapBlockInfoDao extends JpaRepository<MapBlockInfoEntity, Integ
@Query(value = "select mbi.* from map_block_info mbi left join map_layer_customize_skill mlcs on mlcs.layer_id = mbi.layer_id " +
"left join map_layer_customize mlc on mlc.layer_id = mbi.layer_id left join skill_info si on si.skill_code = mlcs.skill_code " +
"where si.brand = :brand and si.`type` = :productType and si.skill = :skill order by mlc.priority ", nativeQuery = true)
"where mbi.status = 1 and mlcs.status = 1 and mlc.status = 1 and si.brand = :brand and si.`type` = :productType and si.skill = :skill order by mlc.priority ", nativeQuery = true)
List<MapBlockInfoEntity> listTeamIdByBrandAndSkill(@Param("brand") String brand, @Param("productType") String productType,
@Param("skill") String skill);
}
package com.dituhui.pea.order.entity;
import lombok.Data;
import org.hibernate.annotations.Where;
import javax.persistence.*;
import java.time.LocalDateTime;
......@@ -8,6 +9,7 @@ import java.time.LocalDateTime;
@Data
@Entity
@Table(name = "map_block_info")
@Where(clause = "status = 1")
public class MapBlockInfoEntity {
@Id
......
package com.dituhui.pea.order.entity;
import lombok.Data;
import org.hibernate.annotations.Where;
import javax.persistence.*;
import java.time.LocalDateTime;
......@@ -9,6 +10,7 @@ import java.util.Date;
@Entity
@Data
@Table(name = "map_layer_customize")
@Where(clause = "status = 1")
public class MapLayerCustomizeEntity {
@Id
......
package com.dituhui.pea.order.entity;
import lombok.Data;
import org.hibernate.annotations.Where;
import javax.persistence.*;
import java.time.LocalDateTime;
......@@ -8,6 +9,7 @@ import java.time.LocalDateTime;
@Entity
@Data
@Table(name = "map_layer_customize_skill")
@Where(clause = "status = 1")
public class MapLayerCustomizeSkillEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!