|
|
|
@ -42,7 +42,7 @@ public class BoardDao extends BaseMpowerDaoSupport {
|
|
|
|
|
final String sql = QueryGenerator.createNamedQuery("board", "selectBoard")
|
|
|
|
|
.setParameter("ciCode", ciCode)
|
|
|
|
|
.getQueryString();
|
|
|
|
|
final String fieldStrs = "ci_code, ci_contentno, ci_contents, ci_email, ci_hit, ci_id, ci_ip, ci_nalja, ci_name, ci_pass, ci_pwd, ci_ref, ci_revel, ci_step, ci_time, ci_title";
|
|
|
|
|
final String fieldStrs = "ciCode, ciContentno, ciContents, ciEmail, ciHit, ciId, ciIp, ciNalja, ciName, ciPass, ciPwd, ciRef, ciRevel, ciStep, ciTime, ciTitle";
|
|
|
|
|
|
|
|
|
|
return Optional.ofNullable(selectOne(BoardDto.class, sql, fieldStrs));
|
|
|
|
|
}
|
|
|
|
@ -76,9 +76,9 @@ public class BoardDao extends BaseMpowerDaoSupport {
|
|
|
|
|
update(sql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int findByCiRefCnt(final Long ciCode) {
|
|
|
|
|
public int findByCiRefCnt(final Long ciRef) {
|
|
|
|
|
final String sql = QueryGenerator.createNamedQuery("board", "selectCntByCiRef")
|
|
|
|
|
.setParameter("ciCode", ciCode)
|
|
|
|
|
.setParameter("ciRef", ciRef)
|
|
|
|
|
.getQueryString();
|
|
|
|
|
return Integer.parseInt(selectOneColumn(sql));
|
|
|
|
|
}
|
|
|
|
|