Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
6f6e8f3674 | |||
fc3110b63d | |||
4249c32a08 | |||
76ff998165 |
4
pom.xml
4
pom.xml
@ -247,10 +247,10 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
<!-- <repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>gitlab-maven</id>
|
<id>gitlab-maven</id>
|
||||||
<url>http://gitlab.kfems.kr:8088/api/v4/projects/14/packages/maven</url>
|
<url>http://gitlab.kfems.kr:8088/api/v4/projects/14/packages/maven</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories> -->
|
||||||
</project>
|
</project>
|
||||||
|
@ -55,4 +55,12 @@ public class BatchLogCtr{
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value="/selectBatchLogPageTotal", method=RequestMethod.POST)
|
||||||
|
@ResponseBody
|
||||||
|
public Object selectPrgmPageTotal(@RequestBody BaseParam paramMap){
|
||||||
|
BaseResponse result = new BaseResponse();
|
||||||
|
result.add("batchLogPageTotal", batchLogSvc.selectBatchLogPageTotal(paramMap.getParams()));
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -83,6 +83,28 @@ public class NoticeMngCtr{
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value="/selectPostData", method=RequestMethod.POST)
|
||||||
|
@ResponseBody
|
||||||
|
public Object selectPostData(@RequestBody BaseParam paramMap){
|
||||||
|
BaseResponse result = new BaseResponse();
|
||||||
|
List<HashMap<String, Object>> finalValue = new ArrayList<HashMap<String, Object>>();
|
||||||
|
List<CamelHashMap> postList = noticeMngSvc.selectPostData(paramMap.getParams());
|
||||||
|
result.add("postPage", postList);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping(value="/selectPostPageTotal", method=RequestMethod.POST)
|
||||||
|
@ResponseBody
|
||||||
|
public Object selectPostPageTotal(@RequestBody BaseParam paramMap){
|
||||||
|
BaseResponse result = new BaseResponse();
|
||||||
|
List<HashMap<String, Object>> finalValue = new ArrayList<HashMap<String, Object>>();
|
||||||
|
List<CamelHashMap> postList = noticeMngSvc.selectPostPageTotal(paramMap.getParams());
|
||||||
|
result.add("postPageTotal", postList);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @methodName : selectPost
|
* @methodName : selectPost
|
||||||
* @date : 2021.07.28
|
* @date : 2021.07.28
|
||||||
|
@ -38,4 +38,7 @@ public class BatchLogSvc extends BaseSvc {
|
|||||||
return dao.selectList("comm.base.batchLog.selectBatchLog", param);
|
return dao.selectList("comm.base.batchLog.selectBatchLog", param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<CamelHashMap> selectBatchLogPageTotal(HashMap<String, Object> param) {
|
||||||
|
return dao.selectList("comm.base.batchLog.selectBatchLogPageTotal", param);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,14 @@ public class NoticeMngSvc extends BaseSvc {
|
|||||||
return dao.selectList("comm.base.noticeMng.selectPostList", param);
|
return dao.selectList("comm.base.noticeMng.selectPostList", param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<CamelHashMap> selectPostData(HashMap<String, Object> param){
|
||||||
|
return dao.selectList("comm.base.noticeMng.selectPostData", param);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<CamelHashMap> selectPostPageTotal(HashMap<String, Object> param){
|
||||||
|
return dao.selectList("comm.base.noticeMng.selectPostPageTotal", param);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @methodName : selectPost
|
* @methodName : selectPost
|
||||||
* @date : 2021.07.28
|
* @date : 2021.07.28
|
||||||
|
@ -18,10 +18,10 @@ spring:
|
|||||||
|
|
||||||
#local db
|
#local db
|
||||||
db-type: oracle
|
db-type: oracle
|
||||||
serverIp: localhost
|
serverIp: 218.237.212.51
|
||||||
port: 1521
|
port: 30001
|
||||||
databaseName: free
|
databaseName: free
|
||||||
username: LSITC
|
username: lsitc
|
||||||
password: "ziin2117!"
|
password: "ziin2117!"
|
||||||
|
|
||||||
|
|
||||||
|
@ -132,6 +132,65 @@
|
|||||||
AND EXEC_DT
|
AND EXEC_DT
|
||||||
BETWEEN #{fromDt} AND #{fromDt}
|
BETWEEN #{fromDt} AND #{fromDt}
|
||||||
ORDER BY EXEC_DT DESC, BATCH_STRT_DTTM DESC
|
ORDER BY EXEC_DT DESC, BATCH_STRT_DTTM DESC
|
||||||
|
OFFSET #{offset} ROWS FETCH NEXT #{limit} ROWS ONLY
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectBatchLogPageTotal" resultType="camelHashMap">
|
||||||
|
/* comm.batchLog.selectBatchLog : 배치 수행 로그 조회 */
|
||||||
|
SELECT count(*) totalCount FROM
|
||||||
|
(
|
||||||
|
SELECT
|
||||||
|
BATCH_LOG_SEQ
|
||||||
|
,BATCH_ID
|
||||||
|
,(
|
||||||
|
SELECT MAX(CBM.BATCH_NM)
|
||||||
|
FROM COMM_BATCH_MGNT CBM
|
||||||
|
WHERE
|
||||||
|
CBM.BATCH_ID = CBL.BATCH_ID
|
||||||
|
) AS BATCH_NM
|
||||||
|
,EXEC_DT
|
||||||
|
,EXEC_RSLT_CD
|
||||||
|
,EXEC_LOG_CONT_1
|
||||||
|
,EXEC_LOG_CONT_2
|
||||||
|
-- ,CONCAT(NVL(EXEC_LOG_CONT_1, ''), NVL(EXEC_LOG_CONT_2, '')) as EXEC_LOG_CONT
|
||||||
|
,BATCH_STRT_DTTM
|
||||||
|
,BATCH_END_DTTM
|
||||||
|
,REG_USER_NO
|
||||||
|
,REG_DTTM
|
||||||
|
,PROC_USER_NO
|
||||||
|
,PROC_DTTM
|
||||||
|
FROM COMM_BATCH_LOG CBL
|
||||||
|
) T
|
||||||
|
WHERE 1=1
|
||||||
|
<if test="batchLogSeq != null and batchLogSeq != ''">
|
||||||
|
AND BATCH_LOG_SEQ = #{batchLogSeq}
|
||||||
|
</if>
|
||||||
|
<if test="batchId != null and batchId != ''">
|
||||||
|
AND BATCH_ID = #{batchId}
|
||||||
|
</if>
|
||||||
|
<if test="batchNm != null and batchNm != ''">
|
||||||
|
AND BATCH_NM like ('%' || #{batchNm} || '%')
|
||||||
|
</if>
|
||||||
|
<if test="execDt != null and execDt != ''">
|
||||||
|
AND EXEC_DT = #{execDt}
|
||||||
|
</if>
|
||||||
|
<if test="execRsltCd != null and execRsltCd != ''">
|
||||||
|
AND EXEC_RSLT_CD = #{execRsltCd}
|
||||||
|
</if>
|
||||||
|
<if test="execLogCont1 != null and execLogCont1 != ''">
|
||||||
|
AND EXEC_LOG_CONT_1 = #{execLogCont1}
|
||||||
|
</if>
|
||||||
|
<if test="execLogCont2 != null and execLogCont2 != ''">
|
||||||
|
AND EXEC_LOG_CONT_2 = #{execLogCont2}
|
||||||
|
</if>
|
||||||
|
<if test="batchStrtDttm != null and batchStrtDttm != ''">
|
||||||
|
AND BATCH_STRT_DTTM = #{batchStrtDttm}
|
||||||
|
</if>
|
||||||
|
<if test="batchEndDttm != null and batchEndDttm != ''">
|
||||||
|
AND BATCH_END_DTTM = #{batchEndDttm}
|
||||||
|
</if>
|
||||||
|
AND EXEC_DT
|
||||||
|
BETWEEN #{fromDt} AND #{fromDt}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getBatchLogSeq" resultType="int">
|
<select id="getBatchLogSeq" resultType="int">
|
||||||
|
@ -20,6 +20,41 @@
|
|||||||
ORDER BY P.POST_ORG_NO DESC, P.POST_GRP_ORD ASC
|
ORDER BY P.POST_ORG_NO DESC, P.POST_GRP_ORD ASC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectPostData" resultType="com.lsitc.core.base.CamelHashMap" >
|
||||||
|
/* comm.noticeMng.selectPostData : 게시판 리스트 조회 */
|
||||||
|
SELECT B.COM_ID, B.BORD_NO, P.POST_NO, P.POST_ORG_NO, P.POST_GRP_ORD, P.POST_GRP_LAYER,
|
||||||
|
P.POST_TITL, P.POST_TITL AS TITLE,
|
||||||
|
P.NOTI_YN, P.RPLY_POSS_YN, P.STRT_DTTM, P.END_DTTM, P.VIEW_CNT, P.APND_FILE_UUID,
|
||||||
|
P.REG_USER_NO, P.REG_DTTM
|
||||||
|
FROM comm_bord B
|
||||||
|
INNER JOIN comm_post P
|
||||||
|
ON B.COM_ID = P.COM_ID
|
||||||
|
AND B.BORD_NO = P.BORD_NO
|
||||||
|
WHERE B.COM_ID = #{session.comId}
|
||||||
|
AND B.USE_FG = '1'
|
||||||
|
AND B.BORD_NO = #{bordNo}
|
||||||
|
<if test="postOrgNo != null and postOrgNo != ''">
|
||||||
|
AND P.POST_ORG_NO = #{postOrgNo}
|
||||||
|
</if>
|
||||||
|
ORDER BY P.POST_ORG_NO DESC, P.POST_GRP_ORD ASC
|
||||||
|
OFFSET #{offset} ROWS FETCH NEXT #{limit} ROWS ONLY
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectPostPageTotal" resultType="com.lsitc.core.base.CamelHashMap" >
|
||||||
|
/* comm.noticeMng.selectPostPageTotal : 게시판 리스트 조회 */
|
||||||
|
SELECT count(*) totalCount
|
||||||
|
FROM comm_bord B
|
||||||
|
INNER JOIN comm_post P
|
||||||
|
ON B.COM_ID = P.COM_ID
|
||||||
|
AND B.BORD_NO = P.BORD_NO
|
||||||
|
WHERE B.COM_ID = #{session.comId}
|
||||||
|
AND B.USE_FG = '1'
|
||||||
|
AND B.BORD_NO = #{bordNo}
|
||||||
|
<if test="postOrgNo != null and postOrgNo != ''">
|
||||||
|
AND P.POST_ORG_NO = #{postOrgNo}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
<!-- resultMap 지정 -->
|
<!-- resultMap 지정 -->
|
||||||
<resultMap id="selectPostResult" type="com.lsitc.core.base.CamelHashMap" >
|
<resultMap id="selectPostResult" type="com.lsitc.core.base.CamelHashMap" >
|
||||||
<result property="POST_CNTN" column="POST_CNTN" jdbcType="CLOB" javaType="java.lang.String" />
|
<result property="POST_CNTN" column="POST_CNTN" jdbcType="CLOB" javaType="java.lang.String" />
|
||||||
|
Reference in New Issue
Block a user