Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
e0a89967
Commit
e0a89967
authored
Apr 29, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查询操作人信息
parent
e8631987
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
15 deletions
+56
-15
MaterialManagementApi.java
...n/java/com/yxproject/start/api/MaterialManagementApi.java
+32
-15
MaterialManagementMapper.java
.../com/yxproject/start/mapper/MaterialManagementMapper.java
+10
-0
MaterialManagementService.java
...om/yxproject/start/service/MaterialManagementService.java
+3
-0
MaterialManagementServiceImpl.java
...ect/start/service/impl/MaterialManagementServiceImpl.java
+11
-0
No files found.
src/main/java/com/yxproject/start/api/MaterialManagementApi.java
View file @
e0a89967
...
...
@@ -155,14 +155,14 @@ public class MaterialManagementApi {
* 查询卡基报表统计数据
* @param beginDate 开始时间
* @param endDate 结束时间
* @param
typeCod
e 出入库类型
* @param
operateTyp
e 出入库类型
* @param name 操作人
* @param cardBodyType 卡体类型
* @return
*/
@RequestMapping
(
"queryCardBodyReport"
)
public
Map
<
String
,
Object
>
queryCardBodyReport
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"
typeCode"
)
String
typeCod
e
,
@Param
(
"name"
)
String
name
,
@Param
(
"cardBodyType"
)
String
cardBodyType
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
Map
<
String
,
Object
>
map
=
materialManagementService
.
selectCardBodyReport
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCod
e
,
name
,
cardBodyType
,(
Long
.
valueOf
(
currPage
)-
1
)*
Long
.
valueOf
(
pageSize
)+
1
,
Long
.
valueOf
(
currPage
)*
Long
.
valueOf
(
pageSize
));
public
Map
<
String
,
Object
>
queryCardBodyReport
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"
operateType"
)
String
operateTyp
e
,
@Param
(
"name"
)
String
name
,
@Param
(
"cardBodyType"
)
String
cardBodyType
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
Map
<
String
,
Object
>
map
=
materialManagementService
.
selectCardBodyReport
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
operateTyp
e
,
name
,
cardBodyType
,(
Long
.
valueOf
(
currPage
)-
1
)*
Long
.
valueOf
(
pageSize
)+
1
,
Long
.
valueOf
(
currPage
)*
Long
.
valueOf
(
pageSize
));
return
map
;
}
...
...
@@ -171,27 +171,38 @@ public class MaterialManagementApi {
* 查询卡基报表统计数量
* @param beginDate 开始时间
* @param endDate 结束时间
* @param
typeCod
e 出入库类型
* @param
operateTyp
e 出入库类型
* @param name 操作人
* @param cardBodyType 卡体类型
* @return
*/
@RequestMapping
(
"queryCardBodyReportCount"
)
public
int
queryCardBodyReportCount
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"
typeCode"
)
String
typeCod
e
,
@Param
(
"name"
)
String
name
,
@Param
(
"cardBodyType"
)
String
cardBodyType
){
int
i
=
materialManagementService
.
selectCardBodyReportCount
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCod
e
,
name
,
cardBodyType
);
public
int
queryCardBodyReportCount
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"
operateType"
)
String
operateTyp
e
,
@Param
(
"name"
)
String
name
,
@Param
(
"cardBodyType"
)
String
cardBodyType
){
int
i
=
materialManagementService
.
selectCardBodyReportCount
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
operateTyp
e
,
name
,
cardBodyType
);
return
i
;
}
/**
* 查询卡基操作人
*/
@RequestMapping
(
"queryCardBodyOperation"
)
public
List
<
Map
<
String
,
Object
>>
queryCardBodyOperation
(){
List
<
Map
<
String
,
Object
>>
maps
=
materialManagementService
.
selectCardBodyOperation
();
return
maps
;
}
/**
* 查询膜报表统计数据
* @param beginDate
* @param endDate
* @param beginDate 开始时间
* @param endDate 结束时间
* @param operateType 出入库类型
* @param name 操作人
* @return
*/
@RequestMapping
(
"queryPlasticFilmReport"
)
public
Map
<
String
,
Object
>
queryPlasticFilmReport
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"
typeCode"
)
String
typeCod
e
,
@Param
(
"name"
)
String
name
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
Map
<
String
,
Object
>
map
=
materialManagementService
.
selectPlasticFilmReport
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCod
e
,
name
,(
Long
.
valueOf
(
currPage
)-
1
)*
Long
.
valueOf
(
pageSize
)+
1
,
Long
.
valueOf
(
currPage
)*
Long
.
valueOf
(
pageSize
));
public
Map
<
String
,
Object
>
queryPlasticFilmReport
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"
operateType"
)
String
operateTyp
e
,
@Param
(
"name"
)
String
name
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
Map
<
String
,
Object
>
map
=
materialManagementService
.
selectPlasticFilmReport
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
operateTyp
e
,
name
,(
Long
.
valueOf
(
currPage
)-
1
)*
Long
.
valueOf
(
pageSize
)+
1
,
Long
.
valueOf
(
currPage
)*
Long
.
valueOf
(
pageSize
));
return
map
;
}
...
...
@@ -199,20 +210,26 @@ public class MaterialManagementApi {
* 查询膜报表统计数量
* @param beginDate 开始时间
* @param endDate 结束时间
* @param
typeCod
e 出入库类型
* @param
operateTyp
e 出入库类型
* @param name 操作人
* @return
*/
@RequestMapping
(
"queryPlasticFilmReportCount"
)
public
int
queryPlasticFilmReportCount
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"
typeCode"
)
String
typeCod
e
,
@Param
(
"name"
)
String
name
){
int
i
=
materialManagementService
.
selectPlasticFilmReportCount
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCod
e
,
name
);
public
int
queryPlasticFilmReportCount
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"
operateType"
)
String
operateTyp
e
,
@Param
(
"name"
)
String
name
){
int
i
=
materialManagementService
.
selectPlasticFilmReportCount
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
operateTyp
e
,
name
);
return
i
;
}
/**
* 查询膜操作人
*/
@RequestMapping
(
"queryCardBodyOperation"
)
public
List
<
Map
<
String
,
Object
>>
queryPlasticFilmOperation
(){
List
<
Map
<
String
,
Object
>>
maps
=
materialManagementService
.
selectPlasticFilmOperation
();
return
maps
;
}
/**
* 去除字符串中中线
...
...
src/main/java/com/yxproject/start/mapper/MaterialManagementMapper.java
View file @
e0a89967
...
...
@@ -190,4 +190,14 @@ public interface MaterialManagementMapper {
"from (select name,CARD_TYPE,to_Char(SAVE_DATE,'yyyyMMdd') save_date, decode(card_type,2,0,total_count) count1 ,decode(card_type,1,0,total_count) count2 from PLASTIC_FILM)"
)
public
List
<
Map
<
String
,
Object
>>
selectPlasticFilmTotalCount
();
@Select
(
"select user_info.* from user_info \n"
+
"left join SYS_USER_ROLE on SYS_USER_ROLE.USER_ID = user_info.ID\n"
+
"where SYS_USER_ROLE.ROLE_ID = 33 or SYS_USER_ROLE.ROLE_ID = 33"
)
public
List
<
Map
<
String
,
Object
>>
selectCardBodyOperation
();
@Select
(
"select user_info.* from user_info \n"
+
"left join SYS_USER_ROLE on SYS_USER_ROLE.USER_ID = user_info.ID\n"
+
"where SYS_USER_ROLE.ROLE_ID = 31 or SYS_USER_ROLE.ROLE_ID = 31"
)
public
List
<
Map
<
String
,
Object
>>
selectPlasticFilmOperation
();
}
src/main/java/com/yxproject/start/service/MaterialManagementService.java
View file @
e0a89967
...
...
@@ -41,4 +41,7 @@ public interface MaterialManagementService {
public
int
selectPlasticFilmReportCount
(
String
beginDate
,
String
endDate
,
String
typeCode
,
String
name
);
public
List
<
Map
<
String
,
Object
>>
selectCardBodyOperation
();
public
List
<
Map
<
String
,
Object
>>
selectPlasticFilmOperation
();
}
src/main/java/com/yxproject/start/service/impl/MaterialManagementServiceImpl.java
View file @
e0a89967
...
...
@@ -144,4 +144,15 @@ public class MaterialManagementServiceImpl implements MaterialManagementService
List
<
Map
<
String
,
Object
>>
maps
=
materialManagementMapper
.
selectPlasticFilmReportCount
(
beginDate
,
endDate
,
typeCode
,
name
);
return
maps
.
size
();
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectCardBodyOperation
()
{
List
<
Map
<
String
,
Object
>>
maps
=
materialManagementMapper
.
selectCardBodyOperation
();
return
maps
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectPlasticFilmOperation
()
{
List
<
Map
<
String
,
Object
>>
maps
=
materialManagementMapper
.
selectPlasticFilmOperation
();
return
maps
;
}
}
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