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
919c3736
Commit
919c3736
authored
Feb 15, 2023
by
liulianglang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行政案件统计
parent
be688a7a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
0 deletions
+65
-0
src/main/java/com/founder/zyfw/controller/ZyfwController.java
+19
-0
src/main/java/com/founder/zyfw/entity/TbStAsjXzVo.java
+18
-0
src/main/java/com/founder/zyfw/mysqldao/XzZyfwMapper.java
+3
-0
src/main/java/com/founder/zyfw/service/ZyfwService.java
+6
-0
src/main/java/com/founder/zyfw/service/impl/ZyfwServiceImpl.java
+8
-0
src/main/resources/mybatis/mysqlMapper/XzZyfwMapper.xml
+11
-0
No files found.
src/main/java/com/founder/zyfw/controller/ZyfwController.java
View file @
919c3736
...
@@ -3,10 +3,13 @@ package com.founder.zyfw.controller;
...
@@ -3,10 +3,13 @@ package com.founder.zyfw.controller;
import
com.founder.checkAuthorization.annotation.CheckAuthorization
;
import
com.founder.checkAuthorization.annotation.CheckAuthorization
;
import
com.founder.checkAuthorization.entity.CheckType
;
import
com.founder.checkAuthorization.entity.CheckType
;
import
com.founder.model.R
;
import
com.founder.model.R
;
import
com.founder.zyfw.entity.TbStAsj
;
import
com.founder.zyfw.entity.TbStAsjXzVo
;
import
com.founder.zyfw.entity.ZyfwQueryParam
;
import
com.founder.zyfw.entity.ZyfwQueryParam
;
import
com.founder.zyfw.service.ZyfwService
;
import
com.founder.zyfw.service.ZyfwService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -689,4 +692,20 @@ public class ZyfwController {
...
@@ -689,4 +692,20 @@ public class ZyfwController {
return
R
.
error
(
e
.
getMessage
());
return
R
.
error
(
e
.
getMessage
());
}
}
}
}
@PostMapping
(
"/xk/getXzxtXzAj"
)
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public
R
getXzxtXzAj
(
@RequestBody
TbStAsjXzVo
asj
)
{
try
{
if
(
StringUtils
.
isEmpty
(
asj
.
getAsjbh
())){
return
R
.
error
(
"案件编号为空,不能查询"
);
}
TbStAsjXzVo
xzaj
=
zyfwService
.
getXzxtXzAj
(
asj
.
getAsjbh
());
return
R
.
ok
().
data
(
"rows"
,
xzaj
);
}
catch
(
Exception
e
)
{
log
.
error
(
"错误日志"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
}
}
src/main/java/com/founder/zyfw/entity/TbStAsjXzVo.java
0 → 100644
View file @
919c3736
package
com
.
founder
.
zyfw
.
entity
;
import
lombok.Data
;
@Data
public
class
TbStAsjXzVo
{
/**
* 案事件编号
*/
private
String
asjbh
;
private
String
ajmc
;
private
String
ajlbmc
;
private
String
asjfsddXzqhdm
;
private
String
asjfsddDzmc
;
private
String
larq
;
private
String
jyaq
;
}
src/main/java/com/founder/zyfw/mysqldao/XzZyfwMapper.java
View file @
919c3736
package
com
.
founder
.
zyfw
.
mysqldao
;
package
com
.
founder
.
zyfw
.
mysqldao
;
import
com.founder.zyfw.entity.TbStAsjXzVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -57,4 +58,6 @@ public interface XzZyfwMapper {
...
@@ -57,4 +58,6 @@ public interface XzZyfwMapper {
int
getCbajCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getCbajCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getFlwsCount
(
@Param
(
"isZl"
)
String
isZl
);
int
getFlwsCount
(
@Param
(
"isZl"
)
String
isZl
);
TbStAsjXzVo
getXzxtXzAj
(
@Param
(
"asjbh"
)
String
asjbh
);
}
}
src/main/java/com/founder/zyfw/service/ZyfwService.java
View file @
919c3736
package
com
.
founder
.
zyfw
.
service
;
package
com
.
founder
.
zyfw
.
service
;
import
com.founder.zyfw.entity.TbStAsjXzVo
;
import
java.util.List
;
/**
/**
* 省级资源服务
* 省级资源服务
*
*
...
@@ -116,4 +120,6 @@ public interface ZyfwService {
...
@@ -116,4 +120,6 @@ public interface ZyfwService {
int
getZjcbCount
(
String
isZl
);
int
getZjcbCount
(
String
isZl
);
int
getZjbzCount
(
String
isZl
);
int
getZjbzCount
(
String
isZl
);
TbStAsjXzVo
getXzxtXzAj
(
String
asjbh
);
}
}
src/main/java/com/founder/zyfw/service/impl/ZyfwServiceImpl.java
View file @
919c3736
package
com
.
founder
.
zyfw
.
service
.
impl
;
package
com
.
founder
.
zyfw
.
service
.
impl
;
import
com.founder.zyfw.ajzwdao.AjzwZyfwMapper
;
import
com.founder.zyfw.ajzwdao.AjzwZyfwMapper
;
import
com.founder.zyfw.entity.TbStAsjXzVo
;
import
com.founder.zyfw.mysqldao.XzZyfwMapper
;
import
com.founder.zyfw.mysqldao.XzZyfwMapper
;
import
com.founder.zyfw.service.ZyfwService
;
import
com.founder.zyfw.service.ZyfwService
;
import
com.founder.zyfw.shcedao.ShceZyfwMapper
;
import
com.founder.zyfw.shcedao.ShceZyfwMapper
;
...
@@ -12,6 +13,8 @@ import com.founder.zyfw.zwbzdao.ZwbzZyfwMapper;
...
@@ -12,6 +13,8 @@ import com.founder.zyfw.zwbzdao.ZwbzZyfwMapper;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
/**
* 省级资源服务
* 省级资源服务
*
*
...
@@ -315,4 +318,9 @@ public class ZyfwServiceImpl implements ZyfwService {
...
@@ -315,4 +318,9 @@ public class ZyfwServiceImpl implements ZyfwService {
public
int
getZjbzCount
(
String
isZl
)
{
public
int
getZjbzCount
(
String
isZl
)
{
return
"1"
.
equals
(
isZl
)
?
0
:
xzZyfwMapper
.
getZjbzCount
();
return
"1"
.
equals
(
isZl
)
?
0
:
xzZyfwMapper
.
getZjbzCount
();
}
}
@Override
public
TbStAsjXzVo
getXzxtXzAj
(
String
asjbh
)
{
return
xzZyfwMapper
.
getXzxtXzAj
(
asjbh
);
}
}
}
src/main/resources/mybatis/mysqlMapper/XzZyfwMapper.xml
View file @
919c3736
...
@@ -159,4 +159,14 @@
...
@@ -159,4 +159,14 @@
and djsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
and djsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</if>
</select>
</select>
<select
id=
"getXzxtXzAj"
resultType=
"com.founder.zyfw.entity.TbStAsjXzVo"
>
select asjbh as asjbh,
ajmc as ajmc,
(SELECT name FROM sys_dictitem WHERE groupid = 'CODE_AJLB_JZ' AND code = ajlbdm_jz) as ajlbmc,
asjfsdd_xzqhdm as asjfsddXzqhdm,
asjfsdd_dzmc as asjfsddDzmc,
larq as larq,jyaq
from tb_st_asj_xz where xxsc_pdbz='0' and asjbh=#{asjbh}
</select>
</mapper>
</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