| 
					
				 | 
			
			
				@@ -10,8 +10,13 @@ public interface WindowsMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @param windows 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @Insert("INSERT INTO t_windows(dept_no,windows_no,print_index,zy_print_index,cg_print_index,user_id_code,ip_address, create_date,update_date,client_ip_address,mis_pos_router_code) VALUES " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "(#{deptNo,jdbcType=VARCHAR},#{windowsNo,jdbcType=INTEGER},#{printIndex,jdbcType=INTEGER},#{zyPrintIndex,jdbcType=INTEGER},#{cgPrintIndex,jdbcType=INTEGER},#{userIdCode,jdbcType=VARCHAR},#{ipAddress,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{updateDate,jdbcType=TIMESTAMP},#{clientIpAddress,jdbcType=VARCHAR},#{misPosRouterCode,jdbcType=VARCHAR})") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Insert("INSERT INTO t_windows(dept_no,windows_no,print_index,zy_print_index,cg_print_index,user_id_code,ip_address, " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "create_date,update_date,client_ip_address,mis_pos_router_code,normal_wrist_strap_print_index,child_wrist_strap_print_index) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "VALUES " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "(#{deptNo,jdbcType=VARCHAR},#{windowsNo,jdbcType=INTEGER},#{printIndex,jdbcType=INTEGER},#{zyPrintIndex,jdbcType=INTEGER}," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "#{cgPrintIndex,jdbcType=INTEGER},#{userIdCode,jdbcType=VARCHAR},#{ipAddress,jdbcType=VARCHAR}, " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "#{createDate,jdbcType=TIMESTAMP}, #{updateDate,jdbcType=TIMESTAMP},#{clientIpAddress,jdbcType=VARCHAR}," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "#{misPosRouterCode,jdbcType=VARCHAR},#{normalWristStrapPrintIndex,jdbcType=INTEGER},#{childWristStrapPrintIndex,jdbcType=INTEGER})") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     int insertUser(Windows windows); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -22,7 +27,9 @@ public interface WindowsMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Select({"<script>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "select id,dept_no,windows_no,print_index,zy_print_index,cg_print_index,user_id_code,ip_address, create_date,update_date,client_ip_address,mis_pos_router_code from t_windows where user_id_code= #{userIdCode,jdbcType=VARCHAR} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "select id,dept_no,windows_no,print_index,zy_print_index,cg_print_index,user_id_code,ip_address,create_date,update_date," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "client_ip_address,mis_pos_router_code,normal_wrist_strap_print_index,child_wrist_strap_print_index " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "from t_windows where user_id_code= #{userIdCode,jdbcType=VARCHAR} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "order by create_date desc limit 1", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "</script>"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     Windows selectLastWindowsByUserIdCode(@Param("userIdCode") String userIdCode); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -35,7 +42,9 @@ public interface WindowsMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Select({"<script>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "select id,dept_no,windows_no,print_index,zy_print_index,cg_print_index,user_id_code,ip_address, create_date,update_date,client_ip_address,mis_pos_router_code from t_windows where ip_address= #{ipAddress,jdbcType=VARCHAR} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "select id,dept_no,windows_no,print_index,zy_print_index,cg_print_index,user_id_code,ip_address, create_date," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "update_date,client_ip_address,mis_pos_router_code,normal_wrist_strap_print_index,child_wrist_strap_print_index " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "from t_windows where ip_address= #{ipAddress,jdbcType=VARCHAR} " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "order by create_date desc limit 1", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "</script>"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     Windows selectLastWindowsByIpAddress(@Param("ipAddress") String ipAddress); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -64,6 +73,12 @@ public interface WindowsMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "<when test='cgPrintIndex!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ",cg_print_index=#{cgPrintIndex,jdbcType=INTEGER}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='normalWristStrapPrintIndex!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",normal_wrist_strap_print_index=#{normalWristStrapPrintIndex,jdbcType=INTEGER}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='childWristStrapPrintIndex!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",child_wrist_strap_print_index=#{childWristStrapPrintIndex,jdbcType=INTEGER}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "<when test='ipAddress!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ",ip_address=#{ipAddress}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "</when>", 
			 |