| 
						
						
							
								
							
						
						
					 | 
					@ -3,7 +3,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
					 | 
					 | 
					PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
					 | 
					 | 
					"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					<mapper namespace="com.zc.business.mapper.DcShiftsMapper"> | 
					 | 
					 | 
					<mapper namespace="com.zc.business.mapper.DcShiftsMapper"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					     | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    <resultMap type="DcShifts" id="DcShiftsResult"> | 
					 | 
					 | 
					    <resultMap type="DcShifts" id="DcShiftsResult"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <result property="id"    column="id"    /> | 
					 | 
					 | 
					        <result property="id"    column="id"    /> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -30,9 +30,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    </sql> | 
					 | 
					 | 
					    </sql> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <select id="selectDcShiftsList" parameterType="DcShifts" resultMap="DcShiftsResult"> | 
					 | 
					 | 
					    <select id="selectDcShiftsList" parameterType="DcShifts" resultMap="DcShiftsResult"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        select DISTINCT shifts.id, | 
					 | 
					 | 
					        select shifts.id, shifts.employees_id,shifts.station, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        shifts.station,organization.organization_name, | 
					 | 
					 | 
					        employees.name,employees.contact_number,post.post_name,organization.organization_name, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        shifts.date, shifts.start_time, shifts.end_time, | 
					 | 
					 | 
					        shifts.date, shifts.start_time, shifts.end_time,shifts.scheduling, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        shifts.remark, shifts.create_time, shifts.update_time from dc_shifts as shifts | 
					 | 
					 | 
					        shifts.remark, shifts.create_time, shifts.update_time from dc_shifts as shifts | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        left join  dc_employees  as employees on employees.id=shifts.employees_id | 
					 | 
					 | 
					        left join  dc_employees  as employees on employees.id=shifts.employees_id | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        left join sys_post as post on employees.post_id=post.post_id | 
					 | 
					 | 
					        left join sys_post as post on employees.post_id=post.post_id | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        GROUP BY shifts.date,shifts.station | 
					 | 
					 | 
					        GROUP BY shifts.date,shifts.station | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     order by shifts.date desc | 
					 | 
					 | 
					     order by shifts.date desc | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    </select> | 
					 | 
					 | 
					    </select> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					     | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    <select id="selectDcShiftsById" parameterType="Long" resultMap="DcShiftsResult"> | 
					 | 
					 | 
					    <select id="selectDcShiftsById" parameterType="Long" resultMap="DcShiftsResult"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <include refid="selectDcShiftsVo"/> | 
					 | 
					 | 
					        <include refid="selectDcShiftsVo"/> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        where shifts.id = #{id} | 
					 | 
					 | 
					        where shifts.id = #{id} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -182,9 +182,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    </delete> | 
					 | 
					 | 
					    </delete> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <delete id="deleteDcShiftsByIds" parameterType="String"> | 
					 | 
					 | 
					    <delete id="deleteDcShiftsByIds" parameterType="String"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        delete from dc_shifts where id in  | 
					 | 
					 | 
					        delete from dc_shifts where id in | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        <foreach item="id" collection="array" open="(" separator="," close=")"> | 
					 | 
					 | 
					        <foreach item="id" collection="array" open="(" separator="," close=")"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            #{id} | 
					 | 
					 | 
					            #{id} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        </foreach> | 
					 | 
					 | 
					        </foreach> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    </delete> | 
					 | 
					 | 
					    </delete> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					</mapper> | 
					 | 
					 | 
					</mapper> | 
				
			
			
				
				
			
		
	
		
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					
  |