[BO] 일계부 등록 현황의 금일 데이터 없음

This commit is contained in:
김현주
2025-06-26 13:49:24 +09:00
parent 7e8c489ff5
commit 1f689376de
18 changed files with 537 additions and 33 deletions

View File

@@ -34,6 +34,7 @@
)
SELECT
dr.id AS id,
ddg.group_no AS day_group_no,
/* 해당 월의 말일을 기준으로 종료일을 제한하여 일자 그룹 표시 */
ddg.start_day ||
CASE

View File

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="app.module.admin.usecase.household.tab.dailyRecord.updateDailyNone.adapters.persistence.UpdateDailyNoneMapper">
<select id="getDailyRecordSeq">
select id
from daily_record
where is_deleted = false
and record_month = #{searchMonth}
and day_group_no = #{groupNo}
and household_seq = #{householdSeq}
</select>
<select id="removeDailyIncome">
<if test="dailyRecordSeq != null and dailyRecordSeq != ''">
update daily_income set
<include refid="common.fields.DeleteBaseSet"/>
where is_deleted = false
and daily_record_seq = #{dailyRecordSeq}
</if>
</select>
<select id="removeDailyWork">
<if test="dailyRecordSeq != null and dailyRecordSeq != ''">
update daily_work set
<include refid="common.fields.DeleteBaseSet"/>
where is_deleted = false
and daily_record_seq = #{dailyRecordSeq}
</if>
</select>
<select id="removeDailyExpense">
<if test="dailyRecordSeq != null and dailyRecordSeq != ''">
update daily_expense set
<include refid="common.fields.DeleteBaseSet"/>
where is_deleted = false
and daily_record_seq = #{dailyRecordSeq}
</if>
</select>
<select id="removeDailyPower">
<if test="dailyRecordSeq != null and dailyRecordSeq != ''">
update daily_power set
<include refid="common.fields.DeleteBaseSet"/>
where is_deleted = false
and daily_record_seq = #{dailyRecordSeq}
</if>
</select>
<select id="removeDailyForestry">
<if test="dailyRecordSeq != null and dailyRecordSeq != ''">
update daily_forestry set
<include refid="common.fields.DeleteBaseSet"/>
where is_deleted = false
and daily_record_seq = #{dailyRecordSeq}
</if>
</select>
<select id="removeDailyFarming">
<if test="dailyRecordSeq != null and dailyRecordSeq != ''">
update daily_farming set
<include refid="common.fields.DeleteBaseSet"/>
where is_deleted = false
and daily_record_seq = #{dailyRecordSeq}
</if>
</select>
</mapper>