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

mapper参数注解

parent 37e36c4c
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<modules> <modules>
<module>wisenergy-common</module> <module>wisenergy-common</module>
<module>wisenergy-model</module> <module>wisenergy-model</module>
<module>wisenergy-mapper</module> <module>wisenergy-mapper</module>
<module>wisenergy-service</module> <module>wisenergy-service</module>
<module>wisenergy-web-admin</module> <module>wisenergy-web-admin</module>
</modules> </modules>
......
...@@ -36,7 +36,7 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> { ...@@ -36,7 +36,7 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> {
* @param userId * @param userId
* @return * @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> { ...@@ -45,7 +45,7 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> {
* @param userId * @param userId
* @return * @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> { ...@@ -53,7 +53,7 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> {
* @param map * @param map
* @return * @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; ...@@ -2,6 +2,7 @@ package cn.wisenergy.mapper;
import cn.wisenergy.model.app.WorkUser; import cn.wisenergy.model.app.WorkUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.Map; import java.util.Map;
...@@ -15,16 +16,16 @@ import java.util.Map; ...@@ -15,16 +16,16 @@ import java.util.Map;
*/ */
public interface WorkUserMapper extends BaseMapper<WorkUser> { public interface WorkUserMapper extends BaseMapper<WorkUser> {
WorkUser getUserInfo(Map<String, Object> map); WorkUser getUserInfo(@Param("map") Map<String, Object> map);
/** /**
* 根据id获取用户一些基本信息 * 根据id获取用户一些基本信息
* @param userId * @param userId
* @return * @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