Commit e551b5c7 by 周立明

合并代码

2 parents 4dfb3373 cd6ccbeb
...@@ -35,6 +35,12 @@ public class GoodsListingApproveAllImportVo implements Serializable { ...@@ -35,6 +35,12 @@ public class GoodsListingApproveAllImportVo implements Serializable {
/** 商品ID 会员权益、精品升级场景用到**/ /** 商品ID 会员权益、精品升级场景用到**/
private String upgradeCommodityCode; private String upgradeCommodityCode;
/** 类型(上架方式) */
private String shelfStyle;
/** 原上架ID */
private String oldMerchantGoodsCode;
/** 商品别名 会员权益、精品升级场景用到**/ /** 商品别名 会员权益、精品升级场景用到**/
private String upgradeGoodsNameAlias; private String upgradeGoodsNameAlias;
...@@ -44,6 +50,12 @@ public class GoodsListingApproveAllImportVo implements Serializable { ...@@ -44,6 +50,12 @@ public class GoodsListingApproveAllImportVo implements Serializable {
/** 最低价 会员权益、精品升级场景用到**/ /** 最低价 会员权益、精品升级场景用到**/
private String minSellPrice; private String minSellPrice;
/** 是否作为赠送产品 */
private String isGiftCost;
/** 产品成本获取方式 */
private String upgradeProductCostStyle;
/** 嘀加成本 会员权益场景用到**/ /** 嘀加成本 会员权益场景用到**/
private String djCost; private String djCost;
...@@ -53,6 +65,9 @@ public class GoodsListingApproveAllImportVo implements Serializable { ...@@ -53,6 +65,9 @@ public class GoodsListingApproveAllImportVo implements Serializable {
/** 销售占比 会员权益场景、精品升级用到**/ /** 销售占比 会员权益场景、精品升级用到**/
private String saleRatio; private String saleRatio;
/** 服务项目 */
private String serviceItem;
/** 流量方是否线上自动分账 会员权益场景、精品升级用到**/ /** 流量方是否线上自动分账 会员权益场景、精品升级用到**/
private String shopMerchantAutoDivide; private String shopMerchantAutoDivide;
...@@ -101,6 +116,9 @@ public class GoodsListingApproveAllImportVo implements Serializable { ...@@ -101,6 +116,9 @@ public class GoodsListingApproveAllImportVo implements Serializable {
/** 其他费用归属 会员权益、精品升级场景用到**/ /** 其他费用归属 会员权益、精品升级场景用到**/
private String otherFeeTarget; private String otherFeeTarget;
/** 市场费是否前置 */
private String managementMarketingFeesPrerequisite;
/** 管理层市场费1计算方式 会员权益、精品升级场景用到**/ /** 管理层市场费1计算方式 会员权益、精品升级场景用到**/
private String managerMarket1CalType; private String managerMarket1CalType;
...@@ -113,6 +131,9 @@ public class GoodsListingApproveAllImportVo implements Serializable { ...@@ -113,6 +131,9 @@ public class GoodsListingApproveAllImportVo implements Serializable {
/** 管理层市场费2 会员权益、精品升级场景用到**/ /** 管理层市场费2 会员权益、精品升级场景用到**/
private String managerMarket2CalTypeFee; private String managerMarket2CalTypeFee;
/** 一线激励是否前置 */
private String firstLineSunshinePrerequisite;
/** 一线阳光是否开启线上积分 会员权益、精品升级场景用到**/ /** 一线阳光是否开启线上积分 会员权益、精品升级场景用到**/
private String firstLineSunshineOnlinePointsFlag; private String firstLineSunshineOnlinePointsFlag;
......
package cn.com.glsx.dj.goods.listing.dto; package cn.com.glsx.dj.goods.listing.dto;
import java.math.BigDecimal;
import java.util.List;
import cn.com.glsx.dj.goods.listing.model.GoodsListingProductDetail; import cn.com.glsx.dj.goods.listing.model.GoodsListingProductDetail;
import cn.com.glsx.dj.smartcarlife.dto.UpgradeGoodsDTO; import cn.com.glsx.dj.smartcarlife.dto.UpgradeGoodsDTO;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
...@@ -11,6 +8,9 @@ import lombok.Data; ...@@ -11,6 +8,9 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.ToString; import lombok.ToString;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import java.math.BigDecimal;
import java.util.List;
@Data @Data
@ToString(callSuper = true) @ToString(callSuper = true)
@AllArgsConstructor @AllArgsConstructor
...@@ -36,6 +36,9 @@ public class GoodsListingProductDetailDTO extends GoodsListingProductDetail {/** ...@@ -36,6 +36,9 @@ public class GoodsListingProductDetailDTO extends GoodsListingProductDetail {/**
@ApiModelProperty(notes = "套餐编码") @ApiModelProperty(notes = "套餐编码")
private String packageCode; private String packageCode;
@ApiModelProperty(notes = "权益、延保 且 供应方=广联直营 0-否 1-是 ")
private Integer supplyFlag = 0;
@ApiModelProperty(notes ="供应方名称") @ApiModelProperty(notes ="供应方名称")
private String supplierName; private String supplierName;
......
...@@ -29,5 +29,8 @@ public class GoodsListingSubmitDTO extends CreateBusinessApproveDTO { ...@@ -29,5 +29,8 @@ public class GoodsListingSubmitDTO extends CreateBusinessApproveDTO {
@ApiModelProperty(notes = "基础场景编码(6位)") @ApiModelProperty(notes = "基础场景编码(6位)")
private String baseSceneCode; private String baseSceneCode;
@ApiModelProperty(notes = "上架模式 1-特殊商品上架 2-常规商品上架")
private Byte shelfModel;
private List<Integer> allServiceItemIdList; private List<Integer> allServiceItemIdList;
} }
package cn.com.glsx.dj.goods.listing.enums;
/**
* 成本获取方式
*/
public enum CostStyleEnum {
/**
* 自定义成本
*/
CUSTOM_COST((byte)1,"自定义成本"),
/**
* 默认带入产品成本
*/
DEFAULT_PRODUCT_COST((byte)2,"默认带入产品成本")
;
private byte value;
private String displayName;
CostStyleEnum(Byte value, String displayName) {
this.value = value;
this.displayName = displayName;
}
public byte getValue() {
return value;
}
public String getDisplayName() {
return displayName;
}
public static CostStyleEnum getByValue(Byte value){
if (value != null) {
for (CostStyleEnum temp : CostStyleEnum.values()) {
if (temp.getValue() == value.byteValue()) {
return temp;
}
}
}
return null;
}
}
\ No newline at end of file \ No newline at end of file
...@@ -236,6 +236,13 @@ public class GoodsListingProductBase implements Serializable { ...@@ -236,6 +236,13 @@ public class GoodsListingProductBase implements Serializable {
private String oldMerchantGoodsCode; private String oldMerchantGoodsCode;
/** /**
* 是否作为赠送成本:是-Y 否-N
*/
@ApiModelProperty(name = "isGiftCost", notes = "是否作为赠送成本:是-Y 否-N")
@Column(name = "is_gift_cost")
private String isGiftCost;
/**
* 删除标识(D:已删除;N:未删除) * 删除标识(D:已删除;N:未删除)
*/ */
@ApiModelProperty(name = "deletedFlag", notes = "删除标识(D:已删除;N:未删除)") @ApiModelProperty(name = "deletedFlag", notes = "删除标识(D:已删除;N:未删除)")
......
...@@ -178,6 +178,35 @@ public class GoodsListingProductDetail implements Serializable { ...@@ -178,6 +178,35 @@ public class GoodsListingProductDetail implements Serializable {
private Date updatedDate; private Date updatedDate;
/** /**
* 服务项目
*/
@ApiModelProperty(name = "serviceItem", notes = "服务项目")
@Column(name = "service_item")
private String serviceItem;
/**
* 服务项目id
*/
@ApiModelProperty(name = "serviceItemId", notes = "服务项目id")
@Column(name = "service_item_id")
private Integer serviceItemId;
/**
* 产品成本获取方式 1-自定义成本 2-默认带入产品成本
*/
@ApiModelProperty(name = "upgradeProductCostStyle", notes = "产品成本获取方式 1-自定义成本 2-默认带入产品成本")
@Column(name = "upgrade_product_cost_style")
private Byte upgradeProductCostStyle;
/**
* 第三方成本获取方式 1-自定义成本 2-默认带入产品成本
*/
@ApiModelProperty(name = "thirdPartyCostStyle", notes = "第三方成本获取方式 1-自定义成本 2-默认带入产品成本")
@Column(name = "third_party_cost_style")
private Byte thirdPartyCostStyle;
/**
* 删除标识(D:已删除;N:未删除) * 删除标识(D:已删除;N:未删除)
*/ */
@ApiModelProperty(name = "deletedFlag", notes = "删除标识(D:已删除;N:未删除)") @ApiModelProperty(name = "deletedFlag", notes = "删除标识(D:已删除;N:未删除)")
......
...@@ -46,5 +46,11 @@ ...@@ -46,5 +46,11 @@
<artifactId>rpc-dj-smartcarlife-api</artifactId> <artifactId>rpc-dj-smartcarlife-api</artifactId>
<version>5.8.4-SNAPSHOT</version> <version>5.8.4-SNAPSHOT</version>
</dependency> </dependency>
<dependency>
<groupId>cn.com.glsx.dj.strategy</groupId>
<artifactId>rpc-dj-strategy-api</artifactId>
<version>5.8.3-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>
package cn.com.glsx.dj.goods.listing.config; package cn.com.glsx.dj.goods.listing.config;
import cn.com.glsx.dj.smartcarlife.remote.*;
import cn.com.glsx.dj.strategy.remote.MarketingGoodsRemote;
import cn.com.glsx.dj.strategy.remote.MarketingPackageRemote;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import cn.com.glsx.dj.smartcarlife.remote.MerchantSettleDistributeRuleRemote;
import cn.com.glsx.dj.smartcarlife.remote.MerchantStoreInfoRemote;
import cn.com.glsx.dj.smartcarlife.remote.PaymentChannelRemote;
import cn.com.glsx.dj.smartcarlife.remote.UpgradeGoodsRemote;
import cn.com.glsx.dj.smartcarlife.remote.GoodsListingRemote;
import cn.com.glsx.dj.smartcarlife.remote.MerchantGoodsInfoRemote;
/** /**
* 商品上架提交流程依赖的车生活远程服务。 * 商品上架提交流程依赖的车生活远程服务。
*/ */
...@@ -45,4 +41,14 @@ public class SmartcarlifeDubboConfig extends DubboConfig { ...@@ -45,4 +41,14 @@ public class SmartcarlifeDubboConfig extends DubboConfig {
return factory.builder(MerchantGoodsInfoRemote.class).check(check).version("1.0.0").timeout(timeout).build(); return factory.builder(MerchantGoodsInfoRemote.class).check(check).version("1.0.0").timeout(timeout).build();
} }
@Bean
public MarketingGoodsRemote marketingGoodsRemote(){
return factory.builder(MarketingGoodsRemote.class).check(check).timeout(timeout).build();
}
@Bean
public MarketingPackageRemote marketingPackageRemote(){
return factory.builder(MarketingPackageRemote.class).check(check).timeout(timeout).build();
}
} }
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" /> <result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="shelf_style" property="shelfStyle" jdbcType="TINYINT" /> <result column="shelf_style" property="shelfStyle" jdbcType="TINYINT" />
<result column="old_merchant_goods_code" property="oldMerchantGoodsCode" jdbcType="VARCHAR" /> <result column="old_merchant_goods_code" property="oldMerchantGoodsCode" jdbcType="VARCHAR" />
<result column="is_gift_cost" property="isGiftCost" jdbcType="CHAR" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" /> <result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
</resultMap> </resultMap>
<resultMap id="DTOResultMap" type="cn.com.glsx.dj.goods.listing.dto.GoodsListingProductBaseDTO" extends="BaseResultMap"> <resultMap id="DTOResultMap" type="cn.com.glsx.dj.goods.listing.dto.GoodsListingProductBaseDTO" extends="BaseResultMap">
...@@ -52,6 +53,10 @@ ...@@ -52,6 +53,10 @@
<result column="third_party_cost" property="thirdPartyCost" jdbcType="DECIMAL" /> <result column="third_party_cost" property="thirdPartyCost" jdbcType="DECIMAL" />
<result column="inventory_type" property="inventoryType" jdbcType="TINYINT" /> <result column="inventory_type" property="inventoryType" jdbcType="TINYINT" />
<result column="merchant_goods_code" property="merchantGoodsCode"/> <result column="merchant_goods_code" property="merchantGoodsCode"/>
<result column="service_item" property="serviceItem" jdbcType="VARCHAR" />
<result column="service_item_id" property="serviceItemId" jdbcType="INTEGER" />
<result column="upgrade_product_cost_style" property="upgradeProductCostStyle" jdbcType="TINYINT" />
<result column="third_party_cost_style" property="thirdPartyCostStyle" jdbcType="TINYINT" />
</collection> </collection>
</resultMap> </resultMap>
<sql id="Base_Column_List" > <sql id="Base_Column_List" >
...@@ -62,7 +67,7 @@ ...@@ -62,7 +67,7 @@
revenue, traffic_share_profit, service_provider_profit, dj_revenue, dj_cost, manager_market_fee, revenue, traffic_share_profit, service_provider_profit, dj_revenue, dj_cost, manager_market_fee,
manager_market_fee1, manager_market_fee2, first_line_sunshine_incentive_fee, first_line_sunshine2_incentive_fee, manager_market_fee1, manager_market_fee2, first_line_sunshine_incentive_fee, first_line_sunshine2_incentive_fee,
resource_fee, labor_cost, dj_gross_profit, profit_rate, integrity, profit_rate_cal_finish, resource_fee, labor_cost, dj_gross_profit, profit_rate, integrity, profit_rate_cal_finish,
created_by, created_date, updated_by, updated_date, shelf_style, old_merchant_goods_code, deleted_flag created_by, created_date, updated_by, updated_date, shelf_style, old_merchant_goods_code, is_gift_cost, deleted_flag
</sql> </sql>
<select id="listBase" parameterType="cn.com.glsx.dj.goods.listing.model.GoodsListingProductBase" resultMap="BaseResultMap"> <select id="listBase" parameterType="cn.com.glsx.dj.goods.listing.model.GoodsListingProductBase" resultMap="BaseResultMap">
...@@ -80,10 +85,10 @@ ...@@ -80,10 +85,10 @@
<select id="getDetailById" resultMap="DTOResultMap"> <select id="getDetailById" resultMap="DTOResultMap">
select select
glpb.id, glpb.business_code, glpb.product_type, glpb.settlement_type, glpb.product_name,glpb.package_code, glpb.id, glpb.business_code, glpb.product_type, glpb.settlement_type, glpb.product_name,glpb.package_code,
glpb.package_alias,glpb.sales_proportion_percent, glpb.shelf_style, glpb.old_merchant_goods_code, glpb.package_alias,glpb.sales_proportion_percent, glpb.shelf_style, glpb.old_merchant_goods_code, glpb.is_gift_cost,
glpd.upgrade_goods_id, glpd.upgrade_commodity_code, glpd.upgrade_goods_name, glpd.upgrade_goods_id, glpd.upgrade_commodity_code, glpd.upgrade_goods_name,
glpd.goods_alias, glpd.position, glpd.sell_price, glpd.min_sell_price, glpd.upgrade_product_cost, glpd.recovery_cost, glpd.goods_alias, glpd.position, glpd.sell_price, glpd.min_sell_price, glpd.upgrade_product_cost, glpd.recovery_cost,
glpd.gift_cost, glpd.third_party_cost, glpd.inventory_type,glpd.merchant_goods_code glpd.gift_cost, glpd.third_party_cost, glpd.inventory_type,glpd.merchant_goods_code, glpd.service_item, glpd.service_item_id, glpd.upgrade_product_cost_style, glpd.third_party_cost_style
from dj_car_life_goods_listing_product_base glpb from dj_car_life_goods_listing_product_base glpb
left join dj_car_life_goods_listing_product_detail glpd on glpd.product_base_id=glpb.id and glpd.deleted_flag='N' left join dj_car_life_goods_listing_product_detail glpd on glpd.product_base_id=glpb.id and glpd.deleted_flag='N'
where glpb.deleted_flag='N' and glpb.id = #{id} where glpb.deleted_flag='N' and glpb.id = #{id}
...@@ -95,7 +100,7 @@ ...@@ -95,7 +100,7 @@
revenue, traffic_share_profit, service_provider_profit, dj_revenue, dj_cost, manager_market_fee, revenue, traffic_share_profit, service_provider_profit, dj_revenue, dj_cost, manager_market_fee,
manager_market_fee1, manager_market_fee2, first_line_sunshine_incentive_fee, first_line_sunshine2_incentive_fee, manager_market_fee1, manager_market_fee2, first_line_sunshine_incentive_fee, first_line_sunshine2_incentive_fee,
resource_fee, labor_cost, dj_gross_profit, profit_rate, integrity, profit_rate_cal_finish, resource_fee, labor_cost, dj_gross_profit, profit_rate, integrity, profit_rate_cal_finish,
shelf_style, old_merchant_goods_code shelf_style, old_merchant_goods_code, is_gift_cost
from dj_car_life_goods_listing_product_base glpb from dj_car_life_goods_listing_product_base glpb
<include refid="listCondition"/> <include refid="listCondition"/>
order by glpb.id asc order by glpb.id asc
......
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" /> <result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" /> <result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" /> <result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
<result column="service_item" property="serviceItem" jdbcType="VARCHAR" />
<result column="service_item_id" property="serviceItemId" jdbcType="INTEGER" />
<result column="upgrade_product_cost_style" property="upgradeProductCostStyle" jdbcType="TINYINT" />
<result column="third_party_cost_style" property="thirdPartyCostStyle" jdbcType="TINYINT" />
</resultMap> </resultMap>
<resultMap type="cn.com.glsx.dj.goods.listing.dto.GoodsListingProductDetailDTO" id="DTOResultMap" extends="BaseResultMap"> <resultMap type="cn.com.glsx.dj.goods.listing.dto.GoodsListingProductDetailDTO" id="DTOResultMap" extends="BaseResultMap">
<result column="product_type" property="productType"/> <result column="product_type" property="productType"/>
...@@ -42,7 +46,7 @@ ...@@ -42,7 +46,7 @@
goods_type,goods_type_name, goods_type,goods_type_name,
goods_alias, position, sell_price, min_sell_price, upgrade_product_cost, recovery_cost, goods_alias, position, sell_price, min_sell_price, upgrade_product_cost, recovery_cost,
gift_cost, third_party_cost, inventory_type, created_by, created_date, updated_by, gift_cost, third_party_cost, inventory_type, created_by, created_date, updated_by,
updated_date, deleted_flag updated_date, deleted_flag, service_item, service_item_id, upgrade_product_cost_style, third_party_cost_style
</sql> </sql>
<select id="list" parameterType="cn.com.glsx.dj.goods.listing.dto.GoodsListingProductDetailDTO" resultMap="DTOResultMap"> <select id="list" parameterType="cn.com.glsx.dj.goods.listing.dto.GoodsListingProductDetailDTO" resultMap="DTOResultMap">
...@@ -51,7 +55,7 @@ ...@@ -51,7 +55,7 @@
glpd.upgrade_commodity_code, glpd.upgrade_goods_name, glpd.goods_type,glpd.goods_type_name, glpd.upgrade_commodity_code, glpd.upgrade_goods_name, glpd.goods_type,glpd.goods_type_name,
glpd.goods_alias, glpd.position, glpd.sell_price, glpd.min_sell_price, glpd.upgrade_product_cost, glpd.recovery_cost, glpd.goods_alias, glpd.position, glpd.sell_price, glpd.min_sell_price, glpd.upgrade_product_cost, glpd.recovery_cost,
glpd.gift_cost, glpd.third_party_cost, glpd.inventory_type, glpd.created_by, glpd.created_date, glpd.updated_by, glpd.gift_cost, glpd.third_party_cost, glpd.inventory_type, glpd.created_by, glpd.created_date, glpd.updated_by,
glpd.updated_date, glpd.deleted_flag, glpd.updated_date, glpd.deleted_flag, glpd.service_item, glpd.service_item_id, glpd.upgrade_product_cost_style, glpd.third_party_cost_style,
glpb.product_type,glpb.product_name,glpb.package_code glpb.product_type,glpb.product_name,glpb.package_code
from dj_car_life_goods_listing_product_detail glpd from dj_car_life_goods_listing_product_detail glpd
......
  • @wangxw1
    commented
    Master

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

    1. RPC API 跨模块强耦合(架构设计与规范问题)

    • 问题描述:在 rpc-dj-goods-listing-api 模块的 GoodsListingProductBaseDTO 中,直接引入了另一个业务域的类 cn.com.glsx.dj.smartcarlife.dto.MerchantSettleDistributeRuleTestRuleDTO。
    • 影响分析:破坏了微服务/RPC 接口的领域隔离原则(Bounded Context)。这会导致 goods-listing-api 的二方库强依赖 smartcarlife 的二方库。如果 smartcarlife 模块发生变更或版本升级,极易引发级联影响,增加维护成本和依赖冲突的风险。
    • 优化建议:解除跨域依赖。建议在 goods-listing 模块内部重新定义所需的数据结构(例如新建一个包含所需字段的内部静态类或独立 DTO),或者如果仅是透传数据,可考虑使用 JSON String 或 Map 进行解耦。

    2. RPC 传输对象的序列化隐患(健壮性问题)

    • 问题描述:在 Dubbo RPC 的 DTO 对象中新增了复杂的嵌套自定义对象 MerchantSettleDistributeRuleTestRuleDTO。
    • 影响分析:Dubbo 服务间的通信高度依赖对象的序列化(如 Hessian2)。如果引入的这个外部 DTO 没有严格实现 java.io.Serializable 接口,或者其内部包含了不可序列化的字段,将直接导致 RPC 调用时报序列化异常,引发线上故障。
    • 优化建议:
      1. 必须核查 MerchantSettleDistributeRuleTestRuleDTO 及其所有嵌套属性是否均实现了 Serializable 接口,并显式声明了 serialVersionUID。
      2. 尽量保持 RPC DTO 的扁平化和简单化,避免过深的嵌套。

    3. API 注释与文档规范不统一(可维护性问题)

    • 问题描述:在 GoodsListingProductDetailDTO.java 中,新增的 supplierName 包含了 @ApiModelProperty 注释,但同批次新增的 specificationData、specificationTypeSequence 以及 BaseDTO 中的 settleDistributeRuleTestRuleDTO 均没有任何注释或 Swagger 注解。
    • 影响分析:作为对外提供的 RPC API 接口层,缺少明确的字段说明会极大增加调用方(前端或其他微服务)的沟通成本,降低代码的可读性和可维护性。
    • 优化建议:为所有新增的 DTO 字段补充清晰的 Javadoc 注释或 @ApiModelProperty 注解,说明字段的业务含义及可能的取值范围。

    二、评分明细

    • 功能实现的正确性与健壮性(36/40分): 本次变更为纯粹的 DTO 字段新增,不涉及已有 Dubbo 接口参数的破坏性变更(符合向下兼容原则),也无 MyBatis 子查询问题。扣分点在于引入复杂嵌套对象带来的潜在 RPC 序列化失败风险。

    • 安全性与潜在风险(30/30分): 代码仅为数据传输对象的属性扩展,未引入 SQL 注入、XSS、越权或敏感信息泄露等安全隐患,表现良好。

    • 最佳实践与可维护性(12/20分): 扣分较多。在 RPC API 包中引入其他业务模块的 DTO 造成了不合理的跨域依赖,违背了高内聚低耦合的工程最佳实践;同时新增字段的注释规范不统一,降低了 API 契约的质量。

    • 性能与资源利用(5/5分): 仅为对象属性的增加,对系统内存和网络传输的额外开销微乎其微,无性能瓶颈。

    • 提交信息质量(4/5分): Commit 信息("支持上架测算表导出新增字段")基本说明了业务目的,具备一定的可追溯性。但包含了 "合并代码" 等无意义的自动生成信息,略显不够精简。

    总分:87分

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