| 
														
															@@ -4,7 +4,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <select id="selectByMonth" parameterType="java.util.List" resultType="org.jeecg.modules.viewClockIn.entity.bdClockinMonth"> 
														 | 
														
														 | 
														
															     <select id="selectByMonth" parameterType="java.util.List" resultType="org.jeecg.modules.viewClockIn.entity.bdClockinMonth"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        select c.sy_fund,c.is_salary,c.is_attendance,c.id personId,c.work_no personCode,c.realname personName,c.depart_ids,c.wages_one basePay, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        select m.sy_u8, c.depart_ids departId,c.category,c.sy_fund,c.is_salary,c.is_attendance,c.id personId,c.work_no personCode, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               c.realname personName,c.depart_ids,c.wages_one basePay, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                c.wages_two,c.security,c.wages_base,B.duration 
														 | 
														
														 | 
														
															                c.wages_two,c.security,c.wages_base,B.duration 
														 | 
													
												
											
												
													
														| 
														 | 
														
															              ,sj.holiday_time_sj,bj.holiday_time_bj 
														 | 
														
														 | 
														
															              ,sj.holiday_time_sj,bj.holiday_time_bj 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         from sys_user C left join  ( 
														 | 
														
														 | 
														
															         from sys_user C left join  ( 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -42,6 +43,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         group by user_id 
														 | 
														
														 | 
														
															         group by user_id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         ) bj on bj.user_id = C.id 
														 | 
														
														 | 
														
															         ) bj on bj.user_id = C.id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        left join bd_clockin_month m on c.id = m.person_id and m.month_time = #{nowDate} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         where C.del_flag='0' and C.info_sy in(2,3) 
														 | 
														
														 | 
														
															         where C.del_flag='0' and C.info_sy in(2,3) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         and c.employment_status = '10' 
														 | 
														
														 | 
														
															         and c.employment_status = '10' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <if test="userId != null and userId != '' and userId.size >0"> 
														 | 
														
														 | 
														
															           <if test="userId != null and userId != '' and userId.size >0"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -52,27 +55,6 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               ) 
														 | 
														
														 | 
														
															               ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           </if> 
														 | 
														
														 | 
														
															           </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-<!--        select a.view_date monthTime,a.years,a.months,a.realname personName,a.user_id personId,a.username personCode, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            sum(a.lateTime_s) latetimeS,sum(a.lateTime_x) latetimeX ,sum(a.duration) duration,sum(a.sj_time) holidayTime 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            from ( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                select realname,user_id,username,DATE_FORMAT(view_date,'%Y-%m') view_date, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    DATE_FORMAT(view_date,'%Y') years, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    DATE_FORMAT(view_date,'%m') months, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                case 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    when lateTime_s < 0 then 0 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    else lateTime_s 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                end lateTime_s, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                case 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    when lateTime_x < 0 then 0 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    else lateTime_x 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                end lateTime_x, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                duration, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                TIMESTAMPDIFF(day,holiday_start_date,holiday_end_date) sj_time, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                holiday_type,holiday_start_date,holiday_end_date from view_clock_in_1 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                where DATE_FORMAT(view_date,'%Y-%m') = #{nowDate} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            ) as a 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        group by a.realname,a.user_id,a.username,a.view_date,a.years,a.months 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															---> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     </select> 
														 | 
														
														 | 
														
															     </select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <select id="selectAllByMonth"  resultType="org.jeecg.modules.viewClockIn.entity.bdClockinMonth"> 
														 | 
														
														 | 
														
															     <select id="selectAllByMonth"  resultType="org.jeecg.modules.viewClockIn.entity.bdClockinMonth"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -87,8 +69,21 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </if> 
														 | 
														
														 | 
														
															         </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     </select> 
														 | 
														
														 | 
														
															     </select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    <select id="selectSyByMonth"  resultType="org.jeecg.modules.viewClockIn.entity.bdClockinMonth"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        select * from 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               bd_clockin_month where sy_u8 = 1 and is_salary ='0' and month_time = #{nowDate} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        <if test="userId != null and userId != '' and userId.length >0"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            and id in( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <foreach collection="userId" item="item" index="index" separator=","> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                #{item} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            </foreach> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    </select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <delete id="deleteByMonth"> 
														 | 
														
														 | 
														
															     <delete id="deleteByMonth"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        delete from bd_clockin_month where month_time = #{nowDate} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        delete from bd_clockin_month where sy_u8 = 0 and month_time = #{nowDate} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <if test="userId != null and userId != '' and userId.size >0"> 
														 | 
														
														 | 
														
															         <if test="userId != null and userId != '' and userId.size >0"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             and person_id in( 
														 | 
														
														 | 
														
															             and person_id in( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <foreach collection="userId" item="item" index="index" separator=","> 
														 | 
														
														 | 
														
															             <foreach collection="userId" item="item" index="index" separator=","> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -110,7 +105,21 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															              cPsn_Name ,<!--人员姓名--> 
														 | 
														
														 | 
														
															              cPsn_Name ,<!--人员姓名--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															              iYear,<!--工资年份 --> 
														 | 
														
														 | 
														
															              iYear,<!--工资年份 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															              iMonth,<!--工资月份 --> 
														 | 
														
														 | 
														
															              iMonth,<!--工资月份 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-             cDept_Num<!--部门编码 --> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             cDept_Num,<!--部门编码 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        <!-- iRecordID,不为空 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_1099,F_1100, F_1101,F_1102, F_1103,F_1104,F_1105,F_1106,F_1107,F_1108,F_1112,F_1113,F_1114,F_1115,F_1116,F_1117,F_1118, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_8,<!-- 基本工资--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_52,<!-- 基本工资2--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_10,<!--考勤天数--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        <!--  F_26,节假日加班小时数--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        <!--  F_29,病假天数--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        <!--  F_33, 平时加班结算小时数--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_51,<!-- 缴费基数--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_53,<!-- 工作天数--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_54,<!-- 工作天数1--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_55,<!-- 加班小时--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_56,<!-- 请假天数--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             F_58<!-- 公积金账号--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             ) 
														 | 
														
														 | 
														
															             ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         values 
														 | 
														
														 | 
														
															         values 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <foreach collection="list" item="item" index="index" separator=","> 
														 | 
														
														 | 
														
															         <foreach collection="list" item="item" index="index" separator=","> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -120,7 +129,19 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                #{item.personName}, 
														 | 
														
														 | 
														
															                #{item.personName}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                #{item.years}, 
														 | 
														
														 | 
														
															                #{item.years}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                #{item.months}, 
														 | 
														
														 | 
														
															                #{item.months}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-               '01' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               #{item.departId}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              <!--  '111',--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               '0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               #{item.basePay}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               #{item.basePay_2}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               #{item.workDay}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               '0.9', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               #{item.workDayReal}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               #{item.workDayReal_2}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               #{item.duration}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               #{item.holidayTimeSj}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+               #{item.syFund} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             ) 
														 | 
														
														 | 
														
															             ) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </foreach> 
														 | 
														
														 | 
														
															         </foreach> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     </insert> 
														 | 
														
														 | 
														
															     </insert> 
														 |