接口相关修改

master
anthonywj 1 year ago
parent e41416040c
commit 8a564c19db

@ -14,8 +14,10 @@ import com.glxp.api.entity.sup.UserCompanyEntity;
import com.glxp.api.req.auth.FilterUserComapanyRequest;
import com.glxp.api.req.auth.UserRegisterFilterRequest;
import com.glxp.api.req.replicate.FilterReplicateRequest;
import com.glxp.api.req.stat.StatAdverseRequest;
import com.glxp.api.req.stat.StatCityCorpRequest;
import com.glxp.api.req.stat.StatCorpInvRequest;
import com.glxp.api.req.stat.StatWarnMessageRequest;
import com.glxp.api.req.trace.TraceTaskDetailRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.auth.registComPerResponse;
@ -290,5 +292,47 @@ public class BigVisController extends BaseController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Resource
StatWarnMessageService statWarnMessageService;
/**
*
*/
@ApiOperation(value = "获取异常信息列表", response = registComPerResponse.class)
@GetMapping("/bigVis/warn/msg/list")
public BaseResponse warnMsgList(StatWarnMessageRequest statWarnMessageRequest, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
List<StatWarnMessageEntity> selectlist = statWarnMessageService.filterList(statWarnMessageRequest);
PageInfo<StatWarnMessageEntity> pageInfo;
pageInfo = new PageInfo<>(selectlist);
PageSimpleResponse<StatWarnMessageEntity> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(selectlist);
return ResultVOUtils.success(pageSimpleResponse);
}
@Resource
StatAdverseEventsService statAdverseEventsService;
/**
*
*/
@ApiOperation(value = "获取异常信息列表", response = registComPerResponse.class)
@GetMapping("/bigVis/adverse/msg/list")
public BaseResponse warnMsgList(StatAdverseRequest statAdverseRequest, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
List<StatAdverseEventsEntity> selectlist = statAdverseEventsService.filterList(statAdverseRequest);
PageInfo<StatAdverseEventsEntity> pageInfo;
pageInfo = new PageInfo<>(selectlist);
PageSimpleResponse<StatAdverseEventsEntity> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(selectlist);
return ResultVOUtils.success(pageSimpleResponse);
}
}

@ -0,0 +1,16 @@
package com.glxp.api.dao.stat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.stat.StatAdverseEventsEntity;
import com.glxp.api.entity.stat.StatWarnMessageEntity;
import com.glxp.api.req.stat.StatAdverseRequest;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface StatAdverseEventsMapper extends BaseMapper<StatAdverseEventsEntity> {
List<StatAdverseEventsEntity> filterList(StatAdverseRequest statAdverseRequest);
}

@ -0,0 +1,15 @@
package com.glxp.api.dao.stat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.stat.StatCorpFlbmEntity;
import com.glxp.api.entity.stat.StatWarnMessageEntity;
import com.glxp.api.req.stat.StatWarnMessageRequest;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface StatWarnMessageMapper extends BaseMapper<StatWarnMessageEntity> {
List<StatWarnMessageEntity> filterList(StatWarnMessageRequest statCorpInvRequest);
}

@ -0,0 +1,36 @@
package com.glxp.api.entity.stat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "stat_adverse_events")
public class StatAdverseEventsEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
@TableField(value = "eventTime")
private Date eventTime;
@TableField(value = "eventMsg")
private String eventMsg;
@TableField(value = "updateTime")
private Date updateTime;
@TableField(value = "remark")
private String remark;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,45 @@
package com.glxp.api.entity.stat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "stat_warn_message")
public class StatWarnMessageEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
@TableField(value = "companyName")
private String companyName;
@TableField(value = "companyId")
private String companyId;
@TableField(value = "bussinessStatus")
private String bussinessStatus;
@TableField(value = "productName")
private String productName;
@TableField(value = "ggxh")
private String ggxh;
@TableField(value = "updateTime")
private Date updateTime;
@TableField(value = "warnMsg")
private String warnMsg;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,8 @@
package com.glxp.api.req.stat;
import com.glxp.api.util.page.ListPageRequest;
import lombok.Data;
@Data
public class StatAdverseRequest extends ListPageRequest {
}

@ -0,0 +1,31 @@
package com.glxp.api.req.stat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.glxp.api.util.page.ListPageRequest;
import lombok.Data;
import java.util.Date;
@Data
public class StatWarnMessageRequest extends ListPageRequest {
private Integer id;
private String companyName;
private String companyId;
private String bussinessStatus;
private String productName;
private String ggxh;
private Date updateTime;
private String warnMsg;
}

@ -118,6 +118,18 @@ public class registComPerResponse {
private String corpCategory;
private Integer checkCount;
private Integer tagCodeCount;
private Integer unTagCodeCount;
private Integer groupBuyCount;
private Integer unGroupBuyCount;
private Integer mipCount;
private Integer unMipCount;
private Integer importCount;
private Integer unImportCount;
private Integer qixieCount;
private Integer shijiCount;
private Integer supCount;
private Integer cusCount;
private Long companyId;

@ -0,0 +1,30 @@
package com.glxp.api.service.stat;
import com.github.pagehelper.PageHelper;
import com.glxp.api.dao.stat.StatWarnMessageMapper;
import com.glxp.api.entity.stat.StatWarnMessageEntity;
import com.glxp.api.req.stat.StatAdverseRequest;
import com.glxp.api.req.stat.StatWarnMessageRequest;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.dao.stat.StatAdverseEventsMapper;
import com.glxp.api.entity.stat.StatAdverseEventsEntity;
import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;
@Service
public class StatAdverseEventsService extends ServiceImpl<StatAdverseEventsMapper, StatAdverseEventsEntity> {
@Resource
StatAdverseEventsMapper statAdverseEventsMapper;
public List<StatAdverseEventsEntity> filterList(StatAdverseRequest statAdverseRequest) {
if (statAdverseRequest == null) {
return Collections.emptyList();
}
int offset = (statAdverseRequest.getPage() - 1) * statAdverseRequest.getLimit();
PageHelper.offsetPage(offset, statAdverseRequest.getLimit());
return statAdverseEventsMapper.filterList(statAdverseRequest);
}
}

@ -0,0 +1,30 @@
package com.glxp.api.service.stat;
import com.github.pagehelper.PageHelper;
import com.glxp.api.dao.stat.StatCorpFlbmMapper;
import com.glxp.api.entity.stat.StatCorpFlbmEntity;
import com.glxp.api.req.stat.StatCorpInvRequest;
import com.glxp.api.req.stat.StatWarnMessageRequest;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.entity.stat.StatWarnMessageEntity;
import com.glxp.api.dao.stat.StatWarnMessageMapper;
import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;
@Service
public class StatWarnMessageService extends ServiceImpl<StatWarnMessageMapper, StatWarnMessageEntity> {
@Resource
StatWarnMessageMapper statWarnMessageMapper;
public List<StatWarnMessageEntity> filterList(StatWarnMessageRequest statWarnMessageRequest) {
if (statWarnMessageRequest == null) {
return Collections.emptyList();
}
int offset = (statWarnMessageRequest.getPage() - 1) * statWarnMessageRequest.getLimit();
PageHelper.offsetPage(offset, statWarnMessageRequest.getLimit());
return statWarnMessageMapper.filterList(statWarnMessageRequest);
}
}

@ -0,0 +1,24 @@
<?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">
<mapper namespace="com.glxp.api.dao.stat.StatAdverseEventsMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.stat.StatAdverseEventsEntity">
<!--@mbg.generated-->
<!--@Table stat_adverse_events-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="eventTime" jdbcType="TIMESTAMP" property="eventTime"/>
<result column="eventMsg" jdbcType="VARCHAR" property="eventMsg"/>
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, eventTime, eventMsg, updateTime, remark
</sql>
<select id="filterList"
resultType="com.glxp.api.entity.stat.StatAdverseEventsEntity">
SELECT *
FROM stat_adverse_events
</select>
</mapper>

@ -0,0 +1,26 @@
<?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">
<mapper namespace="com.glxp.api.dao.stat.StatWarnMessageMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.stat.StatWarnMessageEntity">
<!--@mbg.generated-->
<!--@Table stat_warn_message-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="companyName" jdbcType="VARCHAR" property="companyName"/>
<result column="companyId" jdbcType="VARCHAR" property="companyId"/>
<result column="bussinessStatus" jdbcType="VARCHAR" property="bussinessStatus"/>
<result column="productName" jdbcType="VARCHAR" property="productName"/>
<result column="ggxh" jdbcType="VARCHAR" property="ggxh"/>
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="warnMsg" jdbcType="VARCHAR" property="warnMsg"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, companyName, companyId, bussinessStatus, productName, ggxh, updateTime, warnMsg
</sql>
<select id="filterList"
resultType="com.glxp.api.entity.stat.StatWarnMessageEntity">
SELECT *
FROM stat_warn_message
</select>
</mapper>

@ -58,7 +58,19 @@
user_company.certCount,
user_company.productCount,
user_company.corpCategory,
user_company.checkCount
user_company.checkCount,
user_company.tagCodeCount,
user_company.unTagCodeCount,
user_company.groupBuyCount,
user_company.unGroupBuyCount,
user_company.mipCount,
user_company.unMipCount,
user_company.importCount,
user_company.unImportCount,
user_company.qixieCount,
user_company.shijiCount,
user_company.supCount,
user_company.cusCount
from user_company

Loading…
Cancel
Save