Commit 28e117f2 by 叶立庆

Merge branch 'v5.8.0' into 'master'

上线合并

See merge request !22
2 parents d6536d73 6bf950dc
Showing 364 changed files with 3488 additions and 79 deletions
/rpc-dj-smartcarlife-api/target/
rpc-dj-smartcarlife/.classpath
rpc-dj-smartcarlife/.factorypath
rpc-dj-smartcarlife/.project
rpc-dj-smartcarlife/.settings/**
rpc-dj-smartcarlife-api/.factorypath
rpc-dj-smartcarlife-api/.classpath
rpc-dj-smartcarlife-api/.project
rpc-dj-smartcarlife-api/.settings/**
rpc-dj-smartcarlife/diamond_config_data.log
rpc-dj-smartcarlife/logging.*
.gitignore
diamond_config_data.log
logging.path_IS_UNDEFINED
logging.path_IS_UNDEFINED.druid_slow_sql
.idea/compiler.xml
.idea/encodings.xml
.idea/jarRepositories.xml
.idea/MarsCodeWorkspaceAppSettings.xml
.idea/misc.xml
.idea/modules.xml
.idea/rpc-smartcarlife.iml
.idea/vcs.xml
{
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx4G -Xms100m -Xlog:disable -javaagent:\"c:\\Users\\66\\.trae-cn\\extensions\\gabrielbb.vscode-lombok-1.0.1-universal\\server\\lombok.jar\"",
"java.debug.settings.onBuildFailureProceed": true
}
\ No newline at end of file
......@@ -12,7 +12,7 @@
<name>rpc-dj-smartcarlife-api</name>
<properties>
<deploy.scanPackage>cn.com.glsx.dj.smartcarlife.remote</deploy.scanPackage>
<smartcarlife.api.version>5.7.4-SNAPSHOT</smartcarlife.api.version>
<smartcarlife.api.version>5.8.0-SNAPSHOT</smartcarlife.api.version>
<shopamll.api.version>5.6.4-SNAPSHOT</shopamll.api.version>
</properties>
<dependencies>
......
......@@ -73,5 +73,7 @@ public class BaseGoodsDTO extends BaseGoods {
private RpcPagination<UpgradeGoodsDTO> upgradeGoodsPage;
private List<GoodsSpecificationNameDTO> goodsSpecificationNameList;
@ApiModelProperty(notes = "产品状态 0-未上架 1-已上架(对应dj_car_life_upgrade_goods.on_shelf_status)")
private Byte productStatus;
}
......@@ -77,5 +77,10 @@ public class ConstructionSubOrderRelationDTO extends ConstructionSubOrderRelatio
@ApiModelProperty(notes = "库存总数")
private String stock;
/**
* 物料编码(升级商品type字段)
*/
@ApiModelProperty(notes = "物料编码")
private String materialCode;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto;
import cn.com.glsx.dj.smartcarlife.model.CreateBusinessApproveMerchant;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
......@@ -34,4 +35,44 @@ public class CreateBusinessApproveMerchantDTO extends CreateBusinessApproveMerch
* 当前商户是否为华为门店
*/
private Boolean isHuawei;
/**
* 省区域编码
*/
@ApiModelProperty(notes = "省区域编码")
private String provinceCode;
/**
* 省区域名称
*/
@ApiModelProperty(notes = "省区域名称")
private String provinceName;
/**
* 市区域编码
*/
@ApiModelProperty(notes = "市区域编码")
private String cityCode;
/**
* 市区域名称
*/
@ApiModelProperty(notes = "市区域名称")
private String cityName;
/**
* 基础场景编码
*/
@ApiModelProperty(notes = "基础场景编码")
private String baseSceneCode;
/**
* 流量方业务数据
*/
private TrafficPartyBusinessDTO trafficPartyBusinessData;
/**
* 销售品类业务数据列表
*/
private List<ProductDetailBusinessDTO> productDetailBusinessDataList;
}
\ No newline at end of file
......@@ -141,4 +141,10 @@ public class CustomerInviteRecordDTO extends CustomerInviteRecord{
@ApiModelProperty(notes = "订单状态(1待升级;2:未升级;3待支付;4已支付;5已退款;6:已完成;9:已撤销;10:已关闭;11:已失效;12:已退款;13:待上传)")
private Byte orderStatus;
@ApiModelProperty(notes = "基础场景编码")
private String baseSceneCode;
@ApiModelProperty(notes = "基础场景名称")
private String baseSceneName;
}
......@@ -43,7 +43,12 @@ public class DivisionRuleEffectRecordDTO extends DivisionRuleEffectRecord {
private List<Byte> sceneTypes;
@ApiModelProperty(notes = "baseSceneCode")
private String baseSceneCode;
private String realityPlatformMerchantId;
private String realityPlatformMerchantName;
private List<Byte> ruleTypes;
}
......@@ -47,4 +47,7 @@ public class ExpenseCategoryDTO implements Serializable {
private Boolean ignoreDeletedFlag;
private Integer categoryToSort;
@ApiModelProperty(notes="场景标识")
private String baseSceneCode;
}
......@@ -52,7 +52,6 @@ public class FeeCategoryDTO extends FeeCategory {
private String deletedFlag;
@NotEmpty(groups = {FeeCategoryRemote.SaveFeeCategory.class})
private List<Byte> applicationSceneTypes;
private FeeCategoryName parentFeeCategoryName;
......@@ -60,4 +59,6 @@ public class FeeCategoryDTO extends FeeCategory {
@ApiModelProperty(notes="排序(1:更新时间倒序;2:更新时间顺序)",dataType="Byte")
private Byte orderBy;
@ApiModelProperty(notes = "场景码列表,用于查询条件过滤")
private List<String> baseSceneCodeList;
}
......@@ -59,6 +59,9 @@ public class GoodsInfoDTO extends GoodsInfo {
private Integer merchantId;
@ApiModelProperty(notes = "场景编码")
private String baseSceneCode;
private List<Integer> merchantIds;
......@@ -122,4 +125,23 @@ public class GoodsInfoDTO extends GoodsInfo {
@ApiModelProperty(notes = "第三方编码")
private String thirdPartyCode;
@ApiModelProperty(notes = "供应商名称")
private String providerName;
private Integer baseGoodsId;
@ApiModelProperty(notes = "供应商ID列表(对应dj_car_life_goods_provider主键id)")
private List<Integer> providerIds;
@ApiModelProperty(notes = "产品状态 0-未上架 1-已上架(对应dj_car_life_upgrade_goods.on_shelf_status)")
private Byte productStatus;
@ApiModelProperty(notes = "适用区域城市编码列表(对应dj_car_life_upgrade_goods_area.city_code)")
private List<String> cityCodes;
/**
* sku编码集合
*/
private List<String> commodityCodeList;
}
......@@ -68,4 +68,9 @@ public class GoodsNewDTO implements Serializable {
private Boolean needReview;
private List<Integer> deletedUpgradeGoodsIdList;
/**
* 是否来自 scrm 同步(true:scrm 同步调用;false/null:D+ 系统调用)
*/
private Boolean scrmSyncUpdate;
}
......@@ -221,7 +221,9 @@ public class GoodsOrderDTO extends GoodsOrder{
private Integer testUpgradeGoodsId;
private String testPackageCode;
private String testMerchantGoodsCode;
private Integer upgradeGoodsType;
private List<Integer> upgradeGoodsTypeList;
......@@ -486,6 +488,17 @@ public class GoodsOrderDTO extends GoodsOrder{
@ApiModelProperty(notes = "完成施工结束时间", dataType = "string", example = "2020-12-25 23:59:59")
private String completionEndTime;
@ApiModelProperty(notes="基础场景编码")
private String baseSceneCode;
@ApiModelProperty(notes="基础场景名称")
private String baseSceneName;
@ApiModelProperty(notes="交易参考号列表")
private List<String> outTradeNos;
/**
* 是否排除施工单信息,0-不排除,1-排除
*/
private int excludeConstructionFlag;
}
......@@ -222,4 +222,13 @@ public class GoodsOrderProfitAllocationDTO extends GoodsOrderProfitAllocation {
@ApiModelProperty(notes="人力成本")
private BigDecimal laborCost;
@ApiModelProperty(notes = "基础场景编码列表,用于多值查询")
private List<String> baseSceneCodeList;
@ApiModelProperty(notes = "基础场景编码名称")
private String baseSceneName;
@ApiModelProperty(notes = "客户来源(0-售前;1-售后;2-自然到店)")
private Byte salesType;
}
package cn.com.glsx.dj.smartcarlife.dto;
import cn.com.glsx.dj.smartcarlife.dto.goods.UpgradeGoodsAreaDTO;
import cn.com.glsx.dj.smartcarlife.model.UpgradeGoodsCarTypeConfig;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
......@@ -10,6 +12,7 @@ import lombok.ToString;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
......@@ -26,6 +29,9 @@ public class GoodsSkuDTO implements Serializable {
@ApiModelProperty(notes = "upgradeGoodsId")
private Integer upgradeGoodsId;
@ApiModelProperty(notes = "goodsCode")
private String goodsCode;
@ApiModelProperty(notes = "baseGoodsCommodityCode-spuCode")
private String baseGoodsCommodityCode;
......@@ -137,6 +143,21 @@ public class GoodsSkuDTO implements Serializable {
@ApiModelProperty(notes = "库存上限预警")
private BigDecimal warningValueMax;
@ApiModelProperty(notes = "供应商ID")
private Integer providerId;
@ApiModelProperty(notes = "供应商名称")
private String providerName;
@ApiModelProperty(notes = "适用区域列表")
private List<UpgradeGoodsAreaDTO> upgradeGoodsAreaList;
@ApiModelProperty(notes = "产品状态")
private Byte productStatus;
@ApiModelProperty(notes = "适配车型列表")
private List<UpgradeGoodsCarTypeConfig> carTypeConfigList;
@ApiModelProperty(notes = "适用车型")
private String carTypeStr;
......@@ -148,4 +169,9 @@ public class GoodsSkuDTO implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedDate;
@ApiModelProperty(notes = "规格类型")
private Byte specificationType;
@ApiModelProperty(notes = "备注")
private String remark;
}
......@@ -58,7 +58,7 @@ public class GoodsSubOrderExportDTO implements Serializable {
//@ExcelNumericCell(index = 28)
private BigDecimal totalPrice;
@ExcelNumericCell(index = 31)
@ExcelNumericCell(index = 32)
@ExcelProperty(value="商品单价")
private BigDecimal upgradePrice;
......@@ -79,18 +79,18 @@ public class GoodsSubOrderExportDTO implements Serializable {
*/
private BigDecimal discountPrice;
@ExcelNumericCell(index = 38)
@ExcelNumericCell(index = 39)
@ExcelProperty(value="共减")
private BigDecimal discountAmount;
@ExcelProperty(value="折扣后金额")
private BigDecimal finalPrice;
@ExcelNumericCell(index = 32)
@ExcelNumericCell(index = 33)
@ExcelProperty(value="商品销售单价")
private BigDecimal singleProductSalesPrice;
@ExcelNumericCell(index = 33)
@ExcelNumericCell(index = 34)
@ExcelProperty(value="商品实付单价")
private BigDecimal singleProductFinalPrice;
......
package cn.com.glsx.dj.smartcarlife.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class MerchantGoodsRuleListDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("升级商品id")
private Integer upgradeGoodsId;
@ApiModelProperty("商品展示名称")
private String goodsShowName;
@ApiModelProperty("商户商品编码")
private String merchantGoodsCode;
@ApiModelProperty("套餐名称")
private String packageName;
}
......@@ -42,6 +42,9 @@ public class MerchantGoodsTypeGroupDivisionRuleDTO extends MerchantGoodsTypeGrou
@ApiModelProperty(notes="场景(0:1.0;1:1.1;2:1.2;3:1.3)")
private Byte sceneType;
@ApiModelProperty(notes="具体场景编码")
private String baseSceneCode;
private Integer realityShopMerchantId;
private String realityShopMerchantName;
......
......@@ -47,7 +47,10 @@ public class MerchantGoodsTypeGroupReconciliationRuleDTO extends MerchantGoodsTy
//用于嘀加上架,上架规则前该品类规则的唯一标志
private String uuid;
@ApiModelProperty(notes = "信息是否填写完整(Y:是,N:否)")
private String integrity;
@ApiModelProperty(notes="操作类型(ADD/UPDATE/DELETE)", dataType="string")
private String type;
}
......@@ -114,5 +114,7 @@ public class MerchantGoodsTypeGroupSettleDivisionRuleDTO implements Serializable
//用于嘀加上架,上架规则前该品类规则的唯一标志
private String uuid;
@ApiModelProperty(notes="操作类型(ADD/UPDATE/DELETE)", dataType="string")
private String type;
}
package cn.com.glsx.dj.smartcarlife.dto;
import cn.com.glsx.dj.smartcarlife.model.ServiceMerchant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
......@@ -42,4 +43,56 @@ public class MerchantSceneDTO implements Serializable {
@ApiModelProperty(name="updatedDate", notes = "更新时间", dataType = "date")
private Date updatedDate;
@ApiModelProperty(name="baseSceneCode", notes = "业务场景编码", dataType = "string")
private String baseSceneCode;
@ApiModelProperty(name="status", notes = "状态(1-启用,0-禁用)", dataType = "int")
private Integer status;
@ApiModelProperty(name="baseSceneCode", notes = "业务场景编码", dataType = "string")
private String baseSceneCodeName;
@ApiModelProperty(name="newMerchantScene", notes = "新商户场景信息", dataType = "object")
private NewMerchantSceneDTO newMerchantScene;
/**
* 省编码
*/
private String provinceCode;
/**
* 省名称
*/
private String provinceName;
/**
* 市编码
*/
private String cityCode;
/**
* 市名称
*/
private String cityName;
/**
* 区县编码
*/
private String districtCode;
/**
* 区县名称
*/
private String districtName;
/**
* 商户地址
*/
private String merchantAddress;
/**
* 商户地址全部
*/
private String merchantFullAddress;
}
......@@ -18,6 +18,10 @@ public class MerchantSceneDetailDTO implements Serializable {
@ApiModelProperty(name="scene", notes = "场景,0-2.0, 1-1.1, 2-1.2, 3-1.3", dataType = "int")
private Integer scene;
@ApiModelProperty(name="baseSceneCode", notes = "业务场景编码", dataType = "string")
private String baseSceneCode;
@ApiModelProperty(name="merchantId", notes = "4s店id", dataType = "int")
private Integer merchantId;
......
......@@ -35,6 +35,9 @@ public class MerchantSettleDistributeRuleDTO implements Serializable {
@NotNull(groups = {MerchantSettleDistributeRuleRemote.SaveRule.class,SaveSingleGoodsTypeRule.class})
private Byte sceneType;
@ApiModelProperty(notes="基础场景编码(细粒度场景)", dataType="string")
private String baseSceneCode;
@NotEmpty(groups = {MerchantSettleDistributeRuleRemote.SaveRule.class})
@ApiModelProperty(notes="支付渠道开启自动分账与分账时间设置")
private List<DivisionRuleAutoDTO> divisionRuleAutos;
......
package cn.com.glsx.dj.smartcarlife.dto;
import cn.com.glsx.dj.smartcarlife.model.ServiceMerchant;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import lombok.Data;
import lombok.ToString;
@Data
@ToString
public class NewMerchantSceneDTO implements Serializable {
/**
*
*/
private static final long serialVersionUID = -6393162452365015283L;
@ApiModelProperty(name = "merchantId", notes = "商户id", dataType = "int")
private Integer merchantId;
@ApiModelProperty(name = "merchantName", notes = "商户名称", dataType = "string")
private String merchantName;
@ApiModelProperty(name = "userType", notes = "商户类型", dataType = "byte")
private Integer userType;
@ApiModelProperty(name = "channelType", notes = "渠道,1:嘀加渠道,2:广汇渠道", dataType = "int")
private Integer channelType;
@ApiModelProperty(notes = "自动分账标识(Y是,N否)")
private String autoFlag;
@ApiModelProperty(notes = "分账测试状态标识(Y测试通过,N测试中未通过)")
private String testFlag;
@ApiModelProperty(name = "updatedDate", notes = "更新时间", dataType = "date")
private Date updatedDate;
@ApiModelProperty(name = "baseSceneCode", notes = "业务场景编码", dataType = "string")
private String baseSceneCode;
@ApiModelProperty(name = "status", notes = "状态(1-启用,0-禁用)", dataType = "int")
private Integer status;
@ApiModelProperty(name = "baseSceneCode", notes = "业务场景编码", dataType = "string")
private String baseSceneCodeName;
/**
* 园区店
*/
@ApiModelProperty(name = "yqMerchant", notes = "园区店信息", dataType = "object")
private ServiceMerchant yqMerchant;
@ApiModelProperty(name = "serviceList", notes = "服务商列表信息", dataType = "list")
private List<ServiceMerchant> serviceList;
@ApiModelProperty(name = "divisionType", notes = "正式分账类型", dataType = "string")
private String divisionType;
@ApiModelProperty(notes = "分账方式(1线下对账,2线上分账)")
private Byte divisionTypeByte;
/**
* 修改时间
*/
@ApiModelProperty(name = "maxUpdatedDate", notes = "最新修改时间", dataType = "date")
private Date maxUpdatedDate;
}
package cn.com.glsx.dj.smartcarlife.dto;
import lombok.Data;
import java.io.Serializable;
@Data
public class NotifyStaffDTO implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private String phone;
private Integer staffType;
}
......@@ -117,4 +117,13 @@ public class OrderDivisionDTO extends OrderDivision{
@ApiModelProperty(notes="客户名称")
private String customerName;
@ApiModelProperty(notes = "场景码列表,用于查询条件过滤")
private List<String> baseSceneCodeList;
/*@ApiModelProperty(notes = "场景码")
private String baseSceneCode;*/
@ApiModelProperty(notes = "场景名称")
private String baseSceneName;
}
package cn.com.glsx.dj.smartcarlife.dto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.persistence.Column;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class ProductDetailBusinessDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "id", notes = "主键ID", dataType = "long")
private Long id;
@ApiModelProperty(name = "partyId", notes = "关联流量方ID", dataType = "long")
private Long partyId;
@ApiModelProperty(name = "productType", notes = "类型", dataType = "string")
private String productType;
@ApiModelProperty(name = "productCategory", notes = "销售品类", dataType = "string")
private String productCategory;
@ApiModelProperty(name = "feeSettlementMode", notes = "结算模式", dataType = "string")
private String feeSettlementMode;
@ApiModelProperty(name = "penetrationRate", notes = "渗透率 (%)")
private BigDecimal penetrationRate;
@ApiModelProperty(name = "conversionRate", notes = "转化率 (%)")
private BigDecimal conversionRate;
@ApiModelProperty(name = "revenuePerCar", notes = "单车采购产值")
private BigDecimal revenuePerCar;
@ApiModelProperty(name = "estimatedConversion", notes = "预估转化率 (%)")
private BigDecimal estimatedConversion;
@ApiModelProperty(name = "estimatedUpgradePrice", notes = "升级客单价")
private BigDecimal estimatedUpgradePrice;
@ApiModelProperty(name = "estimatedRevenue", notes = "预估产值")
private BigDecimal estimatedRevenue;
@ApiModelProperty(name = "recyclingFilm", notes = "膜产值")
private BigDecimal recyclingFilm;
@ApiModelProperty(name = "trafficFee", notes = "流量费")
private BigDecimal trafficFee;
@ApiModelProperty(name = "marketFee1", notes = "管理层市场费1")
private BigDecimal marketFee1;
@ApiModelProperty(name = "marketFee2", notes = "管理层市场费2")
private BigDecimal marketFee2;
@ApiModelProperty(name = "incentive1", notes = "一线阳光激励1")
private BigDecimal incentive1;
@ApiModelProperty(name = "incentive2", notes = "一线阳光激励2")
private BigDecimal incentive2;
@ApiModelProperty(name = "resourceFee", notes = "资源费")
private BigDecimal resourceFee;
@ApiModelProperty(name = "productCost", notes = "产品成本 (品类专属成本)")
private BigDecimal productCost;
@ApiModelProperty(name = "createdBy", notes = "创建人 UUID/姓名", dataType = "string")
private String createdBy;
@ApiModelProperty(name = "createdDate", notes = "创建时间", dataType = "date")
private Date createdDate;
@ApiModelProperty(name = "updatedBy", notes = "修改人 UUID/姓名", dataType = "string")
private String updatedBy;
@ApiModelProperty(name = "updatedDate", notes = "更新时间", dataType = "date")
private Date updatedDate;
@ApiModelProperty(name = "deletedFlag", notes = "删除标识: N-正常, D-已删除", dataType = "string")
private String deletedFlag;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ProductNoticeDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 通知类型
* @see cn.com.glsx.dj.smartcarlife.enums.NoticeTypeEnum
*/
private Integer noticeType;
/**
* 产品名称
*/
private String productName;
/**
* 产品编码
*/
private String productCode;
/**
* SKU信息
*/
private String skuInfo;
/**
* 供应商
*/
private String supplierName;
/**
* 适用区域
*/
private String applicableRegion;
/**
* 原适用区域
*/
private String oldApplicableRegion;
/**
* 新适用区域
*/
private String newApplicableRegion;
/**
* 运营成本
*/
private BigDecimal operatingCost;
/**
* 原运营成本
*/
private BigDecimal oldOperatingCost;
/**
* 新运营成本
*/
private BigDecimal newOperatingCost;
/**
* 产品状态
* @see cn.com.glsx.dj.smartcarlife.enums.ProductStatusEnum
*/
private Integer productStatus;
/**
* 操作人
*/
private String operatorName;
/**
* 上架时间
*/
private String shelfTime;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto;
import lombok.Builder;
import lombok.Data;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* 产品变更通知事件载体
* 用于解耦业务逻辑与通知发送,由业务层收集事件,统一异步分发
*
* @see cn.com.glsx.dj.smartcarlife.enums.NoticeTypeEnum
*/
@Data
@Builder
public class ProductNoticeEvent implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 通知类型
* @see cn.com.glsx.dj.smartcarlife.enums.NoticeTypeEnum
*/
private Integer noticeType;
/**
* 升级商品ID
*/
private Integer upgradeGoodsId;
/**
* 素材商品编码,用于查询供应商
*/
private String goodsCode;
/**
* 产品名称(upgradeGoods.upgradeGoodsName)
*/
private String upgradeGoodsName;
/**
* 产品编码(upgradeGoods.type)
*/
private String type;
/**
* SKU信息(upgradeGoods.commodityCode)
*/
private String commodityCode;
/**
* 产品上架状态
*/
private Integer onShelfStatus;
/**
* 运营成本(新建/区域变更场景使用)
*/
private BigDecimal operatingCost;
/**
* 原运营成本(价格变更场景)
*/
private BigDecimal oldOperatingCost;
/**
* 新运营成本(价格变更场景)
*/
private BigDecimal newOperatingCost;
/**
* 适用区域文本(新建上架场景)
*/
private String applicableRegion;
/**
* 原适用区域文本(价格变更/区域变更场景)
*/
private String oldApplicableRegion;
/**
* 新适用区域文本(价格变更/区域变更场景)
*/
private String newApplicableRegion;
/**
* 操作人
*/
private String operatorName;
/**
* 上架/操作时间(格式:yyyy-MM-dd HH:mm:ss)
*/
private String shelfTime;
}
package cn.com.glsx.dj.smartcarlife.dto;
import cn.com.glsx.dj.smartcarlife.model.ProductTemplate;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@ToString(callSuper = true)
@Data
public class ProductTemplateDTO extends ProductTemplate {
private static final long serialVersionUID = -7208921995591805997L;
@ApiModelProperty(notes = "SPU产品名称")
private String spuGoodsNames;
@ApiModelProperty(notes = "供应商")
private String providerNames;
}
......@@ -28,4 +28,6 @@ public class RuleAuditDTO extends RuleAudit {
private Date effectStartDateEnd;
@ApiModelProperty(notes="审核状态列表(1:待审核,2:已审核,3:已驳回,4:逾期未审,5:已撤销)")
private List<Byte> auditStatuses;
@ApiModelProperty(notes="基础场景名称")
private String baseSceneName;
}
......@@ -21,6 +21,8 @@ public class RuleSituationDTO implements Serializable {
private Byte ruleType;
private String baseSceneCode;
private MerchantSettleDistributeRuleDTO InEffectSettleDistributeRule;
private MerchantReconciliationRuleDTO InEffectReconciliationRule;
......
......@@ -48,4 +48,11 @@ public class SceneMerchantRefDTO extends SceneMerchantRef {
private String merchantIdOrName;
private List<Integer> yqMerchantIds;
private String baseSceneCode;
/**
* 默认仅查询启用状态
*/
private Integer status = 1;
}
......@@ -68,7 +68,22 @@ public class ServiceMerchantRefDTO extends ServiceMerchantRef {
private Integer scene;
/**
* 基础场景编码
*/
private String baseSceneCode;
/**
* 园区店类型
*/
private Integer yqMerchantType;
/**
* 流量方业务数据
*/
private TrafficPartyBusinessDTO trafficPartyBusinessData;
/**
* 销售品类业务数据列表
*/
private List<ProductDetailBusinessDTO> productDetailBusinessDataList;
}
......@@ -36,4 +36,13 @@ public class ServiceShopRefDTO extends ServiceMerchantRef {
private Byte divisionType;
private List<Integer> shopMerchantIdList;
//业务场景编码
private String baseSceneCode;
//状态(1-启用,0-禁用)
private Integer status;
private boolean queryMerchantAddr;
}
package cn.com.glsx.dj.smartcarlife.dto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.persistence.Column;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class TrafficPartyBusinessDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "trafficPartyId", notes = "流量方ID", dataType = "integer")
private Integer trafficPartyId;
@ApiModelProperty(name = "trafficPartyName", notes = "流量方名称", dataType = "string")
private String trafficPartyName;
@ApiModelProperty(name = "parkingStoreId", notes = "园区店ID", dataType = "integer")
private Integer parkingStoreId;
@ApiModelProperty(name = "parkingStoreName", notes = "园区店名称", dataType = "string")
private String parkingStoreName;
@ApiModelProperty(name = "serviceProviderId", notes = "服务商ID", dataType = "integer")
private Integer serviceProviderId;
/**
* 上级服务商商户号
*/
@ApiModelProperty(name = "parentServiceMerchantId", notes = "上级服务商商户ID", dataType = "integer")
private Integer parentServiceMerchantId;
/**
* 其他服务商(JSON格式存储多个服务商)
*/
@ApiModelProperty(notes = "其他服务商(JSON格式存储多个服务商)")
private String otherServiceProviders;
@ApiModelProperty(name = "serviceProviderName", notes = "服务商名称", dataType = "string")
private String serviceProviderName;
@ApiModelProperty(name = "parentServiceMerchantName", notes = "上级服务商商户名", dataType = "string")
private String parentServiceMerchantName;
/**
* 服务商2/f公司商户号
*/
@ApiModelProperty(notes = "服务商2/f公司商户号")
private Integer serviceMerchant2fId;
@ApiModelProperty(name = "serviceMerchant2fName", notes = "服务商2/f公司商户名", dataType = "string")
private String serviceMerchant2fName;
@ApiModelProperty(name = "signingEntityId", notes = "签约主体ID", dataType = "integer")
private Integer signingEntityId;
@ApiModelProperty(name = "signingEntityName", notes = "签约主体名称", dataType = "string")
private String signingEntityName;
@ApiModelProperty(name = "businessMode", notes = "业务模式", dataType = "integer")
private Integer businessMode;
@ApiModelProperty(name = "operationMode", notes = "运营模式", dataType = "integer")
private Integer operationMode;
@ApiModelProperty(name = "storeProfitPerCar", notes = "门店单台利润额")
private BigDecimal storeProfitPerCar;
/**
* 嘀加毛利
*/
@ApiModelProperty(notes = "嘀加毛利")
private BigDecimal djGrossProfit;
/**
* 嘀加毛利率
*/
@ApiModelProperty(notes = "嘀加毛利率")
private BigDecimal djGpr;
@ApiModelProperty(name = "deliveryCount", notes = "交付数量", dataType = "integer")
private Integer deliveryCount;
@ApiModelProperty(name = "customerTouchRate", notes = "客户触达率")
private BigDecimal customerTouchRate;
@ApiModelProperty(name = "personnelCost", notes = "人员成本")
private BigDecimal personnelCost;
@ApiModelProperty(name = "rentCost", notes = "租金成本")
private BigDecimal rentCost;
@ApiModelProperty(name = "estimatedRevenue", notes = "预计收入")
private BigDecimal estimatedRevenue;
@ApiModelProperty(name = "depreciationCost", notes = "折旧")
private BigDecimal depreciationCost;
@ApiModelProperty(name = "otherCost", notes = "其他成本")
private BigDecimal otherCost;
@ApiModelProperty(name = "areaOpId", notes = "区域运营ID", dataType = "string")
private String areaOpId;
@ApiModelProperty(name = "onlineOpId", notes = "线上运营ID", dataType = "string")
private String onlineOpId;
@ApiModelProperty(name = "regionSupervisorId", notes = "区域督导ID", dataType = "string")
private String regionSupervisorId;
/**
* 区域运营名称
*/
@ApiModelProperty(notes = "区域运营名称")
private String areaOpName;
/**
* 线上运营名称
*/
@ApiModelProperty(notes = "线上运营名称")
private String onlineOpName;
/**
* 区域督导名称
*/
@ApiModelProperty(notes = "区域督导名称")
private String regionSupervisorName;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto;
import cn.com.glsx.dj.smartcarlife.dto.goods.UpgradeGoodsAreaDTO;
import cn.com.glsx.dj.smartcarlife.model.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.*;
import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
import java.util.List;
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
......@@ -163,6 +162,9 @@ public class UpgradeGoodsDTO extends UpgradeGoods {
@ApiModelProperty(notes = "适用车型(1:通用,2:专用)")
private Byte suitCarType;
@ApiModelProperty(notes = "产品状态 0-下架 1-上架")
private Byte productStatus;
/**
* 配件性质:1-原厂件 2-品牌件
*/
......@@ -171,4 +173,26 @@ public class UpgradeGoodsDTO extends UpgradeGoods {
@ApiModelProperty(notes = "排除一级品类列表")
private List<Integer> excludeGoodsTypeList;
@ApiModelProperty(notes = "是否存在上架商品 true/false")
private Boolean merchantGoodsExist;
@ApiModelProperty(notes = "sku适用区域列表")
private List<UpgradeGoodsAreaDTO> upgradeGoodsAreaList;
@ApiModelProperty(notes = "供货商ID")
private Integer providerId;
@ApiModelProperty(notes = "供货商名称")
private String providerName;
@ApiModelProperty(notes = "基础场景编码,前端传新场景值,后端转换为历史sceneType")
private String baseSceneCode;
@ApiModelProperty(notes = "产品可用状态(0-不可上架为商品 1-可上架为商品)")
private Integer onShelfStatus;
@ApiModelProperty(notes = "升级商品编码列表")
private List<String> upgradeCommodityCodeList;
}
......@@ -115,6 +115,15 @@ public class ConstructionDetail implements Serializable {
@ApiModelProperty(notes = "总施工时长,单位:分钟")
private Integer constructionDuration;
@ApiModelProperty(notes = "创建时间")
private Date createdDate;
@ApiModelProperty(notes = "提交电子施工单时间")
private Date subElectronicDate;
@ApiModelProperty(notes = "确认完成时间")
private Date completedTime;
@ApiModelProperty(notes = "子订单列表")
private List<ConstructionSubOrderRelationDTO> subOrderList;
......
package cn.com.glsx.dj.smartcarlife.dto.construction;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @author chizw
* @version ver.1.0.0
* @Description 施工单分页查询请求
* @create 2026/04/14 10:00
*/
@Data
public class ConstructionPageSearch implements Serializable {
@ApiModelProperty(notes = "施工单编号")
private String constructionCode;
@ApiModelProperty(notes = "门店名称")
private String merchantName;
@ApiModelProperty(notes = "关联主订单编号")
private String orderCode;
@ApiModelProperty(notes = "技师uuid列表")
private List<String> technicianUuidList;
@ApiModelProperty(notes = "品牌ID")
private Integer brandId;
@ApiModelProperty(notes = "转化人员用户ID列表")
private List<String> sellerUserIdList;
@ApiModelProperty(notes = "施工状态列表")
private List<Integer> constructionStatusList;
@ApiModelProperty(notes = "施工标记列表")
private List<Integer> constructionInnerStatusList;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes = "派单起始时间")
private Date dispatchStartTime;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes = "派单截止时间")
private Date dispatchEndTime;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes = "领单起始时间")
private Date receiptStartTime;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes = "领单截止时间")
private Date receiptEndTime;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes = "完工起始时间")
private Date completionStartTime;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes = "完工截止时间")
private Date completionEndTime;
@ApiModelProperty(notes = "商户ID")
private Integer merchantId;
@ApiModelProperty(notes = "商户ID列表")
private List<Integer> merchantIdList;
}
package cn.com.glsx.dj.smartcarlife.dto.construction;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* @author chizw
* @version ver.1.0.0
* @Description 施工单分页查询返回结果
* @create 2026/04/14 10:00
*/
@Data
public class ConstructionPageVO implements Serializable {
@ApiModelProperty(notes = "施工单编号")
private String constructionCode;
@ApiModelProperty(notes = "门店名称")
private String merchantName;
@ApiModelProperty(notes = "技师姓名,多个换行回显;标记主技师(主)和副技师(副)")
private String technicianNames;
@ApiModelProperty(notes = "服务项目名称,多个换行回显")
private String serviceItemNames;
@ApiModelProperty(notes = "关联主订单编号")
private String orderCode;
@ApiModelProperty(notes = "客户车型")
private String carTypeName;
@ApiModelProperty(notes = "转化人员")
private String sellerName;
@ApiModelProperty(notes = "关联子订单编号")
private String subOrderCode;
@ApiModelProperty(notes = "子商品名称")
private String subProductName;
@ApiModelProperty(notes = "施工状态:0-待施工、1-已施工、2-客户返工")
private Integer constructionStatus;
@ApiModelProperty(notes = "施工标记:0-待领单、1-待出库、2-待完工、3-已完工")
private Integer constructionInnerStatus;
@ApiModelProperty(notes = "派单时间")
private Date dispatchTime;
@ApiModelProperty(notes = "领单时间")
private Date receiptTime;
@ApiModelProperty(notes = "完工时间")
private Date completionTime;
@ApiModelProperty(notes = "施工图片预览(第1张缩略图)")
private String thumbnailPicture;
@ApiModelProperty(notes = "图片总数")
private Integer pictureCount;
@ApiModelProperty(notes = "实际出库数量描述(如:1.22米/件)")
private String outboundQuantityDesc;
@ApiModelProperty(notes = "施工单ID")
private Integer id;
}
......@@ -23,6 +23,9 @@ public class CreateBusinessApproveAllImportVo implements Serializable {
/** 流量方ID 会员权益、精品升级场景用到**/
private String shopMerchantId;
/** 流量方名称 会员权益、精品升级批量场景用到**/
private String shopMerchantName;
/** 业务模式 会员权益场景用到**/
private String businessMode;
......@@ -78,6 +81,8 @@ public class CreateBusinessApproveAllImportVo implements Serializable {
/** 第三方成本 会员权益场景用到**/
private String thirdPartyCost;
private String inventoryMode;
/** 销售占比 会员权益场景、精品升级用到**/
private String saleRatio;
......@@ -87,6 +92,9 @@ public class CreateBusinessApproveAllImportVo implements Serializable {
/** 线上分账对象 会员权益、精品升级场景用到**/
private String shopMerchantDivideTarget;
/** 流量方分润计算模式 会员权益、精品升级场景用到**/
private String shopMerchantDivideCalMode;
/** 流量方分润类型 会员权益、精品升级场景用到**/
private String shopMerchantDivideType;
......@@ -102,6 +110,9 @@ public class CreateBusinessApproveAllImportVo implements Serializable {
/** 线上分账对象 会员权益场景用到**/
private String partnerMerchantDivideTarget;
/** 服务商分润计算模式 会员权益、精品升级场景用到**/
private String partnerMerchantDivideCalMode;
/** 服务商分润类型 会员权益场景导入,精品升级自动查询**/
private String partnerMerchantDivideType;
......@@ -114,12 +125,18 @@ public class CreateBusinessApproveAllImportVo implements Serializable {
/** 服务商2线上分账对象 会员权益场景用到**/
private String partnerMerchant2DivideTarget;
/** 服务商2分润计算模式 会员权益、精品升级场景用到**/
private String partnerMerchant2DivideCalMode;
/** 服务商2分润类型 会员权益场景用到**/
private String partnerMerchant2DivideType;
/** 服务商2比例 会员权益场景用到**/
private String partnerMerchant2DivideValue;
/** 其他费用分润计算模式 会员权益、精品升级场景用到**/
private String otherFeeDivideCalMode;
/** 其他费用分润类型 会员权益、精品升级场景用到**/
private String otherFeeDivideType;
......@@ -129,12 +146,18 @@ public class CreateBusinessApproveAllImportVo implements Serializable {
/** 其他费用归属 会员权益、精品升级场景用到**/
private String otherFeeTarget;
/** 管理层市场费1计算模式 会员权益、精品升级场景用到**/
private String managerMarket1CalMode;
/** 管理层市场费1计算方式 会员权益、精品升级场景用到**/
private String managerMarket1CalType;
/** 管理层市场费1 会员权益、精品升级场景用到**/
private String managerMarket1CalTypeFee;
/** 管理层市场费2计算模式 会员权益场、精品升级景用到**/
private String managerMarket2CalMode;
/** 管理层市场费2计算方式 会员权益场、精品升级景用到**/
private String managerMarket2CalType;
......@@ -209,4 +232,4 @@ public class CreateBusinessApproveAllImportVo implements Serializable {
* 流量方线上分账对象商户号
*/
private String shopMerchantTargetMerchantName;
}
\ No newline at end of file
}
package cn.com.glsx.dj.smartcarlife.dto.createBusiness;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import com.google.common.collect.Lists;
import cn.com.glsx.dj.smartcarlife.dto.MerchantDivisionRuleDTO;
import cn.com.glsx.dj.smartcarlife.dto.MerchantReconciliationRuleDTO;
import cn.com.glsx.dj.smartcarlife.dto.MerchantRuleMergeDiffDTO;
import cn.com.glsx.dj.smartcarlife.dto.MerchantSettleAccountRuleDTO;
import cn.com.glsx.dj.smartcarlife.dto.MerchantSettleDistributeRuleDTO;
import cn.com.glsx.dj.smartcarlife.dto.UpgradeGoodsDTO;
import cn.com.glsx.dj.smartcarlife.dto.*;
import cn.com.glsx.dj.smartcarlife.dto.goods.MerchantGoodsInfoDTO;
import cn.com.glsx.dj.smartcarlife.dto.goods.MerchantPackageGoodsInfoDTO;
import cn.com.glsx.dj.smartcarlife.dto.merchant.MerchantDetailResponseDTO;
import cn.com.glsx.dj.smartcarlife.dto.settleDistribution.DivisionRuleAutoDTO;
import cn.com.glsx.dj.smartcarlife.model.PaymentChannel;
import cn.com.glsx.dj.smartcarlife.model.YqMerchantServiceDetails;
import cn.com.glsx.dj.smartcarlife.response.FeeCategoryPageResponse;
import cn.com.glsx.scrm.proxy.model.merchant.MerchantRopResponse;
import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.*;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.*;
@AllArgsConstructor
@NoArgsConstructor
......@@ -69,6 +55,10 @@ public class CreateBusinessApproveImportExcelContext implements Serializable {
//上架成功的套餐map key:导入套餐索引: value:上架成功套餐信息
private Map<Integer, MerchantPackageGoodsInfoDTO> successMerchantPackageMap = new LinkedHashMap<>();
//本次导入内的套餐编码映射,保证产品基础表和规则关系表使用同一个 package_code
@Builder.Default
private Map<String, String> packageCodeMap = new LinkedHashMap<>();
//private Integer contractingMerchantId;
//private String contractingMerchantName;
......@@ -194,5 +184,11 @@ public class CreateBusinessApproveImportExcelContext implements Serializable {
@ApiModelProperty(notes = "是否存在服务商2")
private Boolean hasPartner2;
@ApiModelProperty(notes = "流量方商户号商户信息DTO映射map")
@Builder.Default
private Map<Integer, MerchantDetailResponseDTO> merchantInfoDTOMap = new HashMap<>();
}
\ No newline at end of file
private Byte operationMode;
}
......@@ -105,12 +105,18 @@ public class CreateBusinessApproveImportReconciliationRuleDTO implements Seriali
@ExcelProperty(index = 25,value = "*服务商比例")
private String partnerMerchantDivideValue;
/** 管理层市场费1计算模式 会员权益、精品升级场景用到**/
private String managerMarket1CalMode;
@ExcelProperty(index = 26, value = "*管理层市场费1计算方式")
private String managerMarket1CalType;
@ExcelProperty(index = 27, value = "*管理层市场费1")
private String managerMarket1CalTypeFee;
/** 管理层市场费2计算模式 会员权益、精品升级场景用到**/
private String managerMarket2CalMode;
@ExcelProperty(index = 28, value = "*管理层市场费2计算方式")
private String managerMarket2CalType;
......@@ -184,12 +190,17 @@ public class CreateBusinessApproveImportReconciliationRuleDTO implements Seriali
}
if (o == null || getClass() != o.getClass()) {
return false;
}
}
CreateBusinessApproveImportReconciliationRuleDTO that = (CreateBusinessApproveImportReconciliationRuleDTO) o;
return Objects.equals(this.managerMarket1CalType, that.getManagerMarket1CalType()) && isSameNumericString(this.managerMarket1CalTypeFee, that.getManagerMarket1CalTypeFee()) &&
Objects.equals(this.managerMarket2CalType, that.getManagerMarket2CalType()) && isSameNumericString(this.managerMarket2CalTypeFee, that.getManagerMarket2CalTypeFee())
// 规则合并必须覆盖会影响市场费用类目的字段,避免不同对账规则被合成同一品类。
return Objects.equals(this.managerMarket1CalMode, that.getManagerMarket1CalMode())
&& Objects.equals(this.managerMarket1CalType, that.getManagerMarket1CalType()) && isSameNumericString(this.managerMarket1CalTypeFee, that.getManagerMarket1CalTypeFee())
&& Objects.equals(this.managerMarket2CalMode, that.getManagerMarket2CalMode())
&& Objects.equals(this.managerMarket2CalType, that.getManagerMarket2CalType()) && isSameNumericString(this.managerMarket2CalTypeFee, that.getManagerMarket2CalTypeFee())
&& Objects.equals(this.firstLineSunshineOnlinePointsFlag, that.getFirstLineSunshineOnlinePointsFlag())
&& Objects.equals(this.firstLineSunshineIncentiveFeeCalType, that.getFirstLineSunshineIncentiveFeeCalType()) && isSameNumericString(this.firstLineSunshineIncentiveFee, that.getFirstLineSunshineIncentiveFee())
&& Objects.equals(this.firstLineSunshineIncentiveFeeCalMode, that.getFirstLineSunshineIncentiveFeeCalMode())
&& Objects.equals(this.firstLineSunshine2OnlinePointsFlag, that.getFirstLineSunshine2OnlinePointsFlag())
&& Objects.equals(this.firstLineSunshine2IncentiveFeeCalType, that.getFirstLineSunshine2IncentiveFeeCalType()) && isSameNumericString(this.firstLineSunshine2IncentiveFee, that.getFirstLineSunshine2IncentiveFee())
&& Objects.equals(this.firstLineSunshine2IncentiveFeeCalMode, that.getFirstLineSunshine2IncentiveFeeCalMode())
&& isLaborCostSame(that);
......@@ -207,8 +218,11 @@ public class CreateBusinessApproveImportReconciliationRuleDTO implements Seriali
@Override
public int hashCode() {
return Objects.hash(managerMarket1CalType, normalizeNumericString(managerMarket1CalTypeFee), managerMarket2CalType, normalizeNumericString(managerMarket2CalTypeFee), firstLineSunshineIncentiveFeeCalType, normalizeNumericString(firstLineSunshineIncentiveFee), firstLineSunshine2IncentiveFeeCalType,
firstLineSunshineIncentiveFeeCalMode, firstLineSunshine2IncentiveFeeCalMode, normalizeBigDecimal(laborCost));
return Objects.hash(managerMarket1CalMode, managerMarket1CalType, normalizeNumericString(managerMarket1CalTypeFee),
managerMarket2CalMode, managerMarket2CalType, normalizeNumericString(managerMarket2CalTypeFee),
firstLineSunshineOnlinePointsFlag, firstLineSunshineIncentiveFeeCalType, normalizeNumericString(firstLineSunshineIncentiveFee), firstLineSunshineIncentiveFeeCalMode,
firstLineSunshine2OnlinePointsFlag, firstLineSunshine2IncentiveFeeCalType, normalizeNumericString(firstLineSunshine2IncentiveFee), firstLineSunshine2IncentiveFeeCalMode,
normalizeBigDecimal(laborCost));
}
private boolean isSameNumericString(String source, String target) {
......@@ -284,8 +298,10 @@ public class CreateBusinessApproveImportReconciliationRuleDTO implements Seriali
createBusinessApproveImportSettleRuleDTO.setPartnerMerchantDivideTarget(item.getPartnerMerchantDivideTarget());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchantDivideType(item.getPartnerMerchantDivideType());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchantDivideValue(item.getPartnerMerchantDivideValue());
createBusinessApproveImportSettleRuleDTO.setManagerMarket1CalMode(item.getManagerMarket1CalMode());
createBusinessApproveImportSettleRuleDTO.setManagerMarket1CalType(item.getManagerMarket1CalType());
createBusinessApproveImportSettleRuleDTO.setManagerMarket1CalTypeFee(item.getManagerMarket1CalTypeFee());
createBusinessApproveImportSettleRuleDTO.setManagerMarket2CalMode(item.getManagerMarket2CalMode());
createBusinessApproveImportSettleRuleDTO.setManagerMarket2CalType(item.getManagerMarket2CalType());
createBusinessApproveImportSettleRuleDTO.setManagerMarket2CalTypeFee(item.getManagerMarket2CalTypeFee());
createBusinessApproveImportSettleRuleDTO.setFirstLineSunshineOnlinePointsFlag(item.getFirstLineSunshineOnlinePointsFlag());
......
......@@ -87,6 +87,9 @@ public class CreateBusinessApproveImportSettleRuleDTO implements Serializable {
@ExcelProperty(index = 18,value = "*线上分账对象")
private String shopMerchantDivideTarget;
/** 流量方分润计算模式 会员权益、精品升级场景用到**/
private String shopMerchantDivideCalMode;
@ExcelProperty(index = 19,value = "*流量方分润类型")
private String shopMerchantDivideType;
......@@ -102,6 +105,9 @@ public class CreateBusinessApproveImportSettleRuleDTO implements Serializable {
@ExcelProperty(index = 23,value = "*线上分账对象")
private String partnerMerchantDivideTarget;
/** 服务商分润计算模式 会员权益、精品升级场景用到**/
private String partnerMerchantDivideCalMode;
@ExcelProperty(index = 24,value = "*服务商分润类型")
private String partnerMerchantDivideType;
......@@ -114,12 +120,18 @@ public class CreateBusinessApproveImportSettleRuleDTO implements Serializable {
/** 服务商2线上分账对象 会员权益场景用到**/
private String partnerMerchant2DivideTarget;
/** 服务商2分润计算模式 会员权益、精品升级场景用到**/
private String partnerMerchant2DivideCalMode;
/** 服务商2分润类型 会员权益场景用到**/
private String partnerMerchant2DivideType;
/** 服务商2比例 会员权益场景用到**/
private String partnerMerchant2DivideValue;
/** 其他费用分润计算模式 会员权益、精品升级场景用到**/
private String otherFeeDivideCalMode;
/** 其他费用分润类型 会员权益、精品升级场景用到**/
private String otherFeeDivideType;
......@@ -237,25 +249,39 @@ public class CreateBusinessApproveImportSettleRuleDTO implements Serializable {
}
if (o == null || getClass() != o.getClass()) {
return false;
}
}
CreateBusinessApproveImportSettleRuleDTO that = (CreateBusinessApproveImportSettleRuleDTO) o;
return Objects.equals(this.shopMerchantDivideType, that.getShopMerchantDivideType())
// 规则合并必须覆盖会影响费用类目和分账目标的字段,避免不同规则被合成同一品类。
return Objects.equals(this.shopMerchantAutoDivide, that.getShopMerchantAutoDivide())
&& Objects.equals(this.shopMerchantDivideTarget, that.getShopMerchantDivideTarget())
&& Objects.equals(this.shopMerchantDivideCalMode, that.getShopMerchantDivideCalMode())
&& Objects.equals(this.shopMerchantDivideType, that.getShopMerchantDivideType())
&& Objects.equals(this.thirdPartyCostTarget, that.getThirdPartyCostTarget())
&& isSameNumericString(this.shopMerchantDivideValue, that.getShopMerchantDivideValue())
&& Objects.equals(this.partnerMerchantAutoDivide, that.getPartnerMerchantAutoDivide())
&& Objects.equals(this.partnerMerchantDivideTarget, that.getPartnerMerchantDivideTarget())
&& Objects.equals(this.partnerMerchantDivideCalMode, that.getPartnerMerchantDivideCalMode())
&& Objects.equals(this.partnerMerchantDivideType, that.getPartnerMerchantDivideType())
&& isSameNumericString(this.partnerMerchantDivideValue, that.getPartnerMerchantDivideValue())
&& Objects.equals(this.partnerMerchant2AutoDivide, that.getPartnerMerchant2AutoDivide())
&& Objects.equals(this.partnerMerchant2DivideTarget, that.getPartnerMerchant2DivideTarget())
&& Objects.equals(this.partnerMerchant2DivideCalMode, that.getPartnerMerchant2DivideCalMode())
&& Objects.equals(this.partnerMerchant2DivideType, that.getPartnerMerchant2DivideType())
&& isSameNumericString(this.partnerMerchant2DivideValue, that.getPartnerMerchant2DivideValue())
&& Objects.equals(this.otherFeeDivideCalMode, that.getOtherFeeDivideCalMode())
&& Objects.equals(this.otherFeeDivideType, that.getOtherFeeDivideType())
&& isSameNumericString(this.otherFeeDivideValue, that.getOtherFeeDivideValue())
&& Objects.equals(this.otherFeeTarget, that.getOtherFeeTarget())
&& Objects.equals(this.upgradeProductCostTarget, that.getUpgradeProductCostTarget())
&& Objects.equals(this.recoveryCostTarget, that.getRecoveryCostTarget());
}
@Override
public int hashCode() {
return Objects.hash(shopMerchantDivideType, thirdPartyCostTarget, normalizeNumericString(shopMerchantDivideValue), partnerMerchantDivideType, normalizeNumericString(partnerMerchantDivideValue),
partnerMerchant2DivideType, normalizeNumericString(partnerMerchant2DivideValue), otherFeeDivideType, normalizeNumericString(otherFeeDivideValue),
return Objects.hash(shopMerchantAutoDivide, shopMerchantDivideTarget, shopMerchantDivideCalMode, shopMerchantDivideType, thirdPartyCostTarget, normalizeNumericString(shopMerchantDivideValue),
partnerMerchantAutoDivide, partnerMerchantDivideTarget, partnerMerchantDivideCalMode, partnerMerchantDivideType, normalizeNumericString(partnerMerchantDivideValue),
partnerMerchant2AutoDivide, partnerMerchant2DivideTarget, partnerMerchant2DivideCalMode, partnerMerchant2DivideType, normalizeNumericString(partnerMerchant2DivideValue),
otherFeeDivideCalMode, otherFeeDivideType, normalizeNumericString(otherFeeDivideValue), otherFeeTarget,
upgradeProductCostTarget,recoveryCostTarget);
}
......@@ -323,17 +349,21 @@ public class CreateBusinessApproveImportSettleRuleDTO implements Serializable {
createBusinessApproveImportSettleRuleDTO.setThirdPartyCost(item.getThirdPartyCost());
createBusinessApproveImportSettleRuleDTO.setShopMerchantAutoDivide(item.getShopMerchantAutoDivide());
createBusinessApproveImportSettleRuleDTO.setShopMerchantDivideTarget(item.getShopMerchantDivideTarget());
createBusinessApproveImportSettleRuleDTO.setShopMerchantDivideCalMode(item.getShopMerchantDivideCalMode());
createBusinessApproveImportSettleRuleDTO.setShopMerchantDivideType(item.getShopMerchantDivideType());
createBusinessApproveImportSettleRuleDTO.setThirdPartyCostTarget(item.getThirdPartyCostTarget());
createBusinessApproveImportSettleRuleDTO.setShopMerchantDivideValue(item.getShopMerchantDivideValue());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchantAutoDivide(item.getPartnerMerchantAutoDivide());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchantDivideTarget(item.getPartnerMerchantDivideTarget());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchantDivideCalMode(item.getPartnerMerchantDivideCalMode());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchantDivideType(item.getPartnerMerchantDivideType());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchantDivideValue(item.getPartnerMerchantDivideValue());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchant2AutoDivide(item.getPartnerMerchant2AutoDivide());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchant2DivideTarget(item.getPartnerMerchant2DivideTarget());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchant2DivideCalMode(item.getPartnerMerchant2DivideCalMode());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchant2DivideType(item.getPartnerMerchant2DivideType());
createBusinessApproveImportSettleRuleDTO.setPartnerMerchant2DivideValue(item.getPartnerMerchant2DivideValue());
createBusinessApproveImportSettleRuleDTO.setOtherFeeDivideCalMode(item.getOtherFeeDivideCalMode());
createBusinessApproveImportSettleRuleDTO.setOtherFeeDivideType(item.getOtherFeeDivideType());
createBusinessApproveImportSettleRuleDTO.setOtherFeeDivideValue(item.getOtherFeeDivideValue());
createBusinessApproveImportSettleRuleDTO.setOtherFeeTarget(item.getOtherFeeTarget());
......
package cn.com.glsx.dj.smartcarlife.dto.goods;
import cn.com.glsx.dj.smartcarlife.model.GoodsProvider;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.List;
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class GoodsProviderDTO extends GoodsProvider {
private static final long serialVersionUID = -297237010826601571L;
private List<String> providerNameList;
}
package cn.com.glsx.dj.smartcarlife.dto.goods;
import cn.com.glsx.dj.smartcarlife.model.MerchantGoodsArea;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
/**
* @ClassName MerchantGoodsAreaDTO
* @Description 门店商品区域DTO
* @Author lqWang
* @Date 2026/4/25 14:08
*/
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@ToString(callSuper = true)
@Data
public class MerchantGoodsAreaDTO extends MerchantGoodsArea implements Serializable {
private static final long serialVersionUID = -1356879082599749918L;
private Integer merchantId;
}
package cn.com.glsx.dj.smartcarlife.dto.goods;
import java.math.BigDecimal;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import cn.com.glsx.dj.smartcarlife.dto.UpgradeGoodsDTO;
import cn.com.glsx.dj.smartcarlife.model.BaseGoods;
import cn.com.glsx.dj.smartcarlife.model.CreateBusinessProduct;
import cn.com.glsx.dj.smartcarlife.model.GoodsInfo;
import cn.com.glsx.dj.smartcarlife.model.GoodsReviewLog;
import cn.com.glsx.dj.smartcarlife.model.MerchantGoodsInfo;
import cn.com.glsx.dj.smartcarlife.model.MerchantGoodsRef;
import cn.com.glsx.dj.smartcarlife.model.MerchantGoodsVoucher;
import cn.com.glsx.dj.smartcarlife.model.ServiceMerchant;
import cn.com.glsx.dj.smartcarlife.model.*;
import cn.com.glsx.dj.smartcarlife.remote.MerchantGoodsInfoRemote.InsertOrUpdate;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
......@@ -21,6 +9,10 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
......@@ -172,6 +164,15 @@ public class MerchantGoodsInfoDTO extends MerchantGoodsInfo {
@ApiModelProperty(notes = "素材商品分类列表")
private List<Integer> goodsTypeList;
@ApiModelProperty(notes = "商品名搜索(含素材名,升级商品名,类目名,商品编码,商品ID,上架商品ID)")
private String goodsNameKeyword;
@ApiModelProperty(notes = "是否筛选升级商品,如果是,仅返回满足条件的升级商品")
private Boolean filterUpgradeGoods;
@ApiModelProperty(notes = "基础商品状态列表")
private List<Byte> baseGoodsStatusList;
@ApiModelProperty(notes = "过滤套餐商品(1.非套餐商品,2.套餐商品)")
private Integer filsterPackageGoods;
......@@ -235,7 +236,7 @@ public class MerchantGoodsInfoDTO extends MerchantGoodsInfo {
*/
private Integer filterSellPriceValid;
@ApiModelProperty(notes = "上架商品id列表")
private List<Integer> idList;
......@@ -243,4 +244,13 @@ public class MerchantGoodsInfoDTO extends MerchantGoodsInfo {
@ApiModelProperty(notes = "商品渗透率要求,精品升级时展示")
private BigDecimal penetrationRate;
@ApiModelProperty(notes = "基础场景编码列表(多选)")
private List<String> baseSceneCodeList;
@ApiModelProperty(notes = "城市编码列表")
private List<String> cityCodeList;
@ApiModelProperty(notes = "基础场景编码名称")
private String baseSceneName;
}
package cn.com.glsx.dj.smartcarlife.dto.goods;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 上架选择产品后的运营成本计算入参。
*/
@Data
public class MerchantGoodsOperationCostRequestDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "历史业务场景,调用方负责由新场景转换")
private Byte sceneType;
@ApiModelProperty(notes = "基础场景编码")
private String baseSceneCode;
@ApiModelProperty(notes = "产品编码,对应 dj_car_life_upgrade_goods.commodity_code")
private String commodityCode;
@ApiModelProperty(notes = "已选上架门店商户号列表")
private List<Integer> merchantIdList;
private List<Integer> upgradeGoodsIdList;
}
package cn.com.glsx.dj.smartcarlife.dto.goods;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 上架选择产品后的运营成本计算结果。
*/
@Data
public class MerchantGoodsOperationCostResponseDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "产品编码")
private String commodityCode;
@ApiModelProperty(notes = "平均运营成本,四舍五入保留2位")
private BigDecimal operationCost;
@ApiModelProperty(notes = "去重供货商数量")
private Integer providerCount;
@ApiModelProperty(notes = "命中SKU数量")
private Integer skuCount;
}
package cn.com.glsx.dj.smartcarlife.dto.goods;
import cn.com.glsx.dj.smartcarlife.model.MerchantGoodsArea;
import cn.com.glsx.dj.smartcarlife.model.MerchantPackageArea;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@ToString(callSuper = true)
@Data
public class MerchantPackageAreaDTO extends MerchantPackageArea implements Serializable {
private static final long serialVersionUID = 7976745055399278160L;
@ApiModelProperty(notes = "城市编码列表")
private List<String> cityCodeList;
}
......@@ -121,4 +121,13 @@ public class MerchantPackageGoodsInfoDTO extends MerchantPackageGoodsInfo{
@ApiModelProperty(notes = "应用范围(是否绑定所有商户)true / false(批量修改套餐库存模式专用)")
private Boolean bindAllMerchant;
@ApiModelProperty(notes = "基础场景编码列表(多选)")
private List<String> baseSceneCodeList;
@ApiModelProperty(notes = "城市编码列表")
private List<String> cityCodeList;
@ApiModelProperty(notes = "基础场景编码名称")
private String baseSceneName;
}
package cn.com.glsx.dj.smartcarlife.dto.goods;
import cn.com.glsx.dj.smartcarlife.model.UpgradeGoodsArea;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
/**
* 产品适用区域关联表 DTO
*/
@SuperBuilder
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UpgradeGoodsAreaDTO extends UpgradeGoodsArea implements Serializable {
public UpgradeGoodsAreaDTO() {
}
private static final long serialVersionUID = 1L;
}
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
/**
* 商户详情查询请求DTO
* 用于根据scene_merchant_ref_id查询商户详情
*
* @author
* @since 2026-04-23
*/
@Data
public class MerchantDetailBatchQueryDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 场景code
*/
@ApiModelProperty(notes = "场景code")
@NotNull
private String baseSceneCode;
/**
* 流量方4s店 ID
*/
@ApiModelProperty(notes = "流量方4s店")
@NotNull
private List<Integer> merchantIdList;
}
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
/**
* 商户详情查询请求DTO
* 用于根据scene_merchant_ref_id查询商户详情
*
* @author
* @since 2026-04-23
*/
@Data
public class MerchantDetailQueryDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 流量方4s店 ID
*/
@ApiModelProperty(notes = "流量方4s店")
@NotNull
private Integer merchantId;
/**
* 场景code
*/
@ApiModelProperty(notes = "场景code")
@NotNull
private String baseSceneCode;
}
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* 商户详情响应DTO
* 包含商户基本信息和产品详情列表
*
* @author
* @since 2026-04-23
*/
@Data
@ApiModel(value = "MerchantDetailResponseDTO", description = "商户详情响应")
public class MerchantDetailResponseDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 商户基本信息
*/
@ApiModelProperty(value = "商户基本信息")
private MerchantInfoDTO merchantInfo;
/**
* 产品详情列表
*/
@ApiModelProperty(value = "产品详情列表")
private List<ProductDetailDTO> productDetails;
}
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Column;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
/**
* 商户信息编辑请求DTO
* 用于编辑商户基本信息和产品详情
*
* @author
* @since 2026-04-23
*/
@Data
@ApiModel(value = "MerchantEditDTO", description = "商户信息编辑请求")
public class MerchantEditDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 场景code
*/
@ApiModelProperty(value = "场景code", example = "1001")
private String baseSceneCode;
/**
* 流量方ID
*/
@ApiModelProperty(value = "流量方ID", example = "1001")
private Integer trafficPartyId;
/**
* 流量方名称
*/
@ApiModelProperty(value = "流量方名称", example = "流量方A")
private String trafficPartyName;
/**
* 园区店ID
*/
@ApiModelProperty(value = "园区店ID", example = "2001")
private Integer parkingStoreId;
/**
* 园区店名称
*/
@ApiModelProperty(value = "园区店名称", example = "园区店A")
private String parkingStoreName;
/**
* 服务商ID
*/
@ApiModelProperty(value = "服务商ID", example = "3001")
private Integer serviceProviderId;
/**
* 服务商名称
*/
@ApiModelProperty(value = "服务商名称", example = "服务商A")
private String serviceProviderName;
/**
* 上级服务商商户名
*/
@ApiModelProperty(value = "上级服务商商户名", example = "上级服务商A")
private String parentServiceMerchantName;
/**
* 服务商2/f公司商户名
*/
@ApiModelProperty(value = "服务商2/f公司商户名", example = "服务商2F")
private String serviceMerchant2fName;
/**
* 签约主体ID
*/
@ApiModelProperty(value = "签约主体ID", example = "4001")
private Integer signingEntityId;
/**
* 签约主体名称
*/
@ApiModelProperty(value = "签约主体名称", example = "签约主体A")
private String signingEntityName;
/**
* 运营模式(1-直营, 2-非直营)
*/
@ApiModelProperty(value = "运营模式(1-直营, 2-非直营)", example = "1")
private Integer operationMode;
/**
* 业务模式
*/
@ApiModelProperty(value = "业务模式", example = "1")
private Integer businessMode;
/**
* 预计收入
*/
@ApiModelProperty(value = "预计收入", example = "100000.00")
private BigDecimal estimatedRevenue;
/**
* 交付数量
*/
@ApiModelProperty(value = "交付数量", example = "100")
private Integer deliveryCount;
/**
* 客户触达率
*/
@ApiModelProperty(value = "客户触达率", example = "0.85")
private BigDecimal customerTouchRate;
/**
* 人员成本
*/
@ApiModelProperty(value = "人员成本", example = "50000.00")
private BigDecimal personnelCost;
/**
* 租金成本
*/
@ApiModelProperty(value = "租金成本", example = "20000.00")
private BigDecimal rentCost;
/**
* 折旧成本
*/
@ApiModelProperty(value = "折旧成本", example = "10000.00")
private BigDecimal depreciationCost;
/**
* 其他成本
*/
@ApiModelProperty(value = "其他成本", example = "5000.00")
private BigDecimal otherCost;
/**
* 区域运营ID
*/
@ApiModelProperty(value = "区域运营ID", example = "5001")
private String areaOpId;
/**
* 区域运营名称
*/
@ApiModelProperty(value = "区域运营名称", example = "区域运营A")
private String areaOpName;
/**
* 线上运营ID
*/
@ApiModelProperty(value = "线上运营ID", example = "6001")
private String onlineOpId;
/**
* 线上运营名称
*/
@ApiModelProperty(value = "线上运营名称", example = "线上运营A")
private String onlineOpName;
/**
* 区域督导ID
*/
@ApiModelProperty(value = "区域督导ID", example = "7001")
private String regionSupervisorId;
/**
* 区域督导名称
*/
@ApiModelProperty(value = "区域督导名称", example = "区域督导A")
private String regionSupervisorName;
/**
* 产品详情列表
*/
@ApiModelProperty(value = "产品详情列表")
private List<ProductDetailDTO> productDetails;
@ApiModelProperty(value = "商户ID", example = "1001")
private Integer merchantId;
private String updateBy;
}
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* 商户历史记录响应DTO
* 包含商户信息历史记录和产品详情历史记录
*
* @author
* @since 2026-04-23
*/
@Data
public class MerchantHistoryResponseDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 商户信息历史记录列表
*/
@ApiModelProperty(notes = "商户信息历史记录列表")
private List<MerchantInfoHistoryDTO> merchantInfoHistories;
/**
* 产品详情历史记录列表
*/
@ApiModelProperty(notes = "产品详情历史记录列表")
private List<ProductDetailHistoryDTO> productDetailHistories;
}
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 商户基本信息DTO
* 对应dj_car_life_merchant_store_info表
*/
@Data
public class MerchantInfoDTO implements Serializable {
private static final long serialVersionUID = 1L;
private Integer id;
/**
* 场景code
*/
@ApiModelProperty(notes = "场景code")
private String baseSceneCode;
/**
* 流量方ID
*/
@ApiModelProperty(notes = "流量方ID")
private Integer trafficPartyId;
/**
* 流量方名称
*/
@ApiModelProperty(notes = "流量方名称")
private String trafficPartyName;
/**
* 流量方商户账号类型
*/
@ApiModelProperty(notes = "流量方商户账号类型")
private Integer accountType;
/**
* 园区店ID
*/
@ApiModelProperty(notes = "园区店ID")
private Integer parkingStoreId;
/**
* 园区店名称
*/
@ApiModelProperty(notes = "园区店名称")
private String parkingStoreName;
/**
* 服务商ID
*/
@ApiModelProperty(notes = "服务商ID")
private Integer serviceProviderId;
/**
* 服务商名称
*/
@ApiModelProperty(notes = "服务商名称")
private String serviceProviderName;
/**
* 上级服务商号
*/
@ApiModelProperty(notes = "上级服务商号")
private String parentServiceMerchantId;
/**
* 上级服务商商户名
*/
@ApiModelProperty(notes = "上级服务商商户名")
private String parentServiceMerchantName;
/**
* 服务商2/f公司商户号
*/
@ApiModelProperty(notes = "服务商2/f公司商户号")
private Integer serviceMerchant2fId;
/**
* 服务商2/f公司商户名
*/
@ApiModelProperty(notes = "服务商2/f公司商户名")
private String serviceMerchant2fName;
/**
* 其他服务商(JSON格式存储多个服务商)
*/
@ApiModelProperty(notes = "其他服务商(JSON格式存储多个服务商)")
private String otherServiceProviders;
/**
* 签约主体商户号
*/
@ApiModelProperty(notes = "签约主体商户号")
private Integer signingEntityId;
/**
* 签约主体名称
*/
@ApiModelProperty(notes = "签约主体名称")
private String signingEntityName;
/**
* 运营模式:1-直营,2-非直营
*/
@ApiModelProperty(notes = "运营模式:1-直营,2-非直营")
private Integer operationMode;
/**
* 业务模式
*/
@ApiModelProperty(notes = "业务模式")
private Integer businessMode;
/**
* 预计收入
*/
@ApiModelProperty(notes = "预计收入")
private BigDecimal estimatedRevenue;
/**
* 交付数量
*/
@ApiModelProperty(notes = "交付数量")
private Integer deliveryCount;
/**
* 客户触达率
*/
@ApiModelProperty(notes = "客户触达率")
private BigDecimal customerTouchRate;
/**
* 人员成本
*/
@ApiModelProperty(notes = "人员成本")
private BigDecimal personnelCost;
/**
* 租金成本
*/
@ApiModelProperty(notes = "租金成本")
private BigDecimal rentCost;
/**
* 折旧成本
*/
@ApiModelProperty(notes = "折旧成本")
private BigDecimal depreciationCost;
/**
* 其他成本
*/
@ApiModelProperty(notes = "其他成本")
private BigDecimal otherCost;
/**
* 区域运营ID
*/
@ApiModelProperty(notes = "区域运营ID")
private String areaOpId;
/**
* 区域运营名称
*/
@ApiModelProperty(notes = "区域运营名称")
private String areaOpName;
/**
* 线上运营ID
*/
@ApiModelProperty(notes = "线上运营ID")
private String onlineOpId;
/**
* 线上运营名称
*/
@ApiModelProperty(notes = "线上运营名称")
private String onlineOpName;
/**
* 区域督导ID
*/
@ApiModelProperty(notes = "区域督导ID")
private String regionSupervisorId;
/**
* 区域督导名称
*/
@ApiModelProperty(notes = "区域督导名称")
private String regionSupervisorName;
/**
* 创建人
*/
@ApiModelProperty(notes = "创建人")
private String createdBy;
/**
* 创建时间
*/
@ApiModelProperty(notes = "创建时间")
private Date createdDate;
/**
* 更新人
*/
@ApiModelProperty(notes = "更新人")
private String updatedBy;
/**
* 更新时间
*/
@ApiModelProperty(notes = "更新时间")
private Date updatedDate;
/**
* 删除标记:N-未删除,Y-已删除
*/
@ApiModelProperty(notes = "删除标记:N-未删除,Y-已删除")
private String deletedFlag;
/**
* 流量方上级商户号
*/
@ApiModelProperty(notes = "流量方上级商户号")
private Integer parentMerchantId;
/**
* 流量方上级商名称
*/
@ApiModelProperty(notes = "流量方上级商名称")
private String parentMerchantName;
/**
* 省区域编码
*/
@ApiModelProperty(notes = "省区域编码")
private String provinceCode;
/**
* 省区域名称
*/
@ApiModelProperty(notes = "省区域名称")
private String provinceName;
/**
* 市区域编码
*/
@ApiModelProperty(notes = "市区域编码")
private String cityCode;
/**
* 市区域名称
*/
@ApiModelProperty(notes = "市区域名称")
private String cityName;
/**
* 商户等级
*/
@ApiModelProperty(notes = "商户等级 1.工厂 2.省代 3.市代 4.门店")
private Integer merchantLevel;
/**
* 商户账号类型
*/
@ApiModelProperty(notes = "商户账号类型")
private String accountTypes;
/**
* 门店利润/车
*/
@ApiModelProperty(notes = "门店利润")
private BigDecimal storeProfitPerCar;
}
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import lombok.Data;
/**
* 商户信息历史记录DTO
* 对应dj_car_life_merchant_store_info_history表
*/
@Data
public class MerchantInfoHistoryDTO implements Serializable {
private static final long serialVersionUID= 1L;
@ApiModelProperty( notes= "历史记录ID")
private Long id;
@ApiModelProperty( notes= "关联更新批次表ID")
private Long sceneMerchantRefUpdId;
@ApiModelProperty( notes= "流量方ID")
private Integer trafficPartyId;
@ApiModelProperty( notes= "流量方名称")
private String trafficPartyName;
@ApiModelProperty( notes= "园区店ID")
private Integer parkingStoreId;
@ApiModelProperty( notes= "园区店名称")
private String parkingStoreName;
@ApiModelProperty( notes= "服务商ID")
private Integer serviceProviderId;
@ApiModelProperty( notes= "服务商名称")
private String serviceProviderName;
@ApiModelProperty( notes= "上级服务商商户名")
private String parentServiceMerchantName;
@ApiModelProperty( notes= "服务商2/f公司商户名")
private String serviceMerchant2fName;
@ApiModelProperty( notes= "签约主体ID")
private Integer signingEntityId;
@ApiModelProperty( notes= "签约主体名称")
private String signingEntityName;
@ApiModelProperty( notes= "运营模式(1-直营, 2-非直营)")
private Integer operationMode;
@ApiModelProperty( notes= "业务模式")
private Integer businessMode;
@ApiModelProperty( notes= "预计收入")
private BigDecimal estimatedRevenue;
@ApiModelProperty( notes= "交付数量")
private Integer deliveryCount;
@ApiModelProperty( notes= "客户触达率")
private BigDecimal customerTouchRate;
@ApiModelProperty( notes= "人员成本")
private BigDecimal personnelCost;
@ApiModelProperty( notes= "租金成本")
private BigDecimal rentCost;
@ApiModelProperty( notes= "折旧成本")
private BigDecimal depreciationCost;
@ApiModelProperty( notes= "其他成本")
private BigDecimal otherCost;
@ApiModelProperty( notes= "区域运营ID")
private Integer areaOpId;
@ApiModelProperty( notes= "区域运营名称")
private String areaOpName;
@ApiModelProperty( notes= "线上运营ID")
private Integer onlineOpId;
@ApiModelProperty( notes= "线上运营名称")
private String onlineOpName;
@ApiModelProperty( notes= "区域督导ID")
private Integer regionSupervisorId;
@ApiModelProperty( notes= "区域督导名称")
private String regionSupervisorName;
@ApiModelProperty( notes= "状态(1-启用, 0-禁用)")
private Integer status;
@ApiModelProperty( notes= "操作类型(1-新增, 2-更新, 3-禁用, 4-启用)")
private Integer operationType;
@ApiModelProperty( notes= "操作人")
private String createdBy;
@ApiModelProperty( notes= "操作时间")
private Date createdDate;
@ApiModelProperty( notes= "批次号")
private String batchNumber;
@ApiModelProperty( notes= "更新时间")
private Date updatedDate;
/**
* 流量方上级商名称
*/
@ApiModelProperty(notes = "流量方上级商名称")
private String parentMerchantName;
/**
* 门店利润/车
*/
@ApiModelProperty(notes = "门店利润")
private BigDecimal storeProfitPerCar;
/**
* 其他服务商(JSON格式存储多个服务商)
*/
@Column(name = "other_service_providers")
private String otherServiceProviders;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import lombok.Data;
/**
* 产品详情DTO
* 对应dj_car_life_merchant_store_product_detail表
*/
@Data
public class ProductDetailDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "主键ID")
private Integer id;
/**
* 产品ID
*/
@Column(name = "product_id")
private Integer productId;
@ApiModelProperty(name = "productType", notes = "类型", dataType = "string")
private String productType;
@ApiModelProperty(name = "productCategory", notes = "销售品类", dataType = "string")
private String productCategory;
@ApiModelProperty(name = "penetrationRate", notes = "渗透率 (%)")
private BigDecimal penetrationRate;
@ApiModelProperty(name = "conversionRate", notes = "转化率 (%)")
private BigDecimal conversionRate;
@ApiModelProperty(name = "revenuePerCar", notes = "单车采购产值")
private BigDecimal revenuePerCar;
@ApiModelProperty(name = "estimatedConversion", notes = "预估转化率 (%)")
private BigDecimal estimatedConversion;
@ApiModelProperty(name = "estimatedUpgradePrice", notes = "升级客单价")
private BigDecimal estimatedUpgradePrice;
@ApiModelProperty(name = "estimatedRevenue", notes = "预估产值")
private BigDecimal estimatedRevenue;
@ApiModelProperty(name = "trafficFee", notes = "流量费")
private BigDecimal trafficFee;
@ApiModelProperty(name = "marketFee1", notes = "管理层市场费1")
private BigDecimal marketFee1;
@ApiModelProperty(name = "marketFee2", notes = "管理层市场费2")
private BigDecimal marketFee2;
@ApiModelProperty(name = "incentive1", notes = "一线阳光激励1")
private BigDecimal incentive1;
@ApiModelProperty(name = "incentive2", notes = "一线阳光激励2")
private BigDecimal incentive2;
@ApiModelProperty(name = "resourceFee", notes = "资源费")
private BigDecimal resourceFee;
@ApiModelProperty(name = "productCost", notes = "产品成本 (品类专属成本)")
private BigDecimal productCost;
@ApiModelProperty(notes = "原厂膜回收")
private BigDecimal recyclingFilm;
@ApiModelProperty(name = "djGrossProfit", notes = "嘀加毛利 (自动计算)")
private BigDecimal djGrossProfit;
/**
* 预估转化率 (%)
*/
private String feeSettlementMode;
@ApiModelProperty(notes = "创建人")
private String createdBy;
@ApiModelProperty(notes = "创建时间")
private Date createdDate;
@ApiModelProperty(notes = "更新人")
private String updatedBy;
@ApiModelProperty(notes = "更新时间")
private Date updatedDate;
}
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 产品详情编辑DTO
* 用于编辑产品详情信息
*
* @author caiym
* @since 2026-04-23
*/
@Data
@ApiModel(value = "ProductDetailEditDTO", description = "产品详情编辑DTO")
public class ProductDetailEditDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 产品ID
*/
@ApiModelProperty(value = "产品ID", example = "1")
private Integer productId;
/**
* 产品品类
*/
@ApiModelProperty(value = "产品品类", example = "1")
private String productCategory;
/**
* 预计收入
*/
@ApiModelProperty(value = "预计收入", example = "10000.00")
private BigDecimal estimatedRevenue;
/**
* 费用结算模式
*/
@ApiModelProperty(value = "费用结算模式", example = "1")
private Integer feeSettlementMode;
/**
* 状态(1-启用,0-禁用)
*/
@ApiModelProperty(value = "状态(1-启用,0-禁用)", example = "1")
private Integer status;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto.merchant;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import lombok.Data;
/**
* 产品详情历史记录DTO
* 对应dj_car_life_merchant_store_product_detail_history表
*/
@Data
public class ProductDetailHistoryDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "历史记录ID")
private Long id;
@ApiModelProperty(notes = "关联更新批次表ID")
private Long sceneMerchantRefUpdId;
/**
* 类型
*/
private String productType;
/**
* 销售品类
*/
private String productCategory;
/**
* 渗透率 (%)
*/
private BigDecimal penetrationRate;
/**
* 转化率 (%)
*/
private BigDecimal conversionRate;
/**
* 单车采购产值
*/
private BigDecimal revenuePerCar;
/**
* 预估转化率 (%)
*/
private BigDecimal estimatedConversion;
/**
* 预估转化率 (%)
*/
private String feeSettlementMode;
/**
* 升级客单价
*/
private BigDecimal estimatedUpgradePrice;
/**
* 预估产值
*/
private BigDecimal estimatedRevenue;
/**
* 膜产值
*/
private BigDecimal recyclingFilm;
/**
* 流量费
*/
private BigDecimal trafficFee;
/**
* 管理层市场费1
*/
private BigDecimal marketFee1;
/**
* 管理层市场费2
*/
private BigDecimal marketFee2;
/**
* 一线阳光激励1
*/
private BigDecimal incentive1;
/**
* 一线阳光激励2
*/
private BigDecimal incentive2;
/**
* 资源费
*/
private BigDecimal resourceFee;
/**
* 产品成本 (品类专属成本)
*/
private BigDecimal productCost;
@ApiModelProperty(notes = "操作类型(1-新增, 2-更新, 3-禁用, 4-启用)")
private Integer operationType;
@ApiModelProperty(notes = "操作人")
private String createdBy;
@ApiModelProperty(notes = "操作时间")
private Date createdDate;
@ApiModelProperty(notes = "批次号")
private String batchNumber;
@ApiModelProperty(notes = "更新时间")
private Date updatedDate;
}
package cn.com.glsx.dj.smartcarlife.dto.merchantPerformanceConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.List;
/**
* @ClassName AssignStaffMerchantDTO
* @Description 员工基础账号分配门店 DTO
*/
@Data
@ToString
public class AssignStaffMerchantDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "员工基础信息id")
private Integer staffId;
@ApiModelProperty(notes = "入职门店名称")
private String merchantName;
@ApiModelProperty(notes = "入职门店商户号")
private Integer merchantId;
@ApiModelProperty(notes = "分配的业务场景列表")
private List<SceneItem> sceneList;
@ApiModelProperty(notes = "关联的园区店列表")
private List<YqMerchantItem> yqMerchantList;
@ApiModelProperty(notes = "操作人")
private String operatorBy;
@ApiModelProperty(notes = "创建来源(1:账户中心,2:SCRM,3:生意助手,4:门店助手,5:服务商saas,6:D+,7:生意助手员工版小程序,8:北森同步)")
private Byte createdSource;
/**
* 业务场景项
*/
@Data
@ToString
public static class SceneItem implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "场景标识")
private String baseSceneCode;
@ApiModelProperty(notes = "原来的场景(scene_type)")
private Byte sceneType;
}
/**
* 园区店项
*/
@Data
@ToString
public static class YqMerchantItem implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "园区店名称")
private String yqMerchantName;
@ApiModelProperty(notes = "园区店商户号")
private Integer yqMerchantId;
}
}
package cn.com.glsx.dj.smartcarlife.dto.merchantPerformanceConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.List;
/**
* @ClassName SingleAssignStaffMerchantDTO
* @Description 员工基础账号单个分配门店 DTO
*/
@Data
@ToString
public class SingleAssignStaffMerchantDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "员工基础信息id")
private Integer staffId;
@ApiModelProperty(notes = "入职门店名称")
private String merchantName;
@ApiModelProperty(notes = "入职门店商户号")
private Integer merchantId;
@ApiModelProperty(notes = "分配的业务场景-场景标识列表")
private List<String> baseSceneCodeList;
@ApiModelProperty(notes = "关联的园区店名称")
private String yqMerchantName;
@ApiModelProperty(notes = "关联的园区店商户号")
private Integer yqMerchantId;
@ApiModelProperty(notes = "操作人")
private String operatorBy;
@ApiModelProperty(notes = "创建来源(1:账户中心,2:SCRM,3:生意助手,4:门店助手,5:服务商saas,6:D+,7:生意助手员工版小程序,8:北森同步)")
private Byte createdSource;
}
......@@ -67,4 +67,13 @@ public class StaffAccountRecordDTO extends StaffAccountRecord implements Seriali
@ApiModelProperty(notes = "删除标识list")
private List<String> deletedFlagList;
/**
* 园区店商户号list
*/
private List<Integer> yqMerchantIdList;
@ApiModelProperty(notes = "适配业务字符串,多个以“、”分隔,无适配业务则为null")
private String accountSceneStr;
}
......@@ -100,4 +100,24 @@ public class StaffBaseInfoDTO extends StaffBaseInfo {
@ApiModelProperty(notes = "归属4s店商户号列表")
private List<Integer> merchantIdList;
@ApiModelProperty(notes = "入职岗位id")
private String oIdJobPostId;
@ApiModelProperty(notes = "入职岗位")
private String oIdJobPost;
@ApiModelProperty(notes = "场景标识")
private String baseSceneCode;
@ApiModelProperty(notes = "适配业务字符串,多个以“、”分隔,无适配业务则为null")
private String accountSceneStr;
@ApiModelProperty(notes = "北森分配的门店对应嘀加商户号id")
private Integer beisenMerchantId;
@ApiModelProperty(notes = "北森分配的门店对应嘀加商户名称")
private String beisenMerchantName;
}
package cn.com.glsx.dj.smartcarlife.dto.merchantPerformanceConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
/**
* @ClassName SyncBeiSenStaffInfoDTO
* @Description 北森员工信息同步覆盖嘀加系统员工信息 DTO
*/
@Data
@ToString
public class SyncBeiSenStaffInfoDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "嘀加员工信息id", required = true)
private Integer staffId;
@ApiModelProperty(notes = "北森员工信息userID", required = true)
private Integer beiSenUserID;
@ApiModelProperty(notes = "操作人账号")
private String operatorBy;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto.merchantRef;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class BatchMerchantRefStatusDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "merchantId", notes = "商户ID", dataType = "integer", required = true)
private Integer merchantId;
@ApiModelProperty(name = "updatedBy", notes = "更新人", dataType = "string", required = true)
private String updatedBy;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto.merchantRef;
import cn.com.glsx.dj.smartcarlife.dto.ProductDetailBusinessDTO;
import cn.com.glsx.dj.smartcarlife.dto.TrafficPartyBusinessDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
......@@ -54,4 +56,21 @@ public class MerchantRefSceneAddDTO implements Serializable {
private String updatedBy;
/**
* 基础场景编码
*/
@ApiModelProperty(name="baseSceneCode", notes = "基础场景编码", dataType = "string")
private String baseSceneCode;
/**
* 流量方业务数据
*/
private TrafficPartyBusinessDTO trafficPartyBusinessData;
/**
* 销售品类业务数据列表
*/
private List<ProductDetailBusinessDTO> productDetailBusinessDataList;
}
package cn.com.glsx.dj.smartcarlife.dto.merchantRef;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class MerchantRefStatusDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "merchantId", notes = "商户ID", dataType = "integer", required = true)
private Integer merchantId;
@ApiModelProperty(name = "scene", notes = "场景", dataType = "integer", required = true)
private Integer scene;
@ApiModelProperty(name = "baseSceneCode", notes = "业务场景编码", dataType = "string")
private String baseSceneCode;
@ApiModelProperty(name = "updatedBy", notes = "更新人", dataType = "string", required = true)
private String updatedBy;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto.merchantRef;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class TrafficPartyDTO {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "merchantId", notes = "商户ID", dataType = "integer")
private Integer merchantId;
@ApiModelProperty(name = "merchantName", notes = "商户名称", dataType = "string")
private String merchantName;
@ApiModelProperty(name = "scene", notes = "场景", dataType = "integer")
private Integer scene;
@ApiModelProperty(name = "baseSceneCode", notes = "最小粒度的场景code", dataType = "string")
private String baseSceneCode;
@ApiModelProperty(name = "yqMerchantId", notes = "园区店ID", dataType = "integer")
private Integer yqMerchantId;
@ApiModelProperty(name = "yqMerchantName", notes = "园区店名称", dataType = "string")
private String yqMerchantName;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto.merchantRef;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class TrafficPartyQueryDTO {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "merchantId", notes = "商户ID", dataType = "integer")
private Integer merchantId;
@ApiModelProperty(name = "merchantName", notes = "商户名称", dataType = "string")
private String merchantName;
@ApiModelProperty(name = "scene", notes = "场景", dataType = "integer")
private Integer scene;
}
\ No newline at end of file
......@@ -260,4 +260,9 @@ public class ReconciliationBillDTO extends ReconciliationBill {
*/
private String fixedFieldsJson;
/**
* 基础场景编码列表,用于过滤场景类型
*/
private List<String> baseSceneCodeList;
}
......@@ -77,4 +77,19 @@ public class ReconciliationBillOrderDTO extends ReconciliationBillOrder {
* 对账单测算筛选项过滤出的对账单id列表
*/
private List<Long> filterOrderIdList;
/**
* 基础场景编码
*/
private String baseSceneCode;
/**
* 基础场景名称(由baseSceneCode翻译)
*/
private String baseSceneName;
/**
* 客户来源(0-售前;1-售后;2-自然到店)
*/
private Byte salesType;
}
package cn.com.glsx.dj.smartcarlife.dto.scene;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
/**
* 场景DTO
*/
@Data
@ApiModel(value = "SceneDTO", description = "场景信息")
public class SceneDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@ApiModelProperty(notes = "主键ID", dataType = "Long", example = "1")
private Long id;
/**
* 场景编号
*/
@ApiModelProperty(notes = "场景编号", dataType = "String", example = "SC001")
private String num;
/**
* 场景名称
*/
@ApiModelProperty(notes = "场景名称", dataType = "String", example = "新车交付场景")
private String name;
/**
* 场景标识
*/
@ApiModelProperty(notes = "场景标识", dataType = "String", example = "NEW_CAR_DELIVERY")
private String baseSceneCode;
/**
* 业务大类编码
*/
@ApiModelProperty(notes = "业务大类编码", dataType = "String", example = "YB")
private String bizTypeCode;
/**
* 业务大类名称
*/
@ApiModelProperty(notes = "业务大类名称", dataType = "String", example = "延保")
private String bizTypeName;
/**
* 业务小类编码
*/
@ApiModelProperty(notes = "业务小类编码", dataType = "String", example = "YB_01")
private String subTypeCode;
/**
* 业务小类名称
*/
@ApiModelProperty(notes = "业务小类名称", dataType = "String", example = "基础延保")
private String subTypeName;
/**
* 场景描述
*/
@ApiModelProperty(notes = "场景描述", dataType = "String", example = "适用于新车交付时的场景配置")
private String description;
/**
* 原来的场景
*/
@ApiModelProperty(notes = "原来的场景", dataType = "Integer", example = "1")
private Integer sceneType;
/**
* 原来的二级场景
*/
@ApiModelProperty(notes = "原来的二级场景", dataType = "Integer", example = "0")
private Integer businessType;
/**
* 状态:1 启用,0 禁用
*/
@ApiModelProperty(notes = "状态:1 启用,0 禁用", dataType = "Integer", example = "1")
private Integer status;
/**
* 状态名称
*/
@ApiModelProperty(notes = "状态名称", dataType = "String", example = "启用")
private String statusName;
/**
* 标签ID列表
*/
@ApiModelProperty(notes = "标签ID列表", dataType = "List<Long>")
private List<Long> tagIds;
/**
* 标签名称列表
*/
@ApiModelProperty(notes = "标签名称列表", dataType = "List<String>")
private List<String> tagNames;
/**
* 创建人
*/
@ApiModelProperty(notes = "创建人", dataType = "String", example = "admin")
private String createdBy;
/**
* 创建时间
*/
@ApiModelProperty(notes = "创建时间", dataType = "String", example = "2025-01-01 12:00:00")
private String createdDate;
/**
* 更新人
*/
@ApiModelProperty(notes = "更新人", dataType = "String", example = "admin")
private String updatedBy;
/**
* 更新时间
*/
@ApiModelProperty(notes = "更新时间", dataType = "String", example = "2025-01-01 12:00:00")
private String updatedDate;
}
package cn.com.glsx.dj.smartcarlife.dto.scene;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
/**
* 场景查询DTO
*/
@Data
public class SceneQueryDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 场景名称(模糊查询)
*/
private String name;
/**
* 标签ID列表(多选)
*/
private List<Long> tagIds;
/**
* 业务大类编码
*/
private String bizTypeCode;
/**
* 业务小类编码
*/
private String subTypeCode;
/**
* 原来的场景
*/
private Integer sceneType;
/**
* 原来的二级场景
*/
private Integer businessType;
/**
* 状态
*/
private Integer status;
}
package cn.com.glsx.dj.smartcarlife.dto.scene;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
/**
* 场景查询过滤条件DTO
*/
@Data
public class SceneQueryFilterDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 员工手机号
*/
private String staffPhone;
/**
* 园区店商户号
*/
private Integer yqMerchantId;
/**
* 场景名称(模糊查询)
*/
@ApiModelProperty(notes = "场景名称(模糊查询)")
private String name;
/**
* 标签ID列表(多选)
*/
private List<Long> tagIds;
/**
* 业务大类编码
*/
@ApiModelProperty(notes = "业务大类编码")
private String bizTypeCode;
/**
* 业务小类编码
*/
@ApiModelProperty(notes = "业务小类编码")
private String subTypeCode;
/**
* 原来的场景
*/
@ApiModelProperty(notes = "原来的场景")
private Integer sceneType;
/**
* 原来的二级场景
*/
@ApiModelProperty(notes = "原来的二级场景")
private Integer businessType;
/**
* 场景标识
*/
@ApiModelProperty(notes = "场景编码")
private String baseSceneCode;
/**
* 状态
*/
@ApiModelProperty(notes = "状态")
private Integer status;
/**
* 场景标识List
*/
@ApiModelProperty(notes = "场景编码List")
private List<String> baseSceneCodeList;
/**
* 场景IDList
*/
@ApiModelProperty(notes = "场景IDList")
private List<Integer> sceneIds;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto.scene;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* 标签模型
*/
@Data
public class TagDTO implements Serializable {
/**
* 主键ID
*/
private Long id;
/**
* 标签名称
*/
private String name;
/**
* 删除标识:D 已删除;N 未删除
*/
private String deletedFlag;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdDate;
/**
* 更新人
*/
private String updatedBy;
/**
* 更新时间
*/
private Date updatedDate;
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.dto.staff;
import cn.com.glsx.dj.smartcarlife.dto.merchantPerformanceConfig.StaffAccountRecordDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -46,4 +45,8 @@ public class StaffDailyReportConfigListDTO implements Serializable {
@ApiModelProperty(notes = "员工账号列表")
private List<StaffAccountDTO> staffAccountList;
@ApiModelProperty(notes = "员工ID")
private Integer staffId;
}
......@@ -39,7 +39,7 @@ public class OwnerDTO implements Serializable {
@ApiModelProperty(notes = "车主性别(男,女,未知)")
private String ownerGender;
@ApiModelProperty(name = "salesType", notes = "客户类型:0-售前;1-售后;", dataType = "Integer")
@ApiModelProperty(name = "salesType", notes = "客户类型:0-售前;1-售后;2-自然到店;", dataType = "Integer")
private Integer salesType;
/**
* 证件号码
......
......@@ -243,6 +243,12 @@ public class QuotationDTO implements Serializable {
@ApiModelProperty(notes = "订单类型(1:正常订单,2:打折策略,3:买赠策略,4:冲量活动,5:组合付款)")
private Integer orderType;
@ApiModelProperty(notes = "场景标识")
private String baseSceneCode;
@ApiModelProperty(notes = "场景名称")
private String baseSceneName;
@ApiModelProperty(notes = "优惠金额(单位分)")
private Integer discountAmount;
......
......@@ -37,7 +37,7 @@ public class QuotationPageDTO implements Serializable {
*/
private String customerName;
@ApiModelProperty(name = "salesType", notes = "客户类型:0-售前;1-售后;", dataType = "Integer")
@ApiModelProperty(name = "salesType", notes = "客户类型:0-售前;1-售后;2-自然到店;", dataType = "Integer")
private Integer salesType;
/**
......@@ -238,6 +238,12 @@ public class QuotationPageDTO implements Serializable {
@ApiModelProperty(notes = "已对账标识(Y:已对账,N:未对账")
private String reconciliationFlag;
@ApiModelProperty(notes = "场景标识(base_scene_code)")
private String baseSceneCode;
@ApiModelProperty(notes = "场景名称")
private String baseSceneName;
/**
* 订单类型:1:正常订单,2:打折策略,3:买赠策略,4:冲量活动,5:组合付款
* @see OrderTypeEnum
......
......@@ -156,4 +156,7 @@ public class QuotationPageQueryDTO implements Serializable {
@ApiModelProperty(notes = "异常标记(Y:异常订单,N:非异常订单)")
private String abnormalFlag;
@ApiModelProperty(notes = "场景标识")
private String baseSceneCode;
}
package cn.com.glsx.dj.smartcarlife.enums;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 场景上架枚举类,对应dj_car_life_scene表数据
*/
public enum BaseSceneEnum {
// biz_type = 1
QUALITY_UPGRADE("100101", "1", null, "精品升级", (byte) 1),
NEW_CAR_DELIVERY("100102", "1", null, "次新车升配", (byte) 2),
AFTER_SALE("100103", "1", null, "售后众筹", (byte) 3),
// biz_type = 2
PRE_MEMBER_UPGRADE("110101", "2", "2", "售前会员权益升级", (byte) 0),
POST_MEMBER_UPGRADE("110102", "2", "2", "售后会员权益升级", (byte) 0),
PRE_EXTEND_WARRANTY("110201", "2", "3", "售前延保", (byte) 0),
POST_EXTEND_WARRANTY("110202", "2", "3", "售后延保", (byte) 0),
// biz_type = 6
USED_CAR_RECYCLE("120101", "6", null, "二手车收车", (byte) 7);
private final String baseSceneCode;
private final String bizTypeCode;
private final String subTypeCode;
private final String desc;
private final Byte sceneType;
private static final Map<String, BaseSceneEnum> CODE_MAP;
private static final Map<String, List<BaseSceneEnum>> BIZ_TYPE_MAP;
static {
Map<String, BaseSceneEnum> codeMap = new HashMap<>();
Map<String, List<BaseSceneEnum>> bizTypeMap = new HashMap<>();
for (BaseSceneEnum sceneEnum : BaseSceneEnum.values()) {
if (sceneEnum == null) {
continue;
}
// 构建 code -> enum
if (isNotBlank(sceneEnum.getBaseSceneCode())) {
codeMap.put(sceneEnum.getBaseSceneCode(), sceneEnum);
}
// 构建 bizType -> list
if (isNotBlank(sceneEnum.getBizTypeCode())) {
bizTypeMap
.computeIfAbsent(sceneEnum.getBizTypeCode(), k -> new ArrayList<BaseSceneEnum>())
.add(sceneEnum);
}
}
CODE_MAP = Collections.unmodifiableMap(codeMap);
BIZ_TYPE_MAP = toUnmodifiableNestedMap(bizTypeMap);
}
BaseSceneEnum(String baseSceneCode, String bizTypeCode, String subTypeCode, String desc, Byte sceneType) {
this.baseSceneCode = baseSceneCode;
this.bizTypeCode = bizTypeCode;
this.subTypeCode = subTypeCode;
this.desc = desc;
this.sceneType = sceneType;
}
public String getBaseSceneCode() {
return baseSceneCode;
}
public String getBizTypeCode() {
return bizTypeCode;
}
public String getSubTypeCode() {
return subTypeCode;
}
public String getDesc() {
return desc;
}
public Byte getSceneType() {
return sceneType;
}
/**
* 根据 baseSceneCode 获取枚举
*/
public static BaseSceneEnum fromCode(String baseSceneCode) {
if (!isNotBlank(baseSceneCode)) {
return null;
}
return CODE_MAP.get(baseSceneCode);
}
/**
* 根据 bizTypeCode 获取所有场景
*/
public static List<BaseSceneEnum> listByBizType(String bizTypeCode) {
if (!isNotBlank(bizTypeCode)) {
return Collections.emptyList();
}
List<BaseSceneEnum> list = BIZ_TYPE_MAP.get(bizTypeCode);
return list == null ? Collections.<BaseSceneEnum>emptyList() : list;
}
/**
* 根据 bizTypeCode 获取所有 baseSceneCode
*/
public static List<String> listCodesByBizType(String bizTypeCode) {
List<BaseSceneEnum> list = listByBizType(bizTypeCode);
if (list.isEmpty()) {
return Collections.emptyList();
}
List<String> result = new ArrayList<>(list.size());
for (BaseSceneEnum sceneEnum : list) {
if (sceneEnum != null && isNotBlank(sceneEnum.getBaseSceneCode())) {
result.add(sceneEnum.getBaseSceneCode());
}
}
return Collections.unmodifiableList(result);
}
/**
* 判断是否属于某个 bizType
*/
public boolean isBizType(String bizTypeCode) {
return isEquals(this.bizTypeCode, bizTypeCode);
}
/**
* 判断是否属于某个 sceneType
*/
public boolean isSceneType(Byte sceneType) {
return isEquals(this.sceneType, sceneType);
}
// ================== 工具方法 ==================
private static Map<String, List<BaseSceneEnum>> toUnmodifiableNestedMap(Map<String, List<BaseSceneEnum>> source) {
Map<String, List<BaseSceneEnum>> result = new HashMap<>();
for (Map.Entry<String, List<BaseSceneEnum>> entry : source.entrySet()) {
result.put(entry.getKey(), Collections.unmodifiableList(entry.getValue()));
}
return Collections.unmodifiableMap(result);
}
private static boolean isNotBlank(String str) {
return str != null && str.trim().length() > 0;
}
private static boolean isEquals(Object a, Object b) {
return a == null ? b == null : a.equals(b);
}
}
\ No newline at end of file
......@@ -2436,7 +2436,11 @@ public class CarLifeEnum {
MEDIUM_SKY_LIGHT((byte)6, "单帖中天窗"),
/** 单帖全景天窗 **/
PANORAMIC_SKY_LIGHT((byte)7, "单帖全景天窗"),
/** 全车 **/
ALL_CAR((byte)11, "全车"),
/** 半车 **/
HALF_CAR((byte)12, "半车"),
/*** 延保类 部位***/
/** 3电 **/
THREE_ELECTRICITY((byte)8, "3电"),
......
......@@ -12,7 +12,9 @@ public enum CreatedSourceEnum {
STORE_ASSISTANT((byte)4,"门店助手"),
SERVICE_PROVIDER_SAAS((byte)5,"服务商saas"),
DJ((byte)6,"D+"),
BUSINESS_ASSISTANT_STAFF((byte)7,"生意助手员工版小程序");
BUSINESS_ASSISTANT_STAFF((byte)7,"生意助手员工版小程序"),
BEI_SEN_SYNC((byte)8,"北森同步"),
;
private final Byte value;
private final String name;
......
......@@ -11,7 +11,9 @@ public enum DjOrderTypeEnum {
DISCOUNT((byte)2,"打折策略"),
BUY_GIVING ((byte)3,"买赠策略"),
MOMENTUM_ACTIVITY((byte)4,"冲量活动"),
GROUP_PAYMENT((byte)5,"组合付款");
GROUP_PAYMENT((byte)5,"组合付款"),
INNER_SETTLE((byte)6,"内部结算"),
;
private byte value;
......
......@@ -9,9 +9,9 @@ public enum GoodsGroupCategoryTypeEnum {
*/
GOODS_TYPE((byte)1,"按商品品类"),
/**
* 按具体商品
* 按具体上架商品,关联dj_car_life_merchant_goods_info.merchant_goods_code
*/
UPGRADE_GOODS((byte)2,"按具体商品"),
UPGRADE_GOODS((byte)2,"按具体上架商品"),
/**
* 按具体套餐
*/
......
package cn.com.glsx.dj.smartcarlife.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
@AllArgsConstructor
@Getter
public enum NoticeTypeEnum {
PRODUCT_LISTED(1, "【新建产品上架】"),
PRODUCT_PRICE_DECREASE(2, "【产品价格调整-降价】"),
PRODUCT_PRICE_INCREASE(3, "【产品价格调整-涨价】"),
PRODUCT_APPLICABLE_REGION_CHANGE(4, "【产品适用区域调整通知】");
private final Integer code;
private final String desc;
public static String getDescByCode(Integer code) {
if (code == null) {
return null;
}
return Arrays.stream(values())
.filter(item -> item.getCode().equals(code))
.map(NoticeTypeEnum::getDesc)
.findFirst()
.orElse(null);
}
public static NoticeTypeEnum getByCode(Integer code) {
if (code == null) {
return null;
}
return Arrays.stream(values())
.filter(item -> item.getCode().equals(code))
.findFirst()
.orElse(null);
}
}
package cn.com.glsx.dj.smartcarlife.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
@Getter
@AllArgsConstructor
public enum OnShelfStatusEnum {
/**
* 已下架
*/
OFF_SHELF(0, "待上架"),
/**
* 已上架
*/
ON_SHELF(1, "已上架");
private final Integer code;
private final String desc;
private static final Map<Integer, OnShelfStatusEnum> CODE_MAP =
Arrays.stream(OnShelfStatusEnum.values())
.collect(Collectors.toMap(OnShelfStatusEnum::getCode, Function.identity()));
private static final Map<String, OnShelfStatusEnum> DESC_MAP =
Arrays.stream(OnShelfStatusEnum.values())
.collect(Collectors.toMap(OnShelfStatusEnum::getDesc, Function.identity()));
/**
* 根据 code 获取枚举
*/
public static OnShelfStatusEnum getByCode(Integer code) {
return CODE_MAP.get(code);
}
/**
* 根据 desc 获取枚举
*/
public static OnShelfStatusEnum getByDesc(String desc) {
return DESC_MAP.get(desc);
}
/**
* 根据 code 获取 desc
*/
public static String getDescByCode(Integer code) {
OnShelfStatusEnum statusEnum = getByCode(code);
return statusEnum == null ? null : statusEnum.getDesc();
}
/**
* 根据 desc 获取 code
*/
public static Integer getCodeByDesc(String desc) {
OnShelfStatusEnum statusEnum = getByDesc(desc);
return statusEnum == null ? null : statusEnum.getCode();
}
/**
* 判断 code 是否存在
*/
public static boolean containsCode(Integer code) {
return CODE_MAP.containsKey(code);
}
/**
* 判断 desc 是否存在
*/
public static boolean containsDesc(String desc) {
return DESC_MAP.containsKey(desc);
}
}
\ No newline at end of file
......@@ -29,7 +29,9 @@ public enum PriceUnitEnum {
TONG((byte)18, "桶"),
WEI((byte)19, "位"),
YE((byte)20, "页"),
ZHANG((byte)21, "张");
ZHANG((byte)21, "张"),
CHE((byte)22, "车");
private byte value;
......
package cn.com.glsx.dj.smartcarlife.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
@Getter
@AllArgsConstructor
public enum ProductStatusEnum {
/**
* 已下架
*/
OFF_SHELF(0, "已下架"),
/**
* 已上架
*/
ON_SHELF(1, "已上架"),
/**
* 草稿
*/
DRAFT(3, "草稿"),
/**
* 待审核
*/
PENDING_REVIEW(4, "待审核");
private final Integer code;
private final String desc;
private static final Map<Integer, ProductStatusEnum> CODE_MAP =
Arrays.stream(ProductStatusEnum.values())
.collect(Collectors.toMap(ProductStatusEnum::getCode, Function.identity()));
private static final Map<String, ProductStatusEnum> DESC_MAP =
Arrays.stream(ProductStatusEnum.values())
.collect(Collectors.toMap(ProductStatusEnum::getDesc, Function.identity()));
/**
* 根据 code 获取枚举
*/
public static ProductStatusEnum getByCode(Integer code) {
return CODE_MAP.get(code);
}
/**
* 根据 desc 获取枚举
*/
public static ProductStatusEnum getByDesc(String desc) {
return DESC_MAP.get(desc);
}
/**
* 根据 code 获取 desc
*/
public static String getDescByCode(Integer code) {
ProductStatusEnum statusEnum = getByCode(code);
return statusEnum == null ? null : statusEnum.getDesc();
}
/**
* 根据 desc 获取 code
*/
public static Integer getCodeByDesc(String desc) {
ProductStatusEnum statusEnum = getByDesc(desc);
return statusEnum == null ? null : statusEnum.getCode();
}
/**
* 判断 code 是否存在
*/
public static boolean containsCode(Integer code) {
return CODE_MAP.containsKey(code);
}
/**
* 判断 desc 是否存在
*/
public static boolean containsDesc(String desc) {
return DESC_MAP.containsKey(desc);
}
}
\ No newline at end of file
package cn.com.glsx.dj.smartcarlife.enums;
/**
* 规则操作类型枚举
* 用于增量提交时标识品类规则的操作类型
*/
public enum RuleOperationTypeEnum {
/**
* 新增
*/
ADD("ADD", "新增"),
/**
* 修改
*/
UPDATE("UPDATE", "修改"),
/**
* 删除
*/
DELETE("DELETE", "删除");
private String value;
private String displayName;
RuleOperationTypeEnum(String value, String displayName) {
this.value = value;
this.displayName = displayName;
}
public String getValue() {
return value;
}
public String getDisplayName() {
return displayName;
}
public static RuleOperationTypeEnum getByValue(String value) {
if (value != null) {
for (RuleOperationTypeEnum temp : RuleOperationTypeEnum.values()) {
if (temp.getValue().equals(value)) {
return temp;
}
}
}
return null;
}
/**
* 验证操作类型是否有效
*/
public static boolean isValid(String value) {
return getByValue(value) != null;
}
}
......@@ -17,7 +17,8 @@ public enum SalesTypeEnum {
/**
* 分账
*/
AFTER_SALE((byte)1,"售后")
AFTER_SALE((byte)1,"售后"),
WALK_IN((byte)2,"自然到店")
;
private byte value;
......
......@@ -8,7 +8,11 @@ package cn.com.glsx.dj.smartcarlife.enums;
public enum WorkingStatusEnum {
ON_THE_JOB((byte)0,"在职"),
DIMISSION((byte)1,"离职");
DIMISSION((byte)1,"离职"),
WAIT_ACTIVATE((byte)2,"待激活"),
ASSIGNED_MERCHANT((byte)3,"已分配门店");
private final Byte value;
private final String name;
......
......@@ -12,12 +12,15 @@ import lombok.Getter;
@Getter
@AllArgsConstructor
public enum OrderTypeEnum {
//订单类型:1:正常订单,2:打折策略,3:买赠策略,4:冲量活动,5:组合付款
//订单类型:1:正常订单,2:打折策略,3:买赠策略,4:冲量活动,5:组合付款,6-内部结算
NORMAL(1, "正常订单"),
DISCOUNT(2, "打折策略"),
BUY_GIFT(3, "买赠策略"),
VOLUME_ACTIVITY(4, "冲量活动"),
COMBINATION_PAYMENT(5, "组合付款");
COMBINATION_PAYMENT(5, "组合付款"),
INTERNAL_SETTLEMENT(6, "内部结算");
private Integer code;
private String msg;
......
......@@ -141,10 +141,4 @@ public class BaseGoods implements Serializable{
*/
@Column(name = "deleted_flag")
private String deletedFlag;
/**
* 商品分类(一级)
*/
@Column(name = "goods_type")
private Integer goodsType;
}
......@@ -52,6 +52,12 @@ public class DivisionRuleEffectRecord implements Serializable {
private Byte sceneType;
/**
* 基础场景编码(细粒度场景)
*/
@Column(name = "base_scene_code")
private String baseSceneCode;
/**
* 对账规则或分账规则id
*/
@Column(name = "rule_id")
......
......@@ -31,6 +31,12 @@ public class FeeCategoryScene implements Serializable {
private Integer feeCategoryId;
/**
* 场景标识
*/
@Column(name = "base_scene_code")
private String baseSceneCode;
/**
* 应用场景类型
*/
@Column(name = "application_scene_type")
......@@ -72,4 +78,10 @@ public class FeeCategoryScene implements Serializable {
@Column(name = "deleted_flag")
private String deletedFlag;
/**
* 业务场景名称
*/
@Transient
private String baseSceneName;
}
\ No newline at end of file
......@@ -177,6 +177,11 @@ public class GoodsInfo implements Serializable{
@Column(name = "scrm_service_code")
private String scrmServiceCode;
@ApiModelProperty(notes = "供应商id")
@Column(name = "provider_id")
private Integer providerId;
/**
* 配件性质:1-原厂件 2-品牌件
*/
......
  • @wangxw1
    commented
    Master

    一、关键问题与优化建议(Top 3)

    1. 已有 Dubbo 请求参数校验规则变更(高危实现)

    • 问题描述:在 rpc-dj-smartcarlife-api 模块的 FeeCategoryDTO 中,移除了 applicationSceneTypes 字段的 @NotEmpty(groups = {FeeCategoryRemote.SaveFeeCategory.class}) 校验注解。
    • 影响分析:根据审查规则,Dubbo 服务提供者 Remote 接口中的已有请求参数变更视为危险实现。移除该校验约束会导致上游调用方在未传递该参数或传递空集合时,直接绕过参数拦截进入业务逻辑,极易引发服务端的 NullPointerException 或导致脏数据入库,严重影响已有服务的健壮性。
    • 优化建议:建议恢复该 @NotEmpty 校验注解以保持接口契约的向后兼容。若业务需求确实允许该字段为空,必须在所有使用到该字段的服务端业务代码中增加容错与判空处理逻辑,并全面评估对历史调用方的影响。

    2. 将带有绝对路径的本地 IDE 配置文件提交入库(工程规范)

    • 问题描述:本次变更中新增了 .vscode/settings.json 文件,且该文件中包含了特定于开发者本地环境的绝对路径(如 -javaagent:\"c:\\Users\\66\\.trae-cn\\...\\lombok.jar\")。
    • 影响分析:将本地 IDE 配置文件提交到代码库会污染项目结构。其中包含的本地绝对路径会导致团队其他成员在使用 VS Code 开发时出现路径解析错误或项目构建失败,严重影响团队协作体验与工程标准化。
    • 优化建议:将 .vscode/ 目录添加到项目的 .gitignore 文件中,并从版本控制中移除该文件: bash git rm --cached .vscode/settings.json

    3. DTO 传输层模型混入持久层注解(架构分层污染)

    • 问题描述:在 RPC API 模块的 ProductDetailDTO 和 MerchantInfoHistoryDTO 等数据传输对象(DTO)中,使用了 javax.persistence.Column 注解(如 @Column(name = "product_id") 和 @Column(name = "other_service_providers"))。
    • 影响分析:DTO 的核心职责是用于跨进程的 RPC 调用或跨层的数据传输。在 API 包中引入 JPA/Hibernate 持久层注解打破了系统的分层架构原则(依赖污染),增加了 API 模块的耦合度,这属于典型的反模式(Anti-Pattern)。
    • 优化建议:移除 DTO 类中的所有 @Column 等持久层相关注解。如果需要指定 JSON 序列化名称或 Swagger 描述,请使用标准的 @JsonProperty 或 @ApiModelProperty。

    二、评分明细

    1. 功能实现的正确性与健壮性(30/40分)

      • 理由:扣除 10 分。发现移除了已有请求参数的约束校验(危险实现);此外,GoodsOrderDTO 中新增的 excludeConstructionFlag 使用了基本数据类型 int,在 RPC 序列化中未传值时会产生默认值 0,无法区分是显式传递还是未传,存在触发默认逻辑的健壮性隐患(建议改用包装类 Integer)。
    2. 安全性与潜在风险(30/30分)

      • 理由:变更内容绝大部分为 DTO 模型的字段扩充,未见明显的 SQL 注入、越权、敏感信息泄露等安全漏洞。
    3. 最佳实践与可维护性(12/20分)

      • 理由:扣除 8 分。存在两个明显的工程实践问题:一是将包含绝对路径的本地 IDE 配置文件(.vscode)提交入库;二是 DTO 实体中混入了 JPA 持久层注解,破坏了架构分层隔离。
    4. 性能与资源利用(5/5分)

      • 理由:变更集中在 API 层的数据模型定义上,不存在明显的性能瓶颈或内存/资源浪费现象。
    5. 提交信息质量(4/5分)

      • 理由:扣除 1 分。Commit message 较为丰富,说明了业务背景和关联开发人员,但夹杂了较多不同分支 Merge 的零散记录,不够精炼,建议在合并时进行 Squash 压缩。

    总分:81分

Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!