Commit fa4e253d by 叶立庆

Merge branch 'v5.8.3.6' into 'master'

上线合并

See merge request !8
2 parents 729f5bfb e646178f
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</parent> </parent>
<groupId>cn.com.glsx.dj</groupId> <groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-riskmanage-api</artifactId> <artifactId>rpc-dj-riskmanage-api</artifactId>
<version>5.8.2-SNAPSHOT</version> <version>5.8.3.6-SNAPSHOT</version>
<name>rpc-dj-riskmanage-api</name> <name>rpc-dj-riskmanage-api</name>
<properties> <properties>
<deploy.scanPackage>cn.com.glsx.dj.riskmanage.remote</deploy.scanPackage> <deploy.scanPackage>cn.com.glsx.dj.riskmanage.remote</deploy.scanPackage>
......
...@@ -118,6 +118,41 @@ public class BeiSenJobPostDTO implements Serializable { ...@@ -118,6 +118,41 @@ public class BeiSenJobPostDTO implements Serializable {
private Date businessModifiedTime; private Date businessModifiedTime;
/** /**
* 职务描述
*/
private String description;
/**
* 职务描述_繁体
*/
private String descriptionZhTw;
/**
* 职务描述_英文
*/
private String descriptionEnUs;
/**
* 任职要求
*/
private String jobRequirements;
/**
* 自定义属性
*/
private String customProperties;
/**
* 翻译属性
*/
private String translateProperties;
/**
* 系统标记属性
*/
private String sysMartionProperties;
/**
* 排序编码 * 排序编码
*/ */
private Integer order; private Integer order;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.dj</groupId> <groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-riskmanage-api</artifactId> <artifactId>rpc-dj-riskmanage-api</artifactId>
<version>5.8.2-SNAPSHOT</version> <version>5.8.3.6-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.com.glsx.merchants</groupId> <groupId>cn.com.glsx.merchants</groupId>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
<result column="selection_rule" jdbcType="LONGVARCHAR" property="selectionRule" /> <result column="selection_rule" property="selectionRule" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</sql> </sql>
<resultMap id="activityRespDTO" type="cn.com.glsx.dj.riskmanage.dto.activity.ActivityRespDTO" extends="BaseResultMap"> <resultMap id="activityRespDTO" type="cn.com.glsx.dj.riskmanage.dto.activity.ActivityRespDTO" extends="BaseResultMap">
<result column="selection_rule" jdbcType="LONGVARCHAR" property="selectionRule" /> <result column="selection_rule" property="selectionRule" />
</resultMap> </resultMap>
<select id="queryList" resultMap="activityRespDTO"> <select id="queryList" resultMap="activityRespDTO">
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
<result column="ext_fields" property="extFields" jdbcType="LONGVARCHAR" /> <result column="ext_fields" property="extFields" />
</resultMap> </resultMap>
<resultMap id="CourseDetailMap" type="cn.com.glsx.dj.riskmanage.dto.learningcenter.CourseDetailPageInfo"> <resultMap id="CourseDetailMap" type="cn.com.glsx.dj.riskmanage.dto.learningcenter.CourseDetailPageInfo">
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
<result column="ext_fields" property="extFields" jdbcType="LONGVARCHAR" /> <result column="ext_fields" property="extFields" />
</resultMap> </resultMap>
<resultMap id="beiSenExaminationDTOMap" type="cn.com.glsx.dj.riskmanage.dto.beisen.BeiSenExaminationDTO" extends="BaseResultMap"> <resultMap id="beiSenExaminationDTOMap" type="cn.com.glsx.dj.riskmanage.dto.beisen.BeiSenExaminationDTO" extends="BaseResultMap">
......
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
<result column="name_en_us" property="nameEnUs" jdbcType="VARCHAR" /> <result column="name_en_us" property="nameEnUs" jdbcType="VARCHAR" />
<result column="o_id_talent_criterion" property="oIdTalentCriterion" jdbcType="VARCHAR" /> <result column="o_id_talent_criterion" property="oIdTalentCriterion" jdbcType="VARCHAR" />
<result column="business_modified_by" property="businessModifiedBy" jdbcType="INTEGER" /> <result column="business_modified_by" property="businessModifiedBy" jdbcType="INTEGER" />
<result column="description" property="description" jdbcType="LONGVARCHAR" /> <result column="description" property="description" />
<result column="description_zh_tw" property="descriptionZhTw" jdbcType="LONGVARCHAR" /> <result column="description_zh_tw" property="descriptionZhTw" />
<result column="description_en_us" property="descriptionEnUs" jdbcType="LONGVARCHAR" /> <result column="description_en_us" property="descriptionEnUs" />
<result column="job_requirements" property="jobRequirements" jdbcType="LONGVARCHAR" /> <result column="job_requirements" property="jobRequirements" />
<result column="custom_properties" property="customProperties" jdbcType="LONGVARCHAR" /> <result column="custom_properties" property="customProperties" />
<result column="translate_properties" property="translateProperties" jdbcType="LONGVARCHAR" /> <result column="translate_properties" property="translateProperties" />
<result column="sys_martion_properties" property="sysMartionProperties" jdbcType="LONGVARCHAR" /> <result column="sys_martion_properties" property="sysMartionProperties" />
<result column="business_modified_time" property="businessModifiedTime" jdbcType="TIMESTAMP" /> <result column="business_modified_time" property="businessModifiedTime" jdbcType="TIMESTAMP" />
<result column="order" property="order" jdbcType="INTEGER" /> <result column="order" property="order" jdbcType="INTEGER" />
<result column="score" property="score" jdbcType="DECIMAL" /> <result column="score" property="score" jdbcType="DECIMAL" />
......
...@@ -30,10 +30,10 @@ ...@@ -30,10 +30,10 @@
<result column="fourth_level_organization" property="fourthLevelOrganization" jdbcType="INTEGER" /> <result column="fourth_level_organization" property="fourthLevelOrganization" jdbcType="INTEGER" />
<result column="fifth_level_organization" property="fifthLevelOrganization" jdbcType="INTEGER" /> <result column="fifth_level_organization" property="fifthLevelOrganization" jdbcType="INTEGER" />
<result column="sixth_level_organization" property="sixthLevelOrganization" jdbcType="INTEGER" /> <result column="sixth_level_organization" property="sixthLevelOrganization" jdbcType="INTEGER" />
<result column="comment" property="comment" jdbcType="LONGVARCHAR" /> <result column="comment" property="comment" />
<result column="p_oid_org_admin_tree_path" property="pOIdOrgAdminTreePath" jdbcType="LONGVARCHAR" /> <result column="p_oid_org_admin_tree_path" property="pOIdOrgAdminTreePath" />
<result column="p_oid_org_reserve2_tree_path" property="pOIdOrgReserve2TreePath" jdbcType="LONGVARCHAR" /> <result column="p_oid_org_reserve2_tree_path" property="pOIdOrgReserve2TreePath" />
<result column="p_oid_org_admin_name_tree_path" property="pOIdOrgAdminNameTreePath" jdbcType="LONGVARCHAR" /> <result column="p_oid_org_admin_name_tree_path" property="pOIdOrgAdminNameTreePath" />
<result column="order_code" property="orderCode" jdbcType="INTEGER" /> <result column="order_code" property="orderCode" jdbcType="INTEGER" />
<result column="is_virtual_org" property="isVirtualOrg" jdbcType="BIT" /> <result column="is_virtual_org" property="isVirtualOrg" jdbcType="BIT" />
<result column="object_id" property="objectId" jdbcType="VARCHAR" /> <result column="object_id" property="objectId" jdbcType="VARCHAR" />
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<result column="order_permission_status" property="orderPermissionStatus" jdbcType="TINYINT" /> <result column="order_permission_status" property="orderPermissionStatus" jdbcType="TINYINT" />
<result column="order_permission_type" property="orderPermissionType" jdbcType="TINYINT" /> <result column="order_permission_type" property="orderPermissionType" jdbcType="TINYINT" />
<result column="limit_time_param" property="limitTimeParam" jdbcType="INTEGER" /> <result column="limit_time_param" property="limitTimeParam" jdbcType="INTEGER" />
<result column="white_list" property="whiteList" jdbcType="LONGVARCHAR" /> <result column="white_list" property="whiteList" />
<result column="creator" property="creator" jdbcType="VARCHAR" /> <result column="creator" property="creator" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="TINYINT" /> <result column="status" property="status" jdbcType="TINYINT" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" /> <result column="created_by" property="createdBy" jdbcType="VARCHAR" />
......
  • @wangxw1
    commented
    Master

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

    1. 生产环境发布版本使用 SNAPSHOT 后缀(最佳实践与稳定性风险)

    • 问题描述:在 rpc-dj-riskmanage-api/pom.xml 和 rpc-dj-riskmanage/pom.xml 中,模块版本被升级为 5.8.3.6-SNAPSHOT。同时,Merge Request 的提交信息明确写明为 Merge branch 'v5.8.3.6' into 'master' 上线合并。
    • 影响分析:SNAPSHOT(快照)版本在 Maven 中被视为不稳定的、可变的版本。如果将快照版本合并至 master 分支并发布到生产环境,会导致生产环境依赖不可靠(同一版本号可能拉取到不同时间点的代码),严重违背了生产环境版本不可变(Immutable)的发布原则,极易引发难以排查的线上故障。
    • 优化建议:在合并至 master 分支或进行生产发布前,必须通过 Maven Release 插件或手动将版本号中的 -SNAPSHOT 后缀移除,使用正式版本号(如 5.8.3.6)。

    2. 移除 LONGVARCHAR 的 jdbcType 可能引发大文本映射隐患(功能正确性风险)

    • 问题描述:在多个 Mapper.xml 文件中(如 BeiSenJobPostMapper.xml 等),移除了 <result> 标签中的 jdbcType="LONGVARCHAR" 属性。
    • 影响分析:通常情况下,MyBatis 能够根据 Java 实体类的类型(String)自动推断并映射标准的数据库字段。但是,LONGVARCHAR 通常对应数据库中的大文本类型(如 MySQL 的 TEXT/LONGTEXT 或 Oracle 的 CLOB)。在某些特定的数据库驱动或旧版本中,如果没有显式指定 LONGVARCHAR,MyBatis 可能会使用默认的 StringTypeHandler,这在处理 CLOB 等特殊大字段时可能会导致数据截断、反序列化异常或直接返回对象内存地址的错误。
    • 优化建议:请确认底层数据库类型以及驱动版本。如果底层是标准的 MySQL 且使用较新驱动,移除通常是安全的;但如果涉及 Oracle 或特殊的大字段处理,建议保留 jdbcType="LONGVARCHAR" 以显式触发对应的大字段 TypeHandler。建议在测试环境针对这些大文本字段进行严格的读写回归测试。

    3. Dubbo API DTO 新增字段的向下兼容性(健壮性提示)

    • 问题描述:在 API 模块的 BeiSenJobPostDTO.java 中新增了 7 个属性(如 description, jobRequirements 等)。
    • 影响分析:根据审查规则,Dubbo 服务接口参数变更需高度警惕。虽然此次是新增字段而非修改已有字段,在 Hessian2 序列化下具有一定的向下兼容性,但如果该 DTO 被用作请求参数(Request Parameter),未升级 API 依赖的旧版本消费者(Consumer)在调用时,这些新增字段将为 null。
    • 优化建议:请确保服务提供者(Provider)在处理该 DTO 时,对这 7 个新增字段做好了充分的空指针(null)检查。业务逻辑不能强依赖这些字段必传,以保证新版 Provider 能兼容旧版 Consumer 的请求。

    二、评分明细

    • 功能实现的正确性与健壮性(36 / 40分) 理由:未发现违反“禁止使用子查询”的规则。DTO 新增字段解决了查询异常问题,逻辑基本正确。扣分项在于大面积移除 LONGVARCHAR 的 jdbcType 存在潜在的反序列化映射风险,且需关注 Dubbo DTO 扩展后的空指针兼容性。

    • 安全性与潜在风险(30 / 30分) 理由:本次变更主要集中在 DTO 字段扩充和 XML 配置精简,未引入 SQL 注入、越权、XSS 等安全漏洞,安全性良好。

    • 最佳实践与可维护性(14 / 20分) 理由:代码结构清晰,无冗余逻辑。但将带有 -SNAPSHOT 后缀的版本直接合并至 master 并在 commit 中标记为“上线合并”,严重违反了版本发布工程规范,扣除 6 分。

    • 性能与资源利用(5 / 5分) 理由:仅为实体类字段映射和版本号变更,无复杂的计算逻辑或数据库全表扫描风险,不存在性能瓶颈。

    • 提交信息质量(5 / 5分) 理由:Commit message 使用了标准的 Conventional Commits 规范(如 fix(orm):, chore(version):),且清晰地列出了每个文件变更的具体内容,可追溯性极强,值得表扬。

    总分:90分

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