2024-02-13 12:19 성인강사 강사료 표시

This commit is contained in:
myname 2024-02-13 12:19:38 +09:00
parent 48e85c65b3
commit be2efc55b7
8 changed files with 107 additions and 4 deletions

View File

@ -20,7 +20,10 @@ import kcc.let.uat.uia.service.SsoLoginVO;
import kcc.let.uss.notify.service.NotifyManageService;
import kcc.let.utl.fcc.service.EgovCryptoUtil;
import kcc.ve.cmm.VeConstants;
import kcc.ve.cmm.VeInstrFeeMng;
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEAsgnmMIXService;
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeAcmdtVO;
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeService;
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctVO;
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduChasiVO;
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduMIXService;
@ -68,6 +71,10 @@ public class VEFndtnAsgnmController {
@Resource(name = "NotifyManageService")
private NotifyManageService notifyManageService;
//강사료
@Resource(name="vEInstrFeeService")
private VEInstrFeeService vEInstrFeeService;
// 기반강화 강의목록(확정)
@RequestMapping("/web/ve/instr/fndtnVisitEdu/asgnmInfo/instrAsgnmList.do")
@ -305,6 +312,24 @@ public class VEFndtnAsgnmController {
model.addAttribute("chasiList", vEEduChasiVOList);
}
{
try {
// 강사료 계산
VeInstrFeeMng veInstrFeeMng = new VeInstrFeeMng();
VEInstrFeeAcmdtVO vEInstrFeeAcmdtVO = veInstrFeeMng.VeInstrFeeMng4Fndth(vEInstrFeeService, vEPrcsDetailVO.getPrcsAplctPrdOrd(), loginVO.getUniqId());
//지급총액 계산
//int totalSum = instrFeeSum;
//vEInstrFeeAcmdtVO.setTotalSum(totalSum);
model.addAttribute("instrFee",vEInstrFeeAcmdtVO);
}catch(Exception ex) {
ex.printStackTrace();
}
}
return "/web/ve/instr/fndtnVisitEdu/asgnmInfo/instrAsgnmEndDetail";
}

View File

@ -20,7 +20,10 @@ import kcc.let.uat.uia.service.SsoLoginVO;
import kcc.let.uss.notify.service.NotifyManageService;
import kcc.let.utl.fcc.service.EgovCryptoUtil;
import kcc.ve.cmm.VeConstants;
import kcc.ve.cmm.VeInstrFeeMng;
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEAsgnmMIXService;
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeAcmdtVO;
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeService;
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctVO;
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduChasiVO;
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduMIXService;
@ -69,6 +72,9 @@ public class VESspnIdtmtAsgnmController {
@Resource(name = "NotifyManageService")
private NotifyManageService notifyManageService;
//강사료
@Resource(name="vEInstrFeeService")
private VEInstrFeeService vEInstrFeeService;
// 기반강화 강의목록(확정)
@RequestMapping("/web/ve/instr/sspnIdtmt/asgnmInfo/instrAsgnmList.do")
@ -303,6 +309,24 @@ public class VESspnIdtmtAsgnmController {
model.addAttribute("chasiList", vEEduChasiVOList);
}
{
try {
// 강사료 계산
VeInstrFeeMng veInstrFeeMng = new VeInstrFeeMng();
VEInstrFeeAcmdtVO vEInstrFeeAcmdtVO = veInstrFeeMng.VeInstrFeeMng4Fndth(vEInstrFeeService, vEPrcsDetailVO.getPrcsAplctPrdOrd(), loginVO.getUniqId());
//지급총액 계산
//int totalSum = instrFeeSum;
//vEInstrFeeAcmdtVO.setTotalSum(totalSum);
model.addAttribute("instrFee",vEInstrFeeAcmdtVO);
}catch(Exception ex) {
ex.printStackTrace();
}
}
return "/web/ve/instr/sspnIdtmtVisitEdu/endInfo/instrAsgnmEndDetail";
}

View File

@ -365,7 +365,10 @@ public class CndtnInstrMngController {
//대상 리스트, 페이징 정보 전달
vEPrcsDetailVOList = egovCryptoUtil.decryptvEPrcsDetailList(vEPrcsDetailVOList);
model.addAttribute("list", vEPrcsDetailVOList);
model.addAttribute("list", vEPrcsDetailVOList);
System.out.println("vEPrcsDetailVOList.toString()");
System.out.println(vEPrcsDetailVOList.toString());
}catch(Exception ex) {
ex.printStackTrace();
}

View File

@ -203,7 +203,7 @@
, B.INSTR_FEE_ORD AS instrFeeOrd
, A.USER_ID AS userId
,(SELECT AA.div_cd FROM VE_INSTR_DETAIL AA WHERE 1=1 AND AA.USER_ID = A.USER_ID AND aa.use_yn ='Y') AS divCd
,(SELECT AA.div_cd FROM VE_INSTR_DETAIL AA WHERE 1=1 AND AA.USER_ID = A.USER_ID AND aa.use_yn ='Y' ORDER BY AA.sbmt_pnttm DESC LIMIT 1) AS divCd
/*
,(SELECT AA.ADDR FROM VE_INSTR_DETAIL AA WHERE 1=1 AND AA.USER_ID = A.USER_ID AND aa.instr_div=e.lctr_div_cd AND aa.use_yn='Y') AS instrRsdnc

View File

@ -354,6 +354,31 @@
</c:if>
</td>
</tr>
<tr class="trLength4">
<th scope="row">
<p>강사료(a)</p>
</th>
<td>
<fmt:formatNumber value="${instrFee.instrFee}" pattern="#,###"/>
</td>
</tr>
<tr class="trLength4">
<th scope="row">
<p>출장비(b)</p>
</th>
<td>
<fmt:formatNumber value="${instrFee.trafficFee}" pattern="#,###"/>
</td>
</tr>
<tr class="trLength4">
<th scope="row">
<p>총액(a+b)</p>
</th>
<td>
<fmt:formatNumber value="${instrFee.instrFee+instrFee.trafficFee}" pattern="#,###"/>
</td>
</tr>
</tbody>
</table>
</div>

View File

@ -115,7 +115,7 @@
<kc:code codeId="VEA001" code="${list.prcsDiv}"/>
</td>
<td>
<a href="#none" onclick="fncGoDetail('<c:out value='${list.prcsAplctPrdOrd }' />')">${list.prcsNm } (${list.prcsAplctPrdOrd })</a>
<a href="#none" onclick="fncGoDetail('<c:out value='${list.prcsAplctPrdOrd }' />')">${list.prcsNm }</a>
</td>
<td>
${list.eduStrtPnttm } ~ ${list.eduDdlnPnttm }

View File

@ -339,6 +339,32 @@
</c:if>
</td>
</tr>
<tr class="trLength4">
<th scope="row">
<p>강사료(a)</p>
</th>
<td>
<fmt:formatNumber value="${instrFee.instrFee}" pattern="#,###"/>
</td>
</tr>
<tr class="trLength4">
<th scope="row">
<p>출장비(b)</p>
</th>
<td>
<fmt:formatNumber value="${instrFee.trafficFee}" pattern="#,###"/>
</td>
</tr>
<tr class="trLength4">
<th scope="row">
<p>총액(a+b)</p>
</th>
<td>
<fmt:formatNumber value="${instrFee.instrFee+instrFee.trafficFee}" pattern="#,###"/>
</td>
</tr>
</tbody>
</table>
</div>

View File

@ -115,7 +115,7 @@
<kc:code codeId="VEA001" code="${list.prcsDiv}"/>
</td>
<td>
<a href="#none" onclick="fncGoDetail('<c:out value='${list.prcsAplctPrdOrd }' />')">${list.prcsNm } (${list.prcsAplctPrdOrd })</a>
<a href="#none" onclick="fncGoDetail('<c:out value='${list.prcsAplctPrdOrd }' />')">${list.prcsNm }</a>
</td>
<td>
${list.eduStrtPnttm }