chenchaod преди 1 месец
родител
ревизия
5d08e59bd8

+ 4
- 3
gly-base-core/src/main/java/cn/com/taiji/core/entity/comm/PortalConfig.java Целия файл

@@ -3,6 +3,7 @@ package cn.com.taiji.core.entity.comm;

import cn.com.taiji.core.entity.AbstractStringPropertyUUIDEntity;
import cn.com.taiji.core.entity.dict.EnableStatus;
import cn.com.taiji.core.entity.dict.basic.SourceType;
import cn.com.taiji.core.entity.dict.user.RbacSource;

import javax.persistence.*;
@@ -21,7 +22,7 @@ public class PortalConfig extends AbstractStringPropertyUUIDEntity {
/**
* 来源类型
*/
private RbacSource source;
private SourceType source;

/***
* 客车车牌颜色(字典)
@@ -99,7 +100,7 @@ public class PortalConfig extends AbstractStringPropertyUUIDEntity {

@Enumerated(EnumType.STRING)
@Column(name = "SOURCE")
public RbacSource getSource() {
public SourceType getSource() {
return source;
}

@@ -152,7 +153,7 @@ public class PortalConfig extends AbstractStringPropertyUUIDEntity {
}


public void setSource(RbacSource source) {
public void setSource(SourceType source) {
this.source = source;
}


+ 3
- 3
gly-base-core/src/main/java/cn/com/taiji/core/repo/jpa/comm/PortalConfigRepo.java Целия файл

@@ -2,7 +2,7 @@ package cn.com.taiji.core.repo.jpa.comm;

import cn.com.taiji.common.repo.jpa.AbstractJpaRepo;
import cn.com.taiji.core.entity.comm.PortalConfig;
import cn.com.taiji.core.entity.dict.user.RbacSource;
import cn.com.taiji.core.entity.dict.basic.SourceType;
import org.springframework.data.jpa.repository.Query;

/***
@@ -14,13 +14,13 @@ import org.springframework.data.jpa.repository.Query;
public interface PortalConfigRepo extends AbstractJpaRepo<PortalConfig, String> {

@Query("select count(*) from PortalConfig where source=?1")
long countBySource(RbacSource source);
long countBySource(SourceType source);

@Query("from PortalConfig where id=?1")
PortalConfig getById(String id);

@Query("from PortalConfig where source=?1")
PortalConfig findBySource(RbacSource source);
PortalConfig findBySource(SourceType source);


}

Loading…
Отказ
Запис