接口相关修改
parent
e41416040c
commit
8a564c19db
@ -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;
|
||||
|
||||
|
||||
}
|
@ -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>
|
Loading…
Reference in New Issue