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
b9c5f0df
Commit
b9c5f0df
authored
Apr 26, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询卡机统计报表详情 添加卡机类型
parent
c32367e0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
MaterialManagementApi.java
...n/java/com/yxproject/start/api/MaterialManagementApi.java
+2
-2
MaterialManagementMapper.java
.../com/yxproject/start/mapper/MaterialManagementMapper.java
+4
-1
MaterialManagementService.java
...om/yxproject/start/service/MaterialManagementService.java
+1
-1
MaterialManagementServiceImpl.java
...ect/start/service/impl/MaterialManagementServiceImpl.java
+2
-2
No files found.
src/main/java/com/yxproject/start/api/MaterialManagementApi.java
View file @
b9c5f0df
...
@@ -76,9 +76,9 @@ public class MaterialManagementApi {
...
@@ -76,9 +76,9 @@ public class MaterialManagementApi {
* @return
* @return
*/
*/
@RequestMapping
(
"selectCardBodyManagement"
)
@RequestMapping
(
"selectCardBodyManagement"
)
public
Map
<
String
,
Object
>
selectCardBodyManagement
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"typeCode"
)
String
typeCode
,
@Param
(
"name"
)
String
name
){
public
Map
<
String
,
Object
>
selectCardBodyManagement
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"typeCode"
)
String
typeCode
,
@Param
(
"name"
)
String
name
,
@Param
(
"cardBodyType"
)
String
cardBodyType
){
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
List
<
CardBodyEntity
>
cardBodyEntities
=
materialManagementService
.
selectCardBody
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCode
,
name
);
List
<
CardBodyEntity
>
cardBodyEntities
=
materialManagementService
.
selectCardBody
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCode
,
name
,
cardBodyType
);
String
cardCount1
=
materialManagementService
.
selectCardCount1
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCode
,
name
);
String
cardCount1
=
materialManagementService
.
selectCardCount1
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCode
,
name
);
String
cardCount2
=
materialManagementService
.
selectCardCount2
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCode
,
name
);
String
cardCount2
=
materialManagementService
.
selectCardCount2
(
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
typeCode
,
name
);
resultMap
.
put
(
"cardBody"
,
cardBodyEntities
);
resultMap
.
put
(
"cardBody"
,
cardBodyEntities
);
...
...
src/main/java/com/yxproject/start/mapper/MaterialManagementMapper.java
View file @
b9c5f0df
...
@@ -62,8 +62,11 @@ public interface MaterialManagementMapper {
...
@@ -62,8 +62,11 @@ public interface MaterialManagementMapper {
"<if test='typeCode != 0 '>"
+
"<if test='typeCode != 0 '>"
+
" and card_type =#{typeCode} "
+
" and card_type =#{typeCode} "
+
"</if>"
+
"</if>"
+
"<if test='cardBodyType != 0 '>"
+
" and card_Body_Type =#{cardBodyType} "
+
"</if>"
+
"</script>"
)
"</script>"
)
public
List
<
CardBodyEntity
>
selectCardBody
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"typeCode"
)
String
typeCode
,
@Param
(
"name"
)
String
name
);
public
List
<
CardBodyEntity
>
selectCardBody
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"typeCode"
)
String
typeCode
,
@Param
(
"name"
)
String
name
,
@Param
(
"cardBodyType"
)
String
cardBodyType
);
@Select
(
"<script>"
+
@Select
(
"<script>"
+
"select sum(TOTAL_COUNT) cardType1 from CARD_BODY where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and CARD_TYPE=1"
+
"select sum(TOTAL_COUNT) cardType1 from CARD_BODY where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and CARD_TYPE=1"
+
...
...
src/main/java/com/yxproject/start/service/MaterialManagementService.java
View file @
b9c5f0df
...
@@ -16,7 +16,7 @@ public interface MaterialManagementService {
...
@@ -16,7 +16,7 @@ public interface MaterialManagementService {
public
boolean
insertCardBody
(
@Param
(
"cardType"
)
String
cardType
,
@Param
(
"totalCount"
)
String
totalCount
,
@Param
(
"note"
)
String
note
,
String
name
,
String
cardBodyType
);
public
boolean
insertCardBody
(
@Param
(
"cardType"
)
String
cardType
,
@Param
(
"totalCount"
)
String
totalCount
,
@Param
(
"note"
)
String
note
,
String
name
,
String
cardBodyType
);
public
List
<
CardBodyEntity
>
selectCardBody
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
String
typeCode
,
String
name
);
public
List
<
CardBodyEntity
>
selectCardBody
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
String
typeCode
,
String
name
,
String
cardBodyType
);
public
String
selectFilmCount1
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
String
typeCode
,
String
name
);
public
String
selectFilmCount1
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
String
typeCode
,
String
name
);
...
...
src/main/java/com/yxproject/start/service/impl/MaterialManagementServiceImpl.java
View file @
b9c5f0df
...
@@ -34,8 +34,8 @@ public class MaterialManagementServiceImpl implements MaterialManagementService
...
@@ -34,8 +34,8 @@ public class MaterialManagementServiceImpl implements MaterialManagementService
}
}
@Override
@Override
public
List
<
CardBodyEntity
>
selectCardBody
(
String
beginDate
,
String
endDate
,
String
typeCode
,
String
name
)
{
public
List
<
CardBodyEntity
>
selectCardBody
(
String
beginDate
,
String
endDate
,
String
typeCode
,
String
name
,
String
cardBodyType
)
{
List
<
CardBodyEntity
>
resultList
=
materialManagementMapper
.
selectCardBody
(
beginDate
,
endDate
,
typeCode
,
name
);
List
<
CardBodyEntity
>
resultList
=
materialManagementMapper
.
selectCardBody
(
beginDate
,
endDate
,
typeCode
,
name
,
cardBodyType
);
return
resultList
;
return
resultList
;
}
}
...
...
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