Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dili
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
dili
Commits
f0896a88
提交
f0896a88
authored
8月 20, 2019
作者:
renjianyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
37d2a7e1
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
242 行增加
和
1 行删除
+242
-1
BigScreenController.java
...aphy/bg/controller/geographysign/BigScreenController.java
+58
-0
GeographysignController.java
.../bg/controller/geographysign/GeographysignController.java
+3
-1
GeographysignMapper.java
...eography/bg/mapper/geographysign/GeographysignMapper.java
+112
-0
GeographysignService.java
...graphy/bg/service/geographysign/GeographysignService.java
+33
-0
GeographysignServiceImpl.java
...hy/bg/service/geographysign/GeographysignServiceImpl.java
+36
-0
没有找到文件。
com.zrqx.geography/src/main/java/com/zrqx/geography/bg/controller/geographysign/BigScreenController.java
0 → 100644
浏览文件 @
f0896a88
package
com
.
zrqx
.
geography
.
bg
.
controller
.
geographysign
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zrqx.core.constant.BaseRequestPath
;
import
com.zrqx.core.constant.geography.GeographyRequestPath
;
import
com.zrqx.core.form.geography.GeographyForm
;
import
com.zrqx.core.util.CallBack
;
import
com.zrqx.core.vo.Geographysign.CaregoryVo
;
import
com.zrqx.core.vo.Geographysign.ProvinceQueryVo
;
import
com.zrqx.core.vo.Geographysign.ProvinceVo
;
import
com.zrqx.geography.bg.service.geographysign.GeographysignService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
/**
* 资源Controller
*/
@RestController
@RequestMapping
(
BaseRequestPath
.
BG
+
BaseRequestPath
.
BIGRESOURCE
)
@Api
(
description
=
"大屏展示接口"
)
public
class
BigScreenController
{
@Autowired
GeographysignService
geographysignService
;
@ApiOperation
(
value
=
"地理标志接口"
,
notes
=
"地理标志接口"
)
@GetMapping
(
value
=
GeographyRequestPath
.
GEOGRAPHYSIGN
)
public
CallBack
<
List
<
ProvinceVo
>>
provinceQuery
(
GeographyForm
form
)
{
return
CallBack
.
success
(
geographysignService
.
geographySign
(
form
));
}
@ApiOperation
(
value
=
"注册年份曲线图"
,
notes
=
"注册年份曲线图"
)
@GetMapping
(
value
=
GeographyRequestPath
.
DIAGRAM
)
public
CallBack
<
List
<
ProvinceVo
>>
diagram
(
GeographyForm
form
)
{
return
CallBack
.
success
(
geographysignService
.
diagram
(
form
));
}
@ApiOperation
(
value
=
"地理标志申请机构"
,
notes
=
"地理标志申请机构"
)
@GetMapping
(
value
=
GeographyRequestPath
.
APPLICANTAGENCY
)
public
CallBack
<
List
<
ProvinceVo
>>
applicantAgency
(
GeographyForm
form
)
{
return
CallBack
.
success
(
geographysignService
.
applicantAgency
(
form
));
}
@ApiOperation
(
value
=
"省市数量接口"
,
notes
=
"省市数量接口"
)
@GetMapping
(
value
=
GeographyRequestPath
.
PROVINCECOUNT
)
public
CallBack
<
List
<
ProvinceVo
>>
provincecount
(
GeographyForm
form
)
{
return
CallBack
.
success
(
geographysignService
.
provincecount
(
form
));
}
}
com.zrqx.geography/src/main/java/com/zrqx/geography/bg/controller/geographysign/GeographysignController.java
浏览文件 @
f0896a88
...
...
@@ -214,7 +214,7 @@ public class GeographysignController {
}
//还需要一个定时任务,两个小时更新一次map
@ApiOperation
(
value
=
"键值对省数据1"
,
notes
=
"键值对省数据1"
)
@GetMapping
(
value
=
"/cache"
)
public
CallBack
<
Map
<
String
,
ProvinceKeyVo
>>
orderRelationUpdateNotify
(
HttpServletRequest
request
)
{
...
...
@@ -225,6 +225,8 @@ public class GeographysignController {
return
CallBack
.
success
(
provinceKeyVo
);
}
@ApiOperation
(
value
=
"图片下载到本地"
,
notes
=
"图片下载到本地"
)
@GetMapping
(
value
=
GeographyRequestPath
.
DOWNLOAD
)
...
...
com.zrqx.geography/src/main/java/com/zrqx/geography/bg/mapper/geographysign/GeographysignMapper.java
浏览文件 @
f0896a88
...
...
@@ -62,6 +62,7 @@ public interface GeographysignMapper extends BaseMapper<Geographysign> {
+
"<if test='"
+
NOTBLANK
+
"(form.signstate)'>"
+
"and signstate = #{form.signstate}"
+
"</if>"
+
" LIMIT 20"
+
"</script>"
)
List
<
Geographysign
>
provinceQueryto
(
@Param
(
"form"
)
GeographyForm
form
);
...
...
@@ -172,5 +173,116 @@ public interface GeographysignMapper extends BaseMapper<Geographysign> {
+
"select reserve1 label,reserve1 value from dl_geographysign group by reserve1"
+
"</script>"
)
List
<
CaregoryVo
>
querycount
();
/** 查询图片数据*/
@Select
(
"<script>"
+
"select * from dl_geographysign where imgPath is not null and reserve3 is null "
+
"</script>"
)
List
<
Geographysign
>
imgsj
();
/** 大屏图标总和数据查询*/
@Select
(
"<script>"
+
"select count(*)value,signState name from dl_geographysign where 1=1"
+
"<if test='"
+
NOTBLANK
+
"(form.province) '>"
+
" and province = #{form.province} "
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.city)'>"
+
"and city = #{form.city}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.county)'>"
+
"and county = #{form.county}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(State) '>"
+
" and signState = #{State} "
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.signstate)'>"
+
"and signstate = #{form.signstate}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.categoryOne)'>"
+
"and reserve1 = #{form.categoryOne}"
+
"</if>"
+
"</script>"
)
ProvinceVo
querysign
(
@Param
(
"form"
)
GeographyForm
form
,
@Param
(
"State"
)
String
State
);
/** 大屏曲注册线图*/
@Select
(
"<script>"
+
"select count(*)value,reserve4 name,registerState from dl_geographysign where 1 = 1 and reserve4 is not null and registerState='已注册'"
+
"<if test='"
+
NOTBLANK
+
"(form.province) '>"
+
" and province = #{form.province} "
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.city)'>"
+
"and city = #{form.city}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.county)'>"
+
"and county = #{form.county}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.signstate)'>"
+
"and signstate = #{form.signstate}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.categoryOne)'>"
+
"and reserve1 = #{form.categoryOne}"
+
"</if>"
+
" group by reserve4 ORDER BY reserve4"
+
"</script>"
)
List
<
ProvinceVo
>
diagram
(
@Param
(
"form"
)
GeographyForm
form
);
/** 地理标志申请机构*/
@Select
(
"<script>"
+
"select count(*)value,applicant name from dl_geographysign where 1 = 1 and applicant !='' "
+
"<if test='"
+
NOTBLANK
+
"(form.province) '>"
+
" and province = #{form.province} "
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.city)'>"
+
"and city = #{form.city}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.county)'>"
+
"and county = #{form.county}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.signstate)'>"
+
"and signstate = #{form.signstate}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.categoryOne)'>"
+
"and reserve1 = #{form.categoryOne}"
+
"</if>"
+
" group by applicant ORDER BY value desc LIMIT 50"
+
"</script>"
)
List
<
ProvinceVo
>
applicantAgency
(
@Param
(
"form"
)
GeographyForm
form
);
/** 大屏省市县数量*/
@Select
(
"<script>"
+
"select count(*)value,province name from dl_geographysign where 1 = 1 "
+
"<if test='"
+
NOTBLANK
+
"(form.province) '>"
+
" and province = #{form.province} "
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.city)'>"
+
"and city = #{form.city}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.county)'>"
+
"and county = #{form.county}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.signstate)'>"
+
"and signstate = #{form.signstate}"
+
"</if>"
+
"<if test='"
+
NOTBLANK
+
"(form.categoryOne)'>"
+
"and reserve1 = #{form.categoryOne}"
+
"</if>"
+
" group by province"
+
"</script>"
)
List
<
ProvinceVo
>
provincecount
(
@Param
(
"form"
)
GeographyForm
form
);
}
com.zrqx.geography/src/main/java/com/zrqx/geography/bg/service/geographysign/GeographysignService.java
浏览文件 @
f0896a88
...
...
@@ -83,5 +83,38 @@ public interface GeographysignService extends BaseService<Geographysign, String>
List
<
CaregoryVo
>
querycount
();
/**
* 图片信息
* @return
*/
List
<
Geographysign
>
imgsj
();
/**
* 查询地区地理标志数量
* @return
*/
List
<
ProvinceVo
>
geographySign
(
GeographyForm
form
);
/**
* 查询年份注册曲线图
* @return
*/
List
<
ProvinceVo
>
diagram
(
GeographyForm
form
);
/**
* 地理标志申请机构
* @return
*/
List
<
ProvinceVo
>
applicantAgency
(
GeographyForm
form
);
/**
* 查询省市县数量
* @return
*/
List
<
ProvinceVo
>
provincecount
(
GeographyForm
form
);
}
com.zrqx.geography/src/main/java/com/zrqx/geography/bg/service/geographysign/GeographysignServiceImpl.java
浏览文件 @
f0896a88
package
com
.
zrqx
.
geography
.
bg
.
service
.
geographysign
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -11,6 +12,7 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.mysql.fabric.xmlrpc.base.Array
;
import
com.zrqx.core.form.geography.GeographyForm
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.geography.Geographysign
;
...
...
@@ -214,4 +216,38 @@ public class GeographysignServiceImpl extends BaseServiceImpl<Geographysign, Str
return
null
;
}
@Override
public
List
<
Geographysign
>
imgsj
()
{
return
mapper
.
imgsj
();
}
@Override
public
List
<
ProvinceVo
>
geographySign
(
GeographyForm
form
)
{
// 图标总和数据
List
<
ProvinceVo
>
ProvinceVo
=
new
ArrayList
<>();
ProvinceVo
.
add
(
mapper
.
querysign
(
form
,
"农产品地理标志"
));
ProvinceVo
.
add
(
mapper
.
querysign
(
form
,
"原产地地理标志"
));
ProvinceVo
.
add
(
mapper
.
querysign
(
form
,
"地理标志商标"
));
return
ProvinceVo
;
}
@Override
public
List
<
ProvinceVo
>
diagram
(
GeographyForm
form
)
{
return
mapper
.
diagram
(
form
);
}
@Override
public
List
<
ProvinceVo
>
applicantAgency
(
GeographyForm
form
)
{
return
mapper
.
applicantAgency
(
form
);
}
@Override
public
List
<
ProvinceVo
>
provincecount
(
GeographyForm
form
)
{
return
mapper
.
provincecount
(
form
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论