大屏接口相关修改
							parent
							
								
									e1c8b415ec
								
							
						
					
					
						commit
						96910cf6a2
					
				| @ -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.req.stat.StatCorpInvRequest; | ||||||
|  | import org.apache.ibatis.annotations.Mapper; | ||||||
|  | 
 | ||||||
|  | import java.util.List; | ||||||
|  | 
 | ||||||
|  | @Mapper | ||||||
|  | public interface StatCorpFlbmMapper extends BaseMapper<StatCorpFlbmEntity> { | ||||||
|  | 
 | ||||||
|  |     List<StatCorpFlbmEntity> filterList(StatCorpInvRequest statCorpInvRequest); | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1,41 @@ | |||||||
|  | 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 lombok.AllArgsConstructor; | ||||||
|  | import lombok.Builder; | ||||||
|  | import lombok.Data; | ||||||
|  | import lombok.NoArgsConstructor; | ||||||
|  | 
 | ||||||
|  | @Data | ||||||
|  | @Builder | ||||||
|  | @AllArgsConstructor | ||||||
|  | @NoArgsConstructor | ||||||
|  | @TableName(value = "stat_corp_flbm") | ||||||
|  | public class StatCorpFlbmEntity implements Serializable { | ||||||
|  |     @TableId(value = "id", type = IdType.INPUT) | ||||||
|  |     private Integer id; | ||||||
|  | 
 | ||||||
|  |     @TableField(value = "flmc") | ||||||
|  |     private String flmc; | ||||||
|  | 
 | ||||||
|  |     @TableField(value = "flbm") | ||||||
|  |     private String flbm; | ||||||
|  | 
 | ||||||
|  |     @TableField(value = "companyId") | ||||||
|  |     private Integer companyId; | ||||||
|  | 
 | ||||||
|  |     @TableField(value = "corpName") | ||||||
|  |     private String corpName; | ||||||
|  | 
 | ||||||
|  |     @TableField(value = "`count`") | ||||||
|  |     private Integer count; | ||||||
|  | 
 | ||||||
|  |     @TableField(value = "remark") | ||||||
|  |     private String remark; | ||||||
|  | 
 | ||||||
|  |     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 StatCorpFlbmRequest extends ListPageRequest { | ||||||
|  | } | ||||||
| @ -0,0 +1,29 @@ | |||||||
|  | package com.glxp.api.service.stat; | ||||||
|  | 
 | ||||||
|  | import com.github.pagehelper.PageHelper; | ||||||
|  | import com.glxp.api.entity.stat.StatCorpInvEntity; | ||||||
|  | import com.glxp.api.req.stat.StatCorpInvRequest; | ||||||
|  | import org.springframework.stereotype.Service; | ||||||
|  | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||||||
|  | import com.glxp.api.dao.stat.StatCorpFlbmMapper; | ||||||
|  | import com.glxp.api.entity.stat.StatCorpFlbmEntity; | ||||||
|  | 
 | ||||||
|  | import javax.annotation.Resource; | ||||||
|  | import java.util.Collections; | ||||||
|  | import java.util.List; | ||||||
|  | 
 | ||||||
|  | @Service | ||||||
|  | public class StatCorpFlbmService extends ServiceImpl<StatCorpFlbmMapper, StatCorpFlbmEntity> { | ||||||
|  | 
 | ||||||
|  |     @Resource | ||||||
|  |     StatCorpFlbmMapper statCorpFlbmMapper; | ||||||
|  | 
 | ||||||
|  |     public List<StatCorpFlbmEntity> filterList(StatCorpInvRequest statCorpInvRequest) { | ||||||
|  |         if (statCorpInvRequest == null) { | ||||||
|  |             return Collections.emptyList(); | ||||||
|  |         } | ||||||
|  |         int offset = (statCorpInvRequest.getPage() - 1) * statCorpInvRequest.getLimit(); | ||||||
|  |         PageHelper.offsetPage(offset, statCorpInvRequest.getLimit()); | ||||||
|  |         return statCorpFlbmMapper.filterList(statCorpInvRequest); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @ -0,0 +1,27 @@ | |||||||
|  | <?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.StatCorpFlbmMapper"> | ||||||
|  |     <resultMap id="BaseResultMap" type="com.glxp.api.entity.stat.StatCorpFlbmEntity"> | ||||||
|  |         <!--@mbg.generated--> | ||||||
|  |         <!--@Table stat_corp_flbm--> | ||||||
|  |         <id column="id" jdbcType="INTEGER" property="id"/> | ||||||
|  |         <result column="flmc" jdbcType="VARCHAR" property="flmc"/> | ||||||
|  |         <result column="flbm" jdbcType="VARCHAR" property="flbm"/> | ||||||
|  |         <result column="companyId" jdbcType="INTEGER" property="companyId"/> | ||||||
|  |         <result column="corpName" jdbcType="VARCHAR" property="corpName"/> | ||||||
|  |         <result column="count" jdbcType="INTEGER" property="count"/> | ||||||
|  |         <result column="remark" jdbcType="VARCHAR" property="remark"/> | ||||||
|  |     </resultMap> | ||||||
|  |     <sql id="Base_Column_List"> | ||||||
|  |         <!--@mbg.generated--> | ||||||
|  |         id, flmc, flbm, companyId, corpName, `count`, remark | ||||||
|  |     </sql> | ||||||
|  |     <select id="filterList" | ||||||
|  |             resultType="com.glxp.api.entity.stat.StatCorpFlbmEntity"> | ||||||
|  |         SELECT * | ||||||
|  |         FROM stat_corp_flbm | ||||||
|  | 
 | ||||||
|  |         <where> | ||||||
|  |         </where> | ||||||
|  |     </select> | ||||||
|  | </mapper> | ||||||
					Loading…
					
					
				
		Reference in New Issue