Commit 05277ce6 authored by nie'hong's avatar nie'hong

mapper参数注解

parent 94267e80
......@@ -26,34 +26,36 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> {
int save(WorkTimeOrder workTimeOrder);
int updateByIds(@Param("reviewerId") Integer reviewerId,@Param("ids") List<Integer> ids);
int updateByIds(@Param("reviewerId") Integer reviewerId, @Param("ids") List<Integer> ids);
int updateStatusById(Integer reviewerId,Integer id, String reason);
int updateStatusById(Integer reviewerId, Integer id, String reason);
List<WorkTimeOrder> queryByPage(@Param("status") Integer status, @Param("projectId") Integer projectId, @Param("types") List<Integer> types);
List<WorkTimeOrder> queryByPage(@Param("status") Integer status,@Param("projectId") Integer projectId,@Param("types") List<Integer> types);
/**
* 根据填报项目类型获取次数和工时汇总
*
* @param userId
* @return
*/
MonthlyWorkingHoursStatistics statisticsByProjectType(@Param("userId") Integer userId,@Param("projectType") Integer projectType,@Param("currentMonthFirstDay") String currentMonthFirstDay);
MonthlyWorkingHoursStatistics statisticsByProjectType(@Param("userId") Integer userId, @Param("projectType") Integer projectType, @Param("currentMonthFirstDay") String currentMonthFirstDay);
/**
*
* @param year
* @param month
* @param userId
* @return
*/
List<DayWorkTimeAndType> listByDateAndUserId(@Param("year") Integer year,@Param("month") Integer month,@Param("userId") Integer userId);
List<DayWorkTimeAndType> listByDateAndUserId(@Param("year") Integer year, @Param("month") Integer month, @Param("userId") Integer userId);
/**
* 根据条件获取大于某时间的工单数量
*
* @param map
* @return
*/
Integer getCountByCondition(@Param("map") Map<String, Object> map);
Integer getCountByCondition(Map<String, Object> map);
List<WorkTimeAndCostCollect> getWorkTimeAndCostCollect(@Param("projectIds") List<Integer> projectIds, @Param("firstDayOfMonth") Date firstDayOfMonth);
}
......@@ -2,7 +2,6 @@ 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;
......@@ -16,16 +15,16 @@ import java.util.Map;
*/
public interface WorkUserMapper extends BaseMapper<WorkUser> {
WorkUser getUserInfo(@Param("map") Map<String, Object> map);
WorkUser getUserInfo(Map<String, Object> map);
/**
* 根据id获取用户一些基本信息
* @param userId
* @return
*/
WorkUser getUserById(@Param("userId") Integer userId);
WorkUser getUserById(Integer userId);
Integer updateUserInfo(@Param("user") WorkUser user);
Integer updateUserInfo(WorkUser user);
}
......@@ -14,7 +14,7 @@
id, centre_name, centre_manager_id, create_time, modify_time
</sql>
<select id="getById" resultMap="BaseResultMap" parameterType="integer">
<select id="getByManagerId" resultMap="BaseResultMap" parameterType="integer">
select <include refid="vals"/>
from work_centre
where centre_manager_id = #{userId}
......
......@@ -17,6 +17,7 @@ public interface WorkUserService {
/**
* 用户登录
*
* @param loginName 登录名
* @param password 密码
* @param source 登录来源
......@@ -26,6 +27,7 @@ public interface WorkUserService {
/**
* 获取用户基础信息
*
* @param id 用户主键
* @return
*/
......@@ -37,10 +39,11 @@ public interface WorkUserService {
/**
* 将用户旧密码修改为新密码
* @param userId
* @param oldPassword
* @param newPassword
* @return
*
* @param userId 用户主键
* @param oldPassword 旧密码
* @param newPassword 新密码
* @return 用户传输对象
*/
ResultUser changePassword(Integer userId, String oldPassword, String newPassword);
}
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