fix: 양방향 entity 문제
parent
edaf2d89e4
commit
a4e78c5504
@ -1,9 +1,16 @@
|
||||
package com.xit.biz.cmm.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Schema(name = "CmmCodeDto", description = "콤보공통코드 DTO")
|
||||
public interface ComboCodeDto {
|
||||
public String getCode();
|
||||
public String getValue();
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
public class ComboCodeDto {
|
||||
private String code;
|
||||
private String value;
|
||||
}
|
||||
|
@ -0,0 +1,10 @@
|
||||
package com.xit.biz.cmm.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
@Schema(name = "CmmCodeDto", description = "콤보공통코드 DTO")
|
||||
|
||||
public interface IComboCodeDto {
|
||||
public String getCode();
|
||||
public String getValue();
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.xit.biz.cmm.repository;
|
||||
|
||||
import com.xit.biz.cmm.dto.IComboCodeDto;
|
||||
import com.xit.biz.cmm.entity.CmmCodeS;
|
||||
import com.xit.biz.cmm.entity.ids.CmmCodeSIds;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ICmmComboCodeRepository extends JpaRepository<CmmCodeS, CmmCodeSIds>, JpaSpecificationExecutor<IComboCodeDto> {
|
||||
@Query(value = "SELECT C.code_cd AS code, C.code_nm AS value FROM tb_cmm_code_s C WHERE C.code_grp_id = :codeGrpId AND C.code_lcd = :codeLcd AND C.code_mcd = :codeMcd AND C.use_yn = 'Y' ORDER BY C.code_ordr ASC", nativeQuery = true)
|
||||
List<IComboCodeDto> queryComboCode(@Param("codeGrpId")String codeGrpId, @Param("codeLcd")String codeLcd, @Param("codeMcd")String codeMcd);
|
||||
}
|
@ -1,10 +1,15 @@
|
||||
package com.xit.biz.ctgy.service;
|
||||
|
||||
import com.xit.biz.cmm.entity.CmmUser;
|
||||
import com.xit.biz.ctgy.entity.MinUserinfo;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
public interface IMinUserinfoService {
|
||||
|
||||
Page<MinUserinfo> findMinUserinfos(MinUserinfo minUserinfo, Pageable pageable);
|
||||
|
||||
MinUserinfo findMyUserWithoutAuthorities();
|
||||
}
|
||||
|
@ -0,0 +1,23 @@
|
||||
select * from MIN_MAINCODE order by c1, c2, c3;
|
||||
|
||||
insert into TB_CMM_CODE_S(
|
||||
code_grp_id,
|
||||
CODE_LCD,
|
||||
CODE_MCD,
|
||||
CODE_CD,
|
||||
CODE_NM,
|
||||
CODE_META_1,
|
||||
CODE_META_2,
|
||||
CODE_META_3
|
||||
)
|
||||
select 'traffic',
|
||||
c1,
|
||||
c2,
|
||||
c3,
|
||||
cdname,
|
||||
etc1,
|
||||
etc2,
|
||||
ETC3
|
||||
from MIN_MAINCODE
|
||||
order by c1, c2, c3;
|
||||
commit;
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,72 @@
|
||||
create table tb_cmm_code_grp (
|
||||
code_grp_id varchar2(20) not null,
|
||||
created_by varchar2(64),
|
||||
created_dtm timestamp,
|
||||
modified_by varchar2(64),
|
||||
modified_dtm timestamp,
|
||||
use_yn varchar2(1) default 'Y' not null,
|
||||
code_nm varchar2(20) not null,
|
||||
code_ordr number(3) default 99 not null,
|
||||
code_remark varchar2(50),
|
||||
primary key (code_grp_id)
|
||||
);
|
||||
|
||||
create table tb_cmm_code_l (
|
||||
code_cd varchar2(10) not null,
|
||||
code_grp_id varchar2(20) not null,
|
||||
created_by varchar2(64),
|
||||
created_dtm timestamp,
|
||||
modified_by varchar2(64),
|
||||
modified_dtm timestamp,
|
||||
use_yn varchar2(1) default 'Y' not null,
|
||||
code_meta_1 varchar2(10),
|
||||
code_meta_2 varchar2(10),
|
||||
code_meta_3 varchar2(10),
|
||||
code_meta_4 varchar2(10),
|
||||
code_meta_5 varchar2(10),
|
||||
code_nm varchar2(20) not null,
|
||||
code_ordr number(3) default 99 not null,
|
||||
code_remark varchar2(50),
|
||||
primary key (code_cd, code_grp_id)
|
||||
);
|
||||
|
||||
create table tb_cmm_code_m (
|
||||
code_cd varchar2(10) not null,
|
||||
code_grp_id varchar2(20) not null,
|
||||
code_lcd varchar2(10) not null,
|
||||
created_by varchar2(64),
|
||||
created_dtm timestamp,
|
||||
modified_by varchar2(64),
|
||||
modified_dtm timestamp,
|
||||
use_yn varchar2(1) default 'Y' not null,
|
||||
code_meta_1 varchar2(10),
|
||||
code_meta_2 varchar2(10),
|
||||
code_meta_3 varchar2(10),
|
||||
code_meta_4 varchar2(10),
|
||||
code_meta_5 varchar2(10),
|
||||
code_nm varchar2(20) not null,
|
||||
code_ordr number(3) not null,
|
||||
code_remark varchar2(50),
|
||||
primary key (code_cd, code_grp_id, code_lcd)
|
||||
);
|
||||
|
||||
create table tb_cmm_code_s (
|
||||
code_cd varchar2(10) not null,
|
||||
code_grp_id varchar2(20) not null,
|
||||
code_lcd varchar2(10) not null,
|
||||
code_mcd varchar2(10) not null,
|
||||
created_by varchar2(64),
|
||||
created_dtm timestamp,
|
||||
modified_by varchar2(64),
|
||||
modified_dtm timestamp,
|
||||
use_yn varchar2(1) default 'Y' not null,
|
||||
code_meta_1 varchar2(10),
|
||||
code_meta_2 varchar2(10),
|
||||
code_meta_3 varchar2(10),
|
||||
code_meta_4 varchar2(10),
|
||||
code_meta_5 varchar2(10),
|
||||
code_nm varchar2(20) not null,
|
||||
code_ordr number(3) default 99 not null,
|
||||
code_remark varchar2(50),
|
||||
primary key (code_cd, code_grp_id, code_lcd, code_mcd)
|
||||
);
|
Loading…
Reference in New Issue