SELECT t_1.pk_group pk_group,
t_1.otyear otyear,
t_1.otmonth otmonth,
t_1.name psnname,
t_1.overtimebegintime overtimebegintime,
t_1.overtimeendtime overtimeendtime,
t_1.overtimehour overtimehour,
t_1.acthour acthour,
t_1.pk_overtimetype pk_overtimetype,
t_1.timeitemname timeitemname,
t_1.holidayothour holidayothour,
t_1.beforedutyhour beforedutyhour,
t_1.dutyfreehour dutyfreehour,
t_1.dutyhour dutyhour,
(t_1.dutyfreehour + t_1.dutyhour) sumothour,
t_1.approve_state approve_state
FROM (SELECT psn.pk_group pk_group,
substr(b.overtimeendtime, 0, 4) otyear,
substr(b.overtimeendtime, 6, 2) otmonth,
psn.name name,
b.overtimebegintime overtimebegintime,
b.overtimeendtime overtimeendtime,
b.overtimehour overtimehour,
&n
t_1.otyear otyear,
t_1.otmonth otmonth,
t_1.name psnname,
t_1.overtimebegintime overtimebegintime,
t_1.overtimeendtime overtimeendtime,
t_1.overtimehour overtimehour,
t_1.acthour acthour,
t_1.pk_overtimetype pk_overtimetype,
t_1.timeitemname timeitemname,
t_1.holidayothour holidayothour,
t_1.beforedutyhour beforedutyhour,
t_1.dutyfreehour dutyfreehour,
t_1.dutyhour dutyhour,
(t_1.dutyfreehour + t_1.dutyhour) sumothour,
t_1.approve_state approve_state
FROM (SELECT psn.pk_group pk_group,
substr(b.overtimeendtime, 0, 4) otyear,
substr(b.overtimeendtime, 6, 2) otmonth,
psn.name name,
b.overtimebegintime overtimebegintime,
b.overtimeendtime overtimeendtime,
b.overtimehour overtimehour,
&n