Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
work_service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
work_service
Commits
05277ce6
Commit
05277ce6
authored
Jan 22, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapper参数注解
parent
94267e80
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
21 deletions
+25
-21
WorkTimeOrderMapper.java
...rc/main/java/cn/wisenergy/mapper/WorkTimeOrderMapper.java
+10
-8
WorkUserMapper.java
...per/src/main/java/cn/wisenergy/mapper/WorkUserMapper.java
+3
-4
WorkCentreMapper.xml
...rgy-mapper/src/main/resources/mapper/WorkCentreMapper.xml
+1
-1
WorkUserService.java
...e/src/main/java/cn/wisenergy/service/WorkUserService.java
+11
-8
No files found.
wisenergy-mapper/src/main/java/cn/wisenergy/mapper/WorkTimeOrderMapper.java
View file @
05277ce6
...
@@ -26,34 +26,36 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> {
...
@@ -26,34 +26,36 @@ public interface WorkTimeOrderMapper extends BaseMapper<WorkTimeOrder> {
int
save
(
WorkTimeOrder
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
* @param userId
* @return
* @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 year
* @param month
* @param month
* @param userId
* @param userId
* @return
* @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
* @param map
* @return
* @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
);
List
<
WorkTimeAndCostCollect
>
getWorkTimeAndCostCollect
(
@Param
(
"projectIds"
)
List
<
Integer
>
projectIds
,
@Param
(
"firstDayOfMonth"
)
Date
firstDayOfMonth
);
}
}
wisenergy-mapper/src/main/java/cn/wisenergy/mapper/WorkUserMapper.java
View file @
05277ce6
...
@@ -2,7 +2,6 @@ package cn.wisenergy.mapper;
...
@@ -2,7 +2,6 @@ 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
;
...
@@ -16,16 +15,16 @@ import java.util.Map;
...
@@ -16,16 +15,16 @@ import java.util.Map;
*/
*/
public
interface
WorkUserMapper
extends
BaseMapper
<
WorkUser
>
{
public
interface
WorkUserMapper
extends
BaseMapper
<
WorkUser
>
{
WorkUser
getUserInfo
(
@Param
(
"map"
)
Map
<
String
,
Object
>
map
);
WorkUser
getUserInfo
(
Map
<
String
,
Object
>
map
);
/**
/**
* 根据id获取用户一些基本信息
* 根据id获取用户一些基本信息
* @param userId
* @param userId
* @return
* @return
*/
*/
WorkUser
getUserById
(
@Param
(
"userId"
)
Integer
userId
);
WorkUser
getUserById
(
Integer
userId
);
Integer
updateUserInfo
(
@Param
(
"user"
)
WorkUser
user
);
Integer
updateUserInfo
(
WorkUser
user
);
}
}
wisenergy-mapper/src/main/resources/mapper/WorkCentreMapper.xml
View file @
05277ce6
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
id, centre_name, centre_manager_id, create_time, modify_time
id, centre_name, centre_manager_id, create_time, modify_time
</sql>
</sql>
<select
id=
"getById"
resultMap=
"BaseResultMap"
parameterType=
"integer"
>
<select
id=
"getBy
Manager
Id"
resultMap=
"BaseResultMap"
parameterType=
"integer"
>
select
<include
refid=
"vals"
/>
select
<include
refid=
"vals"
/>
from work_centre
from work_centre
where centre_manager_id = #{userId}
where centre_manager_id = #{userId}
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/WorkUserService.java
View file @
05277ce6
...
@@ -17,6 +17,7 @@ public interface WorkUserService {
...
@@ -17,6 +17,7 @@ public interface WorkUserService {
/**
/**
* 用户登录
* 用户登录
*
* @param loginName 登录名
* @param loginName 登录名
* @param password 密码
* @param password 密码
* @param source 登录来源
* @param source 登录来源
...
@@ -26,6 +27,7 @@ public interface WorkUserService {
...
@@ -26,6 +27,7 @@ public interface WorkUserService {
/**
/**
* 获取用户基础信息
* 获取用户基础信息
*
* @param id 用户主键
* @param id 用户主键
* @return
* @return
*/
*/
...
@@ -37,10 +39,11 @@ public interface WorkUserService {
...
@@ -37,10 +39,11 @@ public interface WorkUserService {
/**
/**
* 将用户旧密码修改为新密码
* 将用户旧密码修改为新密码
* @param userId
*
* @param oldPassword
* @param userId 用户主键
* @param newPassword
* @param oldPassword 旧密码
* @return
* @param newPassword 新密码
* @return 用户传输对象
*/
*/
ResultUser
changePassword
(
Integer
userId
,
String
oldPassword
,
String
newPassword
);
ResultUser
changePassword
(
Integer
userId
,
String
oldPassword
,
String
newPassword
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment