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
94267e80
Commit
94267e80
authored
Jan 22, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapper参数注解
parent
37e36c4c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
pom.xml
pom.xml
+1
-1
WorkTimeOrderMapper.java
...rc/main/java/cn/wisenergy/mapper/WorkTimeOrderMapper.java
+4
-4
WorkUserMapper.java
...per/src/main/java/cn/wisenergy/mapper/WorkUserMapper.java
+4
-3
No files found.
pom.xml
View file @
94267e80
...
...
@@ -18,7 +18,7 @@
<modules>
<module>
wisenergy-common
</module>
<module>
wisenergy-model
</module>
<module>
wisenergy-mapper
</module>
<module>
wisenergy-mapper
</module>
<module>
wisenergy-service
</module>
<module>
wisenergy-web-admin
</module>
</modules>
...
...
wisenergy-mapper/src/main/java/cn/wisenergy/mapper/WorkTimeOrderMapper.java
View file @
94267e80
...
...
@@ -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
);
}
wisenergy-mapper/src/main/java/cn/wisenergy/mapper/WorkUserMapper.java
View file @
94267e80
...
...
@@ -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
);
}
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