推送接口字段新增

master
dongdingding 2 years ago
parent dff04ba3fc
commit eee5bf8459

@ -22,7 +22,7 @@ import java.util.List;
*/
@Api(tags = "事件接⼊")
@RestController
@RequestMapping("/event")
@RequestMapping("/gateway/event/event/eventData/")
public class BEventAccessController extends BaseController {
@Autowired
private IBEventAccessService bEventAccessService;
@ -59,7 +59,7 @@ public class BEventAccessController extends BaseController {
}
/**
*
*
*/
@ApiOperation(value = "事件推送接⼝")
@PostMapping("/imports")

@ -37,18 +37,18 @@ public class BEventAccess extends BaseEntity {
private String areaCode;
/**
* ,12
* ,15
*/
@Excel(name = "街道编码,12位编码")
@ApiModelProperty(value = "街道编码,12位编码")
private String streetCode;
@Excel(name = "街道编码,15位编码")
@ApiModelProperty(value = "街道编码,15位编码")
private String communityCode;
/**
*
* ,15
*/
@Excel(name = "事件消息来源部⻔名称例如:市应急局")
@ApiModelProperty(value = "事件消息来源部⻔名称例如:市应急局")
private String origin;
@Excel(name = "⽹格编码,15位编码")
@ApiModelProperty(value = "⽹格编码,15位编码")
private String gridCode;
/**
*
@ -117,9 +117,9 @@ public class BEventAccess extends BaseEntity {
* " 1"" 2"
* "
*/
@Excel(name = "事件当前处理状态0 未处理 1处理中 2已完成")
@ApiModelProperty(value = "事件当前处理状态0 未处理 1 处理中 2 已完成")
private Long superviseStatus;
@Excel(name = "事件案件状态")
@ApiModelProperty(value = "事件案件状态")
private String caseStatus;
/**
*
@ -172,4 +172,88 @@ public class BEventAccess extends BaseEntity {
private String eventFile;
/**
* 123456诿7
*/
@Excel(name = "1、⼀般2、提级3、疑难4、多跨5、逾期6、推诿7、督办多个逗号分隔")
@ApiModelProperty(value = "1、⼀般2、提级3、疑难4、多跨5、逾期6、推诿7、督办多个逗号分隔")
private String eventLabel;
/**
*
*/
@Excel(name = "案件类型编码")
@ApiModelProperty(value = "案件类型编码")
private String scenceType;
/**
*
*/
@Excel(name = "案件类型名称")
@ApiModelProperty(value = "案件类型名称")
private String scenceTypename;
/**
*
*/
@Excel(name = "受理时间")
@ApiModelProperty(value = "受理时间")
private String acceptanceTime;
/**
*
*/
@Excel(name = "处置时限")
@ApiModelProperty(value = "处置时限")
private String dealTimeLimit;
/**
*
*/
@Excel(name = "拒绝时限")
@ApiModelProperty(value = "拒绝时限")
private String refuseTimeLimit;
/**
*
*/
@Excel(name = "反馈时间")
@ApiModelProperty(value = "反馈时间")
private String feedbackTime;
/**
*
*/
@Excel(name = "办结时间")
@ApiModelProperty(value = "办结时间")
private String completionTime;
/**
*
*/
@Excel(name = "主办单位")
@ApiModelProperty(value = "主办单位")
private String mainOrganizer;
/**
*
*/
@Excel(name = "执法单位")
@ApiModelProperty(value = "执法单位")
private String enforceLawOrganizer;
/**
*
*/
@Excel(name = "协办单位")
@ApiModelProperty(value = "协办单位")
private String coOrganizer;
}

@ -18,7 +18,7 @@ ruoyi:
# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
port: 9002
port: 9102
servlet:
# 应用的访问路径
context-path: /api

@ -114,7 +114,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.antMatchers("/login", "/register", "/captchaImage").permitAll()
// 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**","/pt/info/**","/event/**","/eventProgress/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**","/pt/info/**","/gateway/event/event/eventData/**","/gateway/event/event/eventData/eventProgress/**").permitAll()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated()
.and()

@ -1,60 +1,108 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.pt.mapper.BEventAccessMapper">
<resultMap type="BEventAccess" id="BEventAccessResult">
<result property="id" column="id" />
<result property="innerEventId" column="inner_event_id" />
<result property="areaCode" column="area_code" />
<result property="streetCode" column="street_code" />
<result property="origin" column="origin" />
<result property="scence" column="scence" />
<result property="title" column="title" />
<result property="content" column="content" />
<result property="eventTime" column="event_time" />
<result property="eventCoordinate" column="event_coordinate" />
<result property="msgType" column="msg_type" />
<result property="msgTypeName" column="msg_type_name" />
<result property="eventUrl" column="event_url" />
<result property="superviseStatus" column="supervise_status" />
<result property="eventCreator" column="event_creator" />
<result property="eventCreatorTel" column="event_creator_tel" />
<result property="eventPlaceName" column="event_place_name" />
<result property="eventDuration" column="event_duration" />
<result property="executeType" column="execute_type" />
<result property="remindStatus" column="remind_status" />
<result property="eventFile" column="event_file" />
<result property="id" column="id"/>
<result property="innerEventId" column="inner_event_id"/>
<result property="areaCode" column="area_code"/>
<result property="communityCode" column="community_code"/>
<result property="gridCode" column="grid_code"/>
<result property="scence" column="scence"/>
<result property="title" column="title"/>
<result property="content" column="content"/>
<result property="eventTime" column="event_time"/>
<result property="eventCoordinate" column="event_coordinate"/>
<result property="msgType" column="msg_type"/>
<result property="msgTypeName" column="msg_type_name"/>
<result property="eventUrl" column="event_url"/>
<result property="caseStatus" column="case_status"/>
<result property="eventCreator" column="event_creator"/>
<result property="eventCreatorTel" column="event_creator_tel"/>
<result property="eventPlaceName" column="event_place_name"/>
<result property="eventDuration" column="event_duration"/>
<result property="executeType" column="execute_type"/>
<result property="remindStatus" column="remind_status"/>
<result property="eventFile" column="event_file"/>
<result property="eventLabel" column="event_label"/>
<result property="scenceType" column="scence_type"/>
<result property="scenceTypename" column="scence_typename"/>
<result property="acceptanceTime" column="acceptance_time"/>
<result property="dealTimeLimit" column="deal_time_limit"/>
<result property="refuseTimeLimit" column="refuse_time_limit"/>
<result property="feedbackTime" column="feedback_time"/>
<result property="completionTime" column="completion_time"/>
<result property="mainOrganizer" column="main_organizer"/>
<result property="enforceLawOrganizer" column="enforce_law_organizer"/>
<result property="coOrganizer" column="co_organizer"/>
</resultMap>
<sql id="selectBEventAccessVo">
select id, inner_event_id, area_code, street_code, origin, scence, title, content, event_time, event_coordinate, msg_type, msg_type_name, event_url, supervise_status, event_creator, event_creator_tel, event_place_name, event_duration, execute_type, remind_status, event_file from b_event_access
select id,
inner_event_id,
area_code,
community_code,
grid_code,
scence,
title,
content,
event_time,
event_coordinate,
msg_type,
msg_type_name,
event_url,
case_status,
event_creator,
event_creator_tel,
event_place_name,
event_duration,
execute_type,
remind_status,
event_file,
event_label,
scence_type,
scence_typename,
acceptance_time,
deal_time_limit,
refuse_time_limit,
feedback_time,
completion_time,
main_organizer,
enforce_law_organizer,
co_organizer
from b_event_access
</sql>
<select id="selectBEventAccessList" parameterType="BEventAccess" resultMap="BEventAccessResult">
<include refid="selectBEventAccessVo"/>
<where>
<if test="innerEventId != null and innerEventId != ''"> and inner_event_id = #{innerEventId}</if>
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
<if test="streetCode != null and streetCode != ''"> and street_code = #{streetCode}</if>
<if test="origin != null and origin != ''"> and origin = #{origin}</if>
<if test="scence != null and scence != ''"> and scence = #{scence}</if>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="eventTime != null and eventTime != ''"> and event_time = #{eventTime}</if>
<if test="eventCoordinate != null and eventCoordinate != ''"> and event_coordinate = #{eventCoordinate}</if>
<if test="msgType != null "> and msg_type = #{msgType}</if>
<if test="msgTypeName != null and msgTypeName != ''"> and msg_type_name like concat('%', #{msgTypeName}, '%')</if>
<if test="eventUrl != null and eventUrl != ''"> and event_url = #{eventUrl}</if>
<if test="superviseStatus != null "> and supervise_status = #{superviseStatus}</if>
<if test="eventCreator != null and eventCreator != ''"> and event_creator = #{eventCreator}</if>
<if test="eventCreatorTel != null and eventCreatorTel != ''"> and event_creator_tel = #{eventCreatorTel}</if>
<if test="eventPlaceName != null and eventPlaceName != ''"> and event_place_name like concat('%', #{eventPlaceName}, '%')</if>
<if test="eventDuration != null "> and event_duration = #{eventDuration}</if>
<if test="executeType != null "> and execute_type = #{executeType}</if>
<if test="remindStatus != null "> and remind_status = #{remindStatus}</if>
<if test="eventFile != null and eventFile != ''"> and event_file = #{eventFile}</if>
<if test="innerEventId != null and innerEventId != ''">and inner_event_id = #{innerEventId}</if>
<if test="areaCode != null and areaCode != ''">and area_code = #{areaCode}</if>
<if test="communityCode != null and communityCode != ''">and community_code = #{communityCode}</if>
<if test="gridCode != null and gridCode != ''">and grid_code = #{gridCode}</if>
<if test="scence != null and scence != ''">and scence = #{scence}</if>
<if test="title != null and title != ''">and title = #{title}</if>
<if test="content != null and content != ''">and content = #{content}</if>
<if test="eventTime != null and eventTime != ''">and event_time = #{eventTime}</if>
<if test="eventCoordinate != null and eventCoordinate != ''">and event_coordinate = #{eventCoordinate}</if>
<if test="msgType != null ">and msg_type = #{msgType}</if>
<if test="msgTypeName != null and msgTypeName != ''">and msg_type_name like concat('%', #{msgTypeName},
'%')
</if>
<if test="eventUrl != null and eventUrl != ''">and event_url = #{eventUrl}</if>
<if test="caseStatus != null ">and case_status = #{caseStatus}</if>
<if test="eventCreator != null and eventCreator != ''">and event_creator = #{eventCreator}</if>
<if test="eventCreatorTel != null and eventCreatorTel != ''">and event_creator_tel = #{eventCreatorTel}
</if>
<if test="eventPlaceName != null and eventPlaceName != ''">and event_place_name like concat('%',
#{eventPlaceName}, '%')
</if>
<if test="eventDuration != null ">and event_duration = #{eventDuration}</if>
<if test="executeType != null ">and execute_type = #{executeType}</if>
<if test="remindStatus != null ">and remind_status = #{remindStatus}</if>
<if test="eventFile != null and eventFile != ''">and event_file = #{eventFile}</if>
</where>
</select>
@ -68,8 +116,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="innerEventId != null">inner_event_id,</if>
<if test="areaCode != null">area_code,</if>
<if test="streetCode != null">street_code,</if>
<if test="origin != null">origin,</if>
<if test="communityCode != null">community_code,</if>
<if test="gridCode != null">grid_code,</if>
<if test="scence != null">scence,</if>
<if test="title != null">title,</if>
<if test="content != null">content,</if>
@ -78,7 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="msgType != null">msg_type,</if>
<if test="msgTypeName != null">msg_type_name,</if>
<if test="eventUrl != null">event_url,</if>
<if test="superviseStatus != null">supervise_status,</if>
<if test="caseStatus != null">case_status,</if>
<if test="eventCreator != null">event_creator,</if>
<if test="eventCreatorTel != null">event_creator_tel,</if>
<if test="eventPlaceName != null">event_place_name,</if>
@ -86,12 +134,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="executeType != null">execute_type,</if>
<if test="remindStatus != null">remind_status,</if>
<if test="eventFile != null">event_file,</if>
<if test="eventLabel != null">event_label,</if>
<if test="scenceType != null">scence_type,</if>
<if test="scenceTypename != null">scence_typename,</if>
<if test="acceptanceTime != null">acceptance_time,</if>
<if test="dealTimeLimit != null">deal_time_limit,</if>
<if test="refuseTimeLimit != null">refuse_time_limit,</if>
<if test="feedbackTime != null">feedback_time,</if>
<if test="completionTime != null">completion_time,</if>
<if test="mainOrganizer != null">main_organizer,</if>
<if test="enforceLawOrganizer != null">enforce_law_organizer,</if>
<if test="coOrganizer != null">co_organizer,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="innerEventId != null">#{innerEventId},</if>
<if test="areaCode != null">#{areaCode},</if>
<if test="streetCode != null">#{streetCode},</if>
<if test="origin != null">#{origin},</if>
<if test="communityCode != null">#{communityCode},</if>
<if test="gridCode != null">#{gridCode},</if>
<if test="scence != null">#{scence},</if>
<if test="title != null">#{title},</if>
<if test="content != null">#{content},</if>
@ -100,7 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="msgType != null">#{msgType},</if>
<if test="msgTypeName != null">#{msgTypeName},</if>
<if test="eventUrl != null">#{eventUrl},</if>
<if test="superviseStatus != null">#{superviseStatus},</if>
<if test="caseStatus != null">#{caseStatus},</if>
<if test="eventCreator != null">#{eventCreator},</if>
<if test="eventCreatorTel != null">#{eventCreatorTel},</if>
<if test="eventPlaceName != null">#{eventPlaceName},</if>
@ -108,6 +167,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="executeType != null">#{executeType},</if>
<if test="remindStatus != null">#{remindStatus},</if>
<if test="eventFile != null">#{eventFile},</if>
<if test="eventLabel != null">#{eventLabel},</if>
<if test="scenceType != null">#{scenceType},</if>
<if test="scenceTypename != null">#{scenceTypename},</if>
<if test="acceptanceTime != null">#{acceptanceTime},</if>
<if test="dealTimeLimit != null">#{dealTimeLimit},</if>
<if test="refuseTimeLimit != null">#{refuseTimeLimit},</if>
<if test="feedbackTime != null">#{feedbackTime},</if>
<if test="completionTime != null">#{completionTime},</if>
<if test="mainOrganizer != null">#{mainOrganizer},</if>
<if test="enforceLawOrganizer != null">#{enforceLawOrganizer},</if>
<if test="coOrganizer != null">#{coOrganizer},</if>
</trim>
</insert>
@ -116,8 +186,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="SET" suffixOverrides=",">
<if test="innerEventId != null">inner_event_id = #{innerEventId},</if>
<if test="areaCode != null">area_code = #{areaCode},</if>
<if test="streetCode != null">street_code = #{streetCode},</if>
<if test="origin != null">origin = #{origin},</if>
<if test="communityCode != null">community_code = #{communityCode},</if>
<if test="gridCode != null">grid_code = #{gridCode},</if>
<if test="scence != null">scence = #{scence},</if>
<if test="title != null">title = #{title},</if>
<if test="content != null">content = #{content},</if>
@ -126,7 +196,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="msgType != null">msg_type = #{msgType},</if>
<if test="msgTypeName != null">msg_type_name = #{msgTypeName},</if>
<if test="eventUrl != null">event_url = #{eventUrl},</if>
<if test="superviseStatus != null">supervise_status = #{superviseStatus},</if>
<if test="caseStatus != null">case_status = #{caseStatus},</if>
<if test="eventCreator != null">event_creator = #{eventCreator},</if>
<if test="eventCreatorTel != null">event_creator_tel = #{eventCreatorTel},</if>
<if test="eventPlaceName != null">event_place_name = #{eventPlaceName},</if>
@ -139,7 +209,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteBEventAccessById" parameterType="Long">
delete from b_event_access where id = #{id}
delete
from b_event_access
where id = #{id}
</delete>
<delete id="deleteBEventAccessByIds" parameterType="String">

Loading…
Cancel
Save