liupeng 3 年 前
コミット
95ab4c14f7

+ 7 - 0
code/sapparent/sapservice/src/main/java/org/fouram/mapper/SapCheckMapper.xml

@@ -88,6 +88,13 @@
 		where a.userId = b.userId and a.checkinDay >= #{startDay} and a.checkinDay <= #{endDay}
 	</update>
 	
+	<update id="updateHrsdWorkTime">
+		update sap_check_report a 
+		set a.workTime = '10:00' 
+		where a.checkinDay >= #{startDay} and a.checkinDay &lt;= #{endDay}
+			and exists (select 1 from wx_user b where a.userId = b.userId and b.firstDepartName = '华人时代')
+	</update>
+	
 	<update id="updateNoNeedOffwork">
 		update sap_check_report a, sap_checkin_option b 
 		set a.noNeedOffwork = b.noNeedOffwork 

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/WxCheckService.java

@@ -175,7 +175,7 @@ public class WxCheckService extends BaseService {
 		update("SapCheckMapper.updateOffWorkTime", param);
 		
 		// 特殊处理华人时代打卡时间-可以迟到半小时
-//		update("SapCheckMapper.updateHrsdWorkTime", param);
+		update("SapCheckMapper.updateHrsdWorkTime", param);
 		
 		// 更新noNeedOffwork
 		update("SapCheckMapper.updateNoNeedOffwork", param);