Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
Overview
Overview
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
雷紫添
xzxt-api-report
Commits
8b6f7c77
Commit
8b6f7c77
authored
Aug 19, 2022
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资源服务数量查询接口
parent
0feced17
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
src/main/java/com/founder/controller/ZyfwController.java
+4
-2
src/main/java/com/founder/model/ZyfwParam.java
+13
-0
src/main/resources/mybatis/mysqlMapper/ZtryMapper.xml
+3
-2
No files found.
src/main/java/com/founder/controller/ZyfwController.java
View file @
8b6f7c77
package
com
.
founder
.
controller
;
import
com.founder.model.R
;
import
com.founder.model.ZyfwParam
;
import
com.founder.service.QgztryService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -21,9 +23,9 @@ public class ZyfwController {
@Autowired
private
QgztryService
qgztryService
;
@PostMapping
(
"/bj/getQgztryCount"
)
public
R
getQgztryCount
(
String
isZl
)
{
public
R
getQgztryCount
(
@RequestBody
ZyfwParam
isZl
)
{
try
{
int
total
=
qgztryService
.
getQgztryCount
(
isZl
);
int
total
=
qgztryService
.
getQgztryCount
(
isZl
.
getIsZl
()
);
return
R
.
ok
().
data
(
"total"
,
total
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
...
...
src/main/java/com/founder/model/ZyfwParam.java
0 → 100644
View file @
8b6f7c77
package
com
.
founder
.
model
;
import
lombok.Data
;
/**
*
* @author create by lystar
* @date 2022/8/19 15:41
*/
@Data
public
class
ZyfwParam
{
String
isZl
;
}
src/main/resources/mybatis/mysqlMapper/ZtryMapper.xml
View file @
8b6f7c77
...
...
@@ -2,9 +2,9 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.founder.xzxt.mysqldao.ZtryMapper"
>
<select
id=
"getQgztryCount"
resultType=
"java.lang.Integer"
>
select count(*) from tb_yw_ztry
where xxsc_pdbz = '0'
select count(*) from tb_yw_ztry
<if
test=
"isZl == '1'.toString()"
>
and
xxrsksj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
where
xxrsksj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
</mapper>
\ No newline at end of file
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