Commit 91c7df25 by lal Committed by chenzg

挺好

parent 7a655478
......@@ -26,6 +26,7 @@ public interface AttendanceWeeklySchMapper {
List<AttendanceWeeklySch> selectAttWeeklySchByKqzid(Integer kqzid);
List<AttendanceWeeklySch> selectAttendanceMadeByUserid(Integer userid,Integer qyid);
List<AttendanceWeeklySch> selectAttendanceMadeByZhou(Integer userid,Integer qyid);
AttendanceWeeklySch selectZhouDetail(Integer kqzid,Integer type);
......
......@@ -146,6 +146,23 @@
and zpb.bcid != 0
</select>
<select id="selectAttendanceMadeByZhou" resultMap="BaseResultMap">
select zpb.*,
case zpb.type
WHEN 1 then '星期一'
WHEN 2 then '星期二'
WHEN 3 then '星期三'
WHEN 4 then '星期四'
WHEN 5 then '星期五'
WHEN 6 then '星期六'
WHEN 7 then '星期日'
else '自由工时'
end as wekmc
from kqgl_asso_zhoupaiban zpb
where zpb.kqzid = (select yhkqz.kqzid from kqgl_asso_yhkqz yhkqz
where yhkqz.userid = #{userid} and yhkqz.qyid = #{qyid})
</select>
<select id="selectZhouDetail" resultMap="BaseResultMap">
select * from kqgl_asso_zhoupaiban zpb
where zpb.kqzid = #{kqzid,jdbcType=INTEGER}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment