Commit 94267e80 authored by nie'hong's avatar nie'hong

mapper参数注解

parent 37e36c4c
......@@ -36,7 +36,7 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> {
* @param userId
* @return
*/
MonthlyWorkingHoursStatistics statisticsByProjectType(Integer userId, Integer projectType, String currentMonthFirstDay);
MonthlyWorkingHoursStatistics statisticsByProjectType(@Param("userId") Integer userId,@Param("projectType") Integer projectType,@Param("currentMonthFirstDay") String currentMonthFirstDay);
/**
*
......@@ -45,7 +45,7 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> {
* @param userId
* @return
*/
List<DayWorkTimeAndType> listByDateAndUserId(Integer year, Integer month, Integer userId);
List<DayWorkTimeAndType> listByDateAndUserId(@Param("year") Integer year,@Param("month") Integer month,@Param("userId") Integer userId);
/**
......@@ -53,7 +53,7 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> {
* @param map
* @return
*/
Integer getCountByCondition(Map<String, Object> map);
Integer getCountByCondition(@Param("map") Map<String, Object> map);
List<WorkTimeAndCostCollect> getWorkTimeAndCostCollect(List<Integer> projectIds, Date firstDayOfMonth);
List<WorkTimeAndCostCollect> getWorkTimeAndCostCollect(@Param("projectIds") List<Integer> projectIds, @Param("firstDayOfMonth") Date firstDayOfMonth);
}
......@@ -2,6 +2,7 @@ package cn.wisenergy.mapper;
import cn.wisenergy.model.app.WorkUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.Map;
......@@ -15,16 +16,16 @@ import java.util.Map;
*/
public interface WorkUserMapper extends BaseMapper<WorkUser> {
WorkUser getUserInfo(Map<String, Object> map);
WorkUser getUserInfo(@Param("map") Map<String, Object> map);
/**
* 根据id获取用户一些基本信息
* @param userId
* @return
*/
WorkUser getUserById(Integer userId);
WorkUser getUserById(@Param("userId") Integer userId);
Integer updateUserInfo(WorkUser user);
Integer updateUserInfo(@Param("user") WorkUser user);
}
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