old mode 100644
new mode 100755
| | |
| | | <!-- 保存考勤任务信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveAttendanceClassesTaskInfo" parameterType="Map"> |
| | | insert into attendance_classes_task( |
| | | class_id,task_month,task_day,state,store_id,task_year,task_id,staff_id |
| | | class_id,task_month,task_day,state,store_id,task_year,task_id,staff_id,staff_name |
| | | ) values ( |
| | | #{classId},#{taskMonth},#{taskDay},#{state},#{storeId},#{taskYear},#{taskId},#{staffId} |
| | | #{classId},#{taskMonth},#{taskDay},#{state},#{storeId},#{taskYear},#{taskId},#{staffId},#{staffName} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <select id="getAttendanceClassesTaskInfo" parameterType="Map" resultType="Map"> |
| | | select t.class_id,t.class_id classId,t.task_month,t.task_month taskMonth,t.task_day,t.task_day |
| | | taskDay,t.status_cd,t.status_cd statusCd,t.state,t.store_id,t.store_id storeId,t.task_year,t.task_year |
| | | taskYear,t.task_id,t.task_id taskId,t.staff_id,t.staff_id staffId,ac.classes_name classesName,ac.classes_obj_name classObjName |
| | | taskYear,t.task_id,t.task_id taskId,t.staff_id,t.staff_id staffId,t.staff_name,t.staff_name staffName,ac.classes_name classesName, |
| | | td.name stateName |
| | | from attendance_classes_task t |
| | | LEFT JOIN attendance_classes ac on t.class_id = ac.classes_id and ac.status_cd = '0' |
| | | left join t_dict td on td.table_name = 'attendance_classes_task' and td.table_columns = 'state' and t.state = td.status_cd |
| | | where 1 =1 |
| | | <if test="classId !=null and classId != ''"> |
| | | and t.class_id= #{classId} |
| | |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | and t.staff_id= #{staffId} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | and t.staff_name like concat('%',#{staffName},'%') |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | |
| | | </if> |
| | | <if test="staffId !=null and staffId != ''"> |
| | | , t.staff_id= #{staffId} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | , t.staff_name= #{staffName} |
| | | </if> |
| | | where 1=1 |
| | | <if test="taskId !=null and taskId != ''"> |
| | |
| | | <if test="staffId !=null and staffId != ''"> |
| | | and t.staff_id= #{staffId} |
| | | </if> |
| | | <if test="staffName !=null and staffName != ''"> |
| | | and t.staff_name like concat('%',#{staffName},'%') |
| | | </if> |
| | | |
| | | |
| | | </select> |