Compare commits
2 Commits
1393b01b06
...
3aaa157dde
| Author | SHA1 | Date |
|---|---|---|
|
|
3aaa157dde | |
|
|
5d45b3686d |
|
|
@ -15,6 +15,7 @@ import lombok.RequiredArgsConstructor;
|
||||||
import org.egovframe.rte.fdl.property.EgovPropertyService;
|
import org.egovframe.rte.fdl.property.EgovPropertyService;
|
||||||
import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
import org.egovframe.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
|
@ -23,6 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -130,4 +132,20 @@ public class StandardCodeController extends BaseController {
|
||||||
resultVO.setResult(resultMap);
|
resultVO.setResult(resultMap);
|
||||||
return resultVO;
|
return resultVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(
|
||||||
|
summary = "건설기준코드 개정이력 조회",
|
||||||
|
description = "건설기준코드 개정이력 조회",
|
||||||
|
tags = {"StandardCodeController"}
|
||||||
|
)
|
||||||
|
@PostMapping("/testCodeList.do")
|
||||||
|
public ResponseEntity<?> testCodeList(@RequestBody Integer groupseq){
|
||||||
|
System.out.println(groupseq+"-------------------------------");
|
||||||
|
|
||||||
|
|
||||||
|
return ResponseEntity.ok(standardCodeService.selectStandardCodeRevisionhistoryList(groupseq));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -13,4 +13,5 @@ public interface StandardCodeMapper {
|
||||||
|
|
||||||
Integer selectStandardCodeListCnt(TnDocumentInfo tnDocumentInfo);
|
Integer selectStandardCodeListCnt(TnDocumentInfo tnDocumentInfo);
|
||||||
|
|
||||||
|
List<TnDocumentInfo> selectStandardCodeRevisionhistoryList(Integer groupseq);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,4 +34,7 @@ public class StandardCodeService {
|
||||||
return standardCodeMapper.selectStandardCodeListCnt(tnDocumentInfo);
|
return standardCodeMapper.selectStandardCodeListCnt(tnDocumentInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<TnDocumentInfo> selectStandardCodeRevisionhistoryList(Integer groupseq) {
|
||||||
|
return standardCodeMapper.selectStandardCodeRevisionhistoryList(groupseq);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,4 +61,14 @@
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectStandardCodeRevisionhistoryList" resultType="TnDocumentInfo">
|
||||||
|
select tdi.aplcn_bgng_ymd,tdi.doc_file_grp_id from tn_document_info tdi, tn_document_group tdg
|
||||||
|
where 1 = 1
|
||||||
|
and tdi.group_seq = tdg.group_seq
|
||||||
|
and tdi.kcsc_cd like 'KDS%'
|
||||||
|
and tdi.group_seq =#{groupseq}
|
||||||
|
and tdi.use_yn = 'Y'
|
||||||
|
order by tdi.kcsc_cd;
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue