[BO] 월초이월금
This commit is contained in:
@@ -309,5 +309,15 @@
|
||||
ORDER BY dr.start_date asc, df.created_at asc
|
||||
</if>
|
||||
</select>
|
||||
<select id="getMonthlyCarryOver">
|
||||
select ds.carry_over
|
||||
from daily_summary ds
|
||||
inner join daily_record dr on dr.household_seq = ds.household_seq and dr.record_month = ds.record_month
|
||||
and dr.id = #{recordSeq}
|
||||
order by
|
||||
ds.id desc
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -72,6 +72,13 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 월초이월금 -->
|
||||
<section class="table-group _monthlyCarryOver" style="display: none;">
|
||||
<div class="table-tit-group">
|
||||
<h3>월초이월금 <strong id="carryOver">(0원)</strong></h3>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 수입 -->
|
||||
<section class="table-group">
|
||||
<div class="table-tit-group">
|
||||
@@ -435,7 +442,7 @@
|
||||
|
||||
ajaxUtil._ajaxMethod(
|
||||
'/api/household/dailyRecordStatus',
|
||||
{ recordSeq: id },
|
||||
{ recordSeq: id, recordMonth: f.recordMonth.value },
|
||||
function(response) { // 성공
|
||||
console.log("일계부 등록 상세 데이터 : ", response);
|
||||
|
||||
@@ -462,6 +469,18 @@
|
||||
gridPowerTable(response.status.powerStatus, response.powers);
|
||||
gridForestryTable(response.status.forestryStatus, response.forestries);
|
||||
gridFarmingTable(response.status.farmingStatus, response.farmings);
|
||||
|
||||
if (groupNo === 1) {
|
||||
console.log(groupNo, response.monthlyCarryOver)
|
||||
if (response.monthlyCarryOver != null) {
|
||||
$('#carryOver').text(Number(response.monthlyCarryOver).toLocaleString() + '원');
|
||||
} else {
|
||||
$('#carryOver').text('계산중입니다.');
|
||||
}
|
||||
$('._monthlyCarryOver').show();
|
||||
} else {
|
||||
$('._monthlyCarryOver').hide();
|
||||
}
|
||||
},
|
||||
function (code, rstData) { // 실패
|
||||
console.log("error : ", code);
|
||||
|
||||
Reference in New Issue
Block a user