insert into daily_work (
daily_record_seq
, item_name, work_name
, work_land_area, area_unit_code, area_unit_self, harvest_quantity, harvest_unit_code, harvest_unit_self
, owner_time, spouse_time, family_m_hours, family_f_hours, hired_m_hours, hired_f_hours, shared_m_hours, shared_f_hours, volunteer_m_hours, volunteer_f_hours
, is_deleted
,
) values (
#{dailyRecordSeq}
, #{itemName}, #{workName}
, #{workLandArea}, #{areaUnitCode}, #{areaUnitSelf}, #{harvestQuantity}, #{harvestUnitCode}, #{harvestUnitSelf}
, #{ownerTime}, #{spouseTime}, #{familyMHours}, #{familyFHours}, #{hiredMHours}, #{hiredFHours}, #{sharedMHours}, #{sharedFHours}, #{volunteerMHours}, #{volunteerFHours}
, false
,
)
update daily_work set
, item_name = #{itemName}
, work_name = #{workName}
, work_land_area = #{workLandArea}
, area_unit_code = #{areaUnitCode}
, area_unit_self = #{areaUnitSelf}
, harvest_quantity = #{harvestQuantity}
, harvest_unit_code = #{harvestUnitCode}
, harvest_unit_self = #{harvestUnitSelf}
, owner_time = #{ownerTime}
, spouse_time = #{spouseTime}
, family_m_hours = #{familyMHours}
, family_f_hours = #{familyFHours}
, hired_m_hours = #{hiredMHours}
, hired_f_hours = #{hiredFHours}
, shared_m_hours = #{sharedMHours}
, shared_f_hours = #{sharedFHours}
, volunteer_m_hours = #{volunteerMHours}
, volunteer_f_hours = #{volunteerFHours}
where is_deleted = false
and daily_record_seq = #{dailyRecordSeq}
and id = #{id}
update daily_work set
where is_deleted = false
and daily_record_seq = #{dailyRecordSeq}
and id = #{id}