UserAttendanceTotalDao.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. package cn.com.lzt.userattendancetotal.dao;
  2. import java.util.List;
  3. import org.jeecgframework.minidao.annotation.MiniDao;
  4. import org.jeecgframework.minidao.annotation.Param;
  5. import org.jeecgframework.minidao.annotation.Sql;
  6. import cn.com.lzt.userattendancetotal.entity.UserAttendanceTotalEntity;
  7. @MiniDao
  8. public interface UserAttendanceTotalDao {
  9. /**
  10. * 查询员工的工资策略
  11. * @param userid
  12. * @param monthly
  13. * @return
  14. */
  15. @Sql("select * from t_bus_user_attendance_total where user_id = :userid and yearmonth = :monthly")
  16. public List<UserAttendanceTotalEntity> getByuserid(@Param("userid")String userid,@Param("monthly")String monthly);
  17. /**
  18. *
  19. * @author hualong.zhao
  20. * @date 2018-1-29
  21. * @param yearmonth
  22. * @return
  23. */
  24. @Sql(" DELETE FROM t_bus_user_attendance_detail"+
  25. " where attendance_id in ("+
  26. " SELECT id FROM t_bus_user_attendance_total"+
  27. " where yearmonth = :yearmonth"+
  28. " )")
  29. public Integer deleteUserAttendanceDetail( @Param("yearmonth")String yearmonth);
  30. /**
  31. *
  32. * @author hualong.zhao
  33. * @date 2018-1-29
  34. * @param yearmonth
  35. * @return
  36. */
  37. @Sql("DELETE FROM t_bus_user_attendance_total where yearmonth =:yearmonth")
  38. public Integer deleteUserAttendanceTotal( @Param("yearmonth") String yearmonth);
  39. /**
  40. *
  41. * @author hualong.zhao
  42. * @date 2018-1-29
  43. * @param yearmonth
  44. * @return
  45. */
  46. @Sql(" UPDATE t_bus_user_attendance_detail SET YMD_DATE='1999-10-10'"+
  47. " where attendance_id in ("+
  48. " SELECT id FROM t_bus_user_attendance_total"+
  49. " where yearmonth = :yearmonth"+
  50. " )")
  51. public Integer updateExpiredUserAttendanceDetail( @Param("yearmonth")String yearmonth);
  52. /**
  53. *
  54. * @author hualong.zhao
  55. * @date 2018-1-29
  56. * @param yearmonth
  57. * @return
  58. */
  59. @Sql("UPDATE t_bus_user_attendance_total SET YEARMONTH='1999-10' where yearmonth =:yearmonth")
  60. public Integer updateExpiredUserAttendanceTotal( @Param("yearmonth") String yearmonth);
  61. /**
  62. *
  63. * @author hualong.zhao
  64. * @date 2018-1-29
  65. * @param yearmonth
  66. * @return
  67. */
  68. @Sql(" DELETE FROM t_bus_user_attendance_detail"+
  69. " where attendance_id in ("+
  70. " SELECT id FROM t_bus_user_attendance_total"+
  71. " where user_id=:userid and yearmonth = :yearmonth"+
  72. " )")
  73. public Integer deleteUserAttendanceDetailByUserId(@Param("userid")String userid, @Param("yearmonth")String yearmonth);
  74. /**
  75. *
  76. * @author hualong.zhao
  77. * @date 2018-1-29
  78. * @param yearmonth
  79. * @return
  80. */
  81. @Sql("DELETE FROM t_bus_user_attendance_total where yearmonth =:yearmonth and user_id=:userid")
  82. public Integer deleteUserAttendanceTotalByUserId(@Param("userid")String userid, @Param("yearmonth") String yearmonth);
  83. /**
  84. *
  85. * @author hualong.zhao
  86. * @date 2018-1-29
  87. * @param yearmonth
  88. * @return
  89. */
  90. @Sql(" UPDATE t_bus_user_attendance_detail SET YMD_DATE='1999-10-10'"+
  91. " where attendance_id in ("+
  92. " SELECT id FROM t_bus_user_attendance_total"+
  93. " where user_id=:userid and yearmonth = :yearmonth"+
  94. " )")
  95. public Integer updateExpiredUserAttendanceDetailByUserId(@Param("userid")String userid, @Param("yearmonth")String yearmonth);
  96. /**
  97. *
  98. * @author hualong.zhao
  99. * @date 2018-1-29
  100. * @param yearmonth
  101. * @return
  102. */
  103. @Sql("UPDATE t_bus_user_attendance_total SET YEARMONTH='1999-10' where yearmonth =:yearmonth and user_id=:userid")
  104. public Integer updateExpiredUserAttendanceTotalByUserId(@Param("userid")String userid, @Param("yearmonth") String yearmonth);
  105. }