提交 64f6801c authored 作者: 李秋林's avatar 李秋林

上传系列、口味、明细等Mapper对象;添加settings.xml

上级 96c22c9a
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>/Library/apache-maven-3.8.6/repository</localRepository>
<mirrors>
<!-- <mirror>-->
<!-- <id>mirror</id>-->
<!-- <mirrorOf>!rdc-releases,!rdc-snapshots</mirrorOf>-->
<!-- <name>mirror</name>-->
<!-- <url>http://maven.aliyun.com/nexus/content/groups/public</url>-->
<!-- </mirror>-->
<mirror>
<id>nexus-tencentyun</id>
<!-- 此配置避免了本仓库制品的拉取流量被切换到腾讯云镜像源,保证您在使用镜像加速的同时可以从本仓库拉取制品 -->
<mirrorOf>!g-pkkp8204-wangxiaolu-sfa-maven</mirrorOf>
<name>Nexus tencentyun</name>
<url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url>
</mirror>
</mirrors>
<servers>
<server>
<id>rdc-releases</id>
<username>G8G0iR</username>
<password>Do1l7QXnPg</password>
</server>
<server>
<id>rdc-snapshots</id>
<username>G8G0iR</username>
<password>Do1l7QXnPg</password>
</server>
<server>
<id>g-pkkp8204-wangxiaolu-sfa-maven</id>
<username>liqiulin@wangxiaolu.com.cn</username>
<password>Wangxiaolu_lql123</password>
</server>
</servers>
<profiles>
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>central</id>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>snapshots</id>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>rdc-releases</id>
<url>https://repo.rdc.aliyun.com/repository/35126-release-kef1BI/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>rdc-snapshots</id>
<url>https://repo.rdc.aliyun.com/repository/35126-snapshot-j8LEe7/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>snapshots</id>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>rdc-releases</id>
<url>https://repo.rdc.aliyun.com/repository/35126-release-kef1BI/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>rdc-snapshots</id>
<url>https://repo.rdc.aliyun.com/repository/35126-snapshot-j8LEe7/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>Repository Proxy</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>g-pkkp8204-wangxiaolu-sfa-maven</id>
<name>maven</name>
<url>https://g-pkkp8204-maven.pkg.coding.net/repository/wangxiaolu-sfa/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
\ No newline at end of file
package com.link.bi.domain.entity;
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.math.BigDecimal;
import java.util.Date;
import lombok.Data;
/**
* 电商-每日销售明细
* @TableName ec_market_daily_detail
*/
@TableName(value ="ec_market_daily_detail")
@Data
public class EcMarketDailyDetail implements Serializable {
/**
* 电商-每日销售明细-id
*/
@TableId(type = IdType.AUTO)
private Long emddId;
/**
* 年份
*/
private Integer year;
/**
* 月份
*/
private Integer month;
/**
* 日期
*/
private Date date;
/**
* 平台
*/
private Integer platformId;
/**
* 1 天猫; 2 抖音; 3 拼多多; 4 京东……
*/
private String platform;
/**
* 旺店通店铺编码
*/
private String storeCode;
/**
* 旺店通店铺
*/
private String storeName;
/**
* 仓库
*/
private String storage;
/**
* 分类
*/
private String mClass;
/**
* 货品品类id
*/
private Integer seriesId;
/**
* 货品品类
*/
private String series;
/**
* 商品/货品编码
*/
private String prdCode;
/**
* 商品/货品名称
*/
private String prdName;
/**
* 商品/货品-简称
*/
private String prdByname;
/**
* 商品规格-69码(绝大部分)
*/
private String prdSpec;
/**
* 均价
*/
private BigDecimal averagePrice;
/**
* 分类(class)以上,大类
*/
private String bigClass;
/**
* 实际销售量
*/
private BigDecimal saleCount;
/**
* 实际销售额
*/
private BigDecimal saleSum;
/**
* 付款总金额
*/
private BigDecimal payAmount;
/**
* 销售总金额
*/
private BigDecimal saleAmount;
/**
* 发货数量
*/
private BigDecimal shipmentsCount;
/**
* 售前退款量
*/
private BigDecimal preSaleRcount;
/**
* 售前退款金额
*/
private BigDecimal preSaleRsum;
/**
* 售后退货量
*/
private BigDecimal afterSaleRcount;
/**
* 售后退款金额
*/
private BigDecimal afterSaleRsum;
/**
* 异常仓销量
*/
private BigDecimal abnormalCount;
/**
* 退货率(%)
*/
private Integer ratioSaleReturn;
/**
* 售前退款率(%)
*/
private Integer ratioPreSaleRefund;
/**
* 售前退款率(%)
*/
private Integer ratioAfterSaleReturn;
/**
* 商/货品规格名称
*/
private String prdSpecName;
/**
* 品牌
*/
private String brand;
/**
* 单品属性1
*/
private String nature1;
/**
* 单品属性2
*/
private String nature2;
/**
* 单品属性3
*/
private String nature3;
/**
* 发货总金额
*/
private BigDecimal shipmentsAmount;
/**
* 邮费
*/
private BigDecimal freight;
/**
* 邮资成本
*/
private BigDecimal freightCost;
/**
* 单品属性4
*/
private String nature4;
/**
* 单品属性5
*/
private String nature5;
/**
* 单品属性6
*/
private String nature6;
/**
* 单品金额1
*/
private BigDecimal singlePrice1;
/**
* 单品金额2
*/
private BigDecimal singlePrice2;
/**
* 供应商名称
*/
private String dealerName;
/**
* 零售价
*/
private BigDecimal retailPrice;
/**
* 付款量
*/
private BigDecimal payCount;
/**
* 货品标签
*/
private String prdTag;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.link.bi.domain.entity;
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 com.sfa.common.core.web.domain.BaseDo;
import lombok.Data;
/**
* 电商-店铺对象 ec_store
*
* @author admin
* @date 2024-11-20
*/
@TableName(value ="ec_store")
@Data
public class EcStore extends BaseDo
{
/**
* 店铺id
*/
@TableId(type = IdType.AUTO)
private Integer storeId;
/**
* 旺店通店铺编码
*/
private String storeCode;
/**
* 店铺名称
*/
private String storeName;
/**
* 渠道
*/
private Integer channelId;
/**
* 1 电商; 2 线下;
*/
private String channel;
/**
* 平台
*/
private Integer platformId;
/**
* 1 天猫; 2 抖音; 3 拼多多; 4 京东; 5 私域; 6 分销; 7 线下; 8 样品; 9 团购; 10 其他;
*/
private String platform;
/**
* 0正常,1停用
*/
private Integer status;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.link.bi.domain.entity;
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.Data;
/**
* 商品-管理表
* @TableName pro_info
*/
@TableName(value ="pro_info")
@Data
public class ProInfo implements Serializable {
/**
* 主键id
*/
@TableId(type = IdType.AUTO)
private Integer prdId;
/**
* 商品编码
*/
private String prdCode;
/**
* 商品名称
*/
private String prdName;
/**
* 商品系列
*/
private Integer seriesId;
/**
* 商品系列
*/
private String series;
/**
* 商品规格-69码
*/
private String prdSpec;
/**
* 销售状态:1:在售,0:停售
*/
private Integer saleStatus;
/**
* 0:正常;1:删除
*/
private Integer status;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.link.bi.domain.entity;
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.Data;
/**
* 商品-系列表
* @TableName pro_series
*/
@TableName(value ="pro_series")
@Data
public class ProSeries implements Serializable {
/**
* 主键id
*/
@TableId(type = IdType.AUTO)
private Integer seriesId;
/**
* 商品类型名称
*/
private String seriesName;
/**
* 0:正常;1:删除
*/
private Integer status;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.link.bi.domain.mapper;
import com.link.bi.domain.entity.EcMarketDailyDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.link.bi.domain.wq.MarketDetailWq;
import com.link.bi.pojo.response.MarketSummaryDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author a02200059
* @description 针对表【ec_market_daily_detail(电商-每日销售明细)】的数据库操作Mapper
* @createDate 2024-11-21 15:21:54
* @Entity com.link.bi.domain.entity.EcMarketDailyDetail
*/
@Repository
@Mapper
public interface EcMarketDailyDetailMapper extends BaseMapper<EcMarketDailyDetail> {
/**
* 查询年、月、近7天、昨天数据
*/
List<MarketSummaryDto> summaryByPlatform(@Param("qw") MarketDetailWq qw);
}
package com.link.bi.domain.mapper;
import com.link.bi.domain.entity.EcStore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* @author a02200059
* @description 针对表【ec_store(电商-店铺)】的数据库操作Mapper
* @createDate 2024-11-20 15:09:11
* @Entity com.link.bi.domain.entity.EcStore
*/
@Repository
@Mapper
public interface EcStoreMapper extends BaseMapper<EcStore> {
}
package com.link.bi.domain.mapper;
import com.link.bi.domain.entity.ProInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* @author a02200059
* @description 针对表【pro_info(商品-管理表)】的数据库操作Mapper
* @createDate 2024-11-22 16:48:35
* @Entity com.link.bi.domain.entity.ProInfo
*/
@Repository
@Mapper
public interface ProInfoMapper extends BaseMapper<ProInfo> {
}
package com.link.bi.domain.mapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.link.bi.domain.entity.ProSeries;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* @author a02200059
* @description 针对表【pro_series(商品-系列表)】的数据库操作Mapper
* @createDate 2024-11-22 16:48:35
* @Entity com.link.bi.domain.entity.ProSeries
*/
@Repository
@Mapper
public interface ProSeriesMapper extends BaseMapper<ProSeries> {
List<Map<String, Object>> selectListByStatus(Integer status);
}
<?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.link.bi.domain.mapper.EcMarketDailyDetailMapper">
<resultMap id="BaseResultMap" type="com.link.bi.domain.entity.EcMarketDailyDetail">
<id property="emddId" column="emdd_id" jdbcType="BIGINT"/>
<result property="year" column="year" jdbcType="INTEGER"/>
<result property="month" column="month" jdbcType="INTEGER"/>
<result property="date" column="date" jdbcType="DATE"/>
<result property="platformId" column="platform_id" jdbcType="INTEGER"/>
<result property="platform" column="platform" jdbcType="VARCHAR"/>
<result property="storeCode" column="store_code" jdbcType="VARCHAR"/>
<result property="storeName" column="store_name" jdbcType="VARCHAR"/>
<result property="storage" column="storage" jdbcType="VARCHAR"/>
<result property="mClass" column="m_class" jdbcType="VARCHAR"/>
<result property="seriesId" column="series_id" jdbcType="INTEGER"/>
<result property="series" column="series" jdbcType="VARCHAR"/>
<result property="prdCode" column="prd_code" jdbcType="VARCHAR"/>
<result property="prdName" column="prd_name" jdbcType="VARCHAR"/>
<result property="prdByname" column="prd_byname" jdbcType="VARCHAR"/>
<result property="prdSpec" column="prd_spec" jdbcType="VARCHAR"/>
<result property="averagePrice" column="average_price" jdbcType="DECIMAL"/>
<result property="bigClass" column="big_class" jdbcType="VARCHAR"/>
<result property="saleCount" column="sale_count" jdbcType="DECIMAL"/>
<result property="saleSum" column="sale_sum" jdbcType="DECIMAL"/>
<result property="payAmount" column="pay_amount" jdbcType="DECIMAL"/>
<result property="saleAmount" column="sale_amount" jdbcType="DECIMAL"/>
<result property="shipmentsCount" column="shipments_count" jdbcType="DECIMAL"/>
<result property="preSaleRcount" column="pre_sale_rcount" jdbcType="DECIMAL"/>
<result property="preSaleRsum" column="pre_sale_rsum" jdbcType="DECIMAL"/>
<result property="afterSaleRcount" column="after_sale_rcount" jdbcType="DECIMAL"/>
<result property="afterSaleRsum" column="after_sale_rsum" jdbcType="DECIMAL"/>
<result property="abnormalCount" column="abnormal_count" jdbcType="DECIMAL"/>
<result property="ratioSaleReturn" column="ratio_sale_return" jdbcType="INTEGER"/>
<result property="ratioPreSaleRefund" column="ratio_pre_sale_refund" jdbcType="INTEGER"/>
<result property="ratioAfterSaleReturn" column="ratio_after_sale_return" jdbcType="INTEGER"/>
<result property="prdSpecName" column="prd_spec_name" jdbcType="VARCHAR"/>
<result property="brand" column="brand" jdbcType="VARCHAR"/>
<result property="nature1" column="nature1" jdbcType="VARCHAR"/>
<result property="nature2" column="nature2" jdbcType="VARCHAR"/>
<result property="nature3" column="nature3" jdbcType="VARCHAR"/>
<result property="shipmentsAmount" column="shipments_amount" jdbcType="DECIMAL"/>
<result property="freight" column="freight" jdbcType="DECIMAL"/>
<result property="freightCost" column="freight_cost" jdbcType="DECIMAL"/>
<result property="nature4" column="nature4" jdbcType="VARCHAR"/>
<result property="nature5" column="nature5" jdbcType="VARCHAR"/>
<result property="nature6" column="nature6" jdbcType="VARCHAR"/>
<result property="singlePrice1" column="single_price1" jdbcType="DECIMAL"/>
<result property="singlePrice2" column="single_price2" jdbcType="DECIMAL"/>
<result property="dealerName" column="dealer_name" jdbcType="VARCHAR"/>
<result property="retailPrice" column="retail_price" jdbcType="DECIMAL"/>
<result property="payCount" column="pay_count" jdbcType="DECIMAL"/>
<result property="prdTag" column="prd_tag" jdbcType="VARCHAR"/>
</resultMap>
<resultMap id="SummaryByPlatformMap" type="com.link.bi.pojo.response.MarketSummaryDto">
<result property="platformId" column="platform_id" jdbcType="INTEGER"/>
<result property="platform" column="platform" jdbcType="VARCHAR"/>
<result property="saleCountY" column="sale_count_y" jdbcType="DECIMAL"/>
<result property="saleSumY" column="sale_sum_y" jdbcType="DECIMAL"/>
<result property="saleCountM" column="sale_count_m" jdbcType="DECIMAL"/>
<result property="saleSumM" column="sale_sum_m" jdbcType="DECIMAL"/>
<result property="saleCountW" column="sale_count_w" jdbcType="DECIMAL"/>
<result property="saleSumW" column="sale_sum_w" jdbcType="DECIMAL"/>
<result property="saleCountYs" column="sale_count_ys" jdbcType="DECIMAL"/>
<result property="saleSumYs" column="sale_sum_ys" jdbcType="DECIMAL"/>
</resultMap>
<sql id="Base_Column_List">
emdd_id,year,month,
date,platform_id,platform,
store_code,store_name,storage,
m_class,series_id,series,
prd_code,prd_name,prd_byname,
prd_spec,average_price,big_class,
sale_count,sale_sum,pay_amount,
sale_amount,shipments_count,pre_sale_rcount,
pre_sale_rsum,after_sale_rcount,after_sale_rsum,
abnormal_count,ratio_sale_return,ratio_pre_sale_refund,
ratio_after_sale_return,prd_spec_name,brand,
nature1,nature2,nature3,
shipments_amount,freight,freight_cost,
nature4,nature5,nature6,
single_price1,single_price2,dealer_name,
retail_price,pay_count,prd_tag
</sql>
<sql id="summaryWhere">
<if test="qw.seriesId != null">
and series_id = #{qw.seriesId}
</if>
<if test="qw.prdCode != null and qw.prdCode != '' ">
and prd_code = #{qw.prdCode}
</if>
</sql>
<select id="summaryByPlatform" resultMap="SummaryByPlatformMap" >
select ey.platform as platform,
ey.platform_id as platform_id,
ey.sale_count_y,
ey.sale_sum_y,
em.sale_count_m,
em.sale_sum_m,
ew.sale_count_w,
ew.sale_sum_w,
eys.sale_count_ys,
eys.sale_sum_ys
from (select platform, platform_id, sum(sale_count) as sale_count_y, sum(sale_sum) as sale_sum_y
from ec_market_daily_detail
where year = #{qw.year}
and platform_id is not null
<include refid="summaryWhere"/>
group by platform, platform_id) ey,
(select platform, platform_id, sum(sale_count) as sale_count_m, sum(sale_sum) as sale_sum_m
from ec_market_daily_detail
where year = #{qw.year}
and month = #{qw.month}
and platform_id is not null
<include refid="summaryWhere"/>
group by platform, platform_id) em,
(select platform, platform_id, sum(sale_count) as sale_count_w, sum(sale_sum) as sale_sum_w
from ec_market_daily_detail
where date >= #{qw.date}
and platform_id is not null
<include refid="summaryWhere"/>
group by platform, platform_id) ew,
(select platform, platform_id, sum(sale_count) as sale_count_ys, sum(sale_sum) as sale_sum_ys
from ec_market_daily_detail
where date = #{qw.date}
and platform_id is not null
<include refid="summaryWhere"/>
group by platform, platform_id) eys
where ey.platform_id = em.platform_id
and ey.platform_id = ew.platform_id
and ey.platform_id = eys.platform_id;
</select>
</mapper>
<?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.link.bi.domain.mapper.EcStoreMapper">
<resultMap id="BaseResultMap" type="com.link.bi.domain.entity.EcStore">
<id property="storeId" column="store_id" jdbcType="INTEGER"/>
<result property="storeCode" column="store_code" jdbcType="VARCHAR"/>
<result property="storeName" column="store_name" jdbcType="VARCHAR"/>
<result property="channelId" column="channel_id" jdbcType="INTEGER"/>
<result property="channel" column="channel" jdbcType="VARCHAR"/>
<result property="platformId" column="platform_id" jdbcType="INTEGER"/>
<result property="platform" column="platform" jdbcType="VARCHAR"/>
<result property="status" column="status" jdbcType="INTEGER"/>
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
<result property="createUserId" column="create_user_id" jdbcType="BIGINT"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
<result property="updateUserId" column="update_user_id" jdbcType="BIGINT"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
store_id,store_code,store_name,
channel_id,channel,platform_id,
platform,status,create_by,
create_user_id,create_time,update_by,
update_user_id,update_time
</sql>
</mapper>
<?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.link.bi.domain.mapper.ProInfoMapper">
<resultMap id="BaseResultMap" type="com.link.bi.domain.entity.ProInfo">
<id property="prdId" column="prd_id" jdbcType="INTEGER"/>
<result property="prdCode" column="prd_code" jdbcType="VARCHAR"/>
<result property="prdName" column="prd_name" jdbcType="VARCHAR"/>
<result property="seriesId" column="series_id" jdbcType="INTEGER"/>
<result property="series" column="series" jdbcType="VARCHAR"/>
<result property="prdSpec" column="prd_spec" jdbcType="VARCHAR"/>
<result property="saleStatus" column="sale_status" jdbcType="INTEGER"/>
<result property="status" column="status" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
prd_id,prd_code,prd_name,
series_id,series,prd_spec,
sale_status,status
</sql>
</mapper>
<?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.link.bi.domain.mapper.ProSeriesMapper">
<resultMap id="BaseResultMap" type="com.link.bi.domain.entity.ProSeries">
<id property="seriesId" column="series_id" jdbcType="INTEGER"/>
<result property="seriesName" column="series_name" jdbcType="VARCHAR"/>
<result property="status" column="status" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
series_id,series_name,status
</sql>
<select id="selectListByStatus" resultType="java.util.Map">
SELECT series_id as seriesId,series_name as seriesName FROM pro_series WHERE status = #{status}
</select>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论