Commit f44e3083 by 张富康

refactor(orm): 添加EffectiveReferralReview基础映射和列列表

- 新增BaseResultMap以映射EffectiveReferralReview对象属性
- 定义Base_Column_List包含所有主要字段列名
- 规范XML映射文件结构,提升ORM映射的维护性
- 方便后续SQL语句复用基础字段列表
- 便于统一管理实体属性与数据库字段映射关系
1 parent 93c26ee5
...@@ -3,6 +3,42 @@ ...@@ -3,6 +3,42 @@
<mapper namespace="cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper"> <mapper namespace="cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.staff.model.perfSalary.EffectiveReferralReview">
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="merchant_id" jdbcType="INTEGER" property="merchantId"/>
<result column="total_delivery_count" jdbcType="INTEGER" property="totalDeliveryCount"/>
<result column="area_effective_count" jdbcType="INTEGER" property="areaEffectiveCount"/>
<result column="reviewed_effective_count" jdbcType="INTEGER" property="reviewedEffectiveCount"/>
<result column="review_month" jdbcType="VARCHAR" property="reviewMonth"/>
<result column="image_urls" jdbcType="VARCHAR" property="imageUrls"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="status" jdbcType="INTEGER" property="status"/>
<result column="brand_id" jdbcType="INTEGER" property="brandId"/>
<result column="brand_name" jdbcType="VARCHAR" property="brandName"/>
<result column="scene_type" jdbcType="INTEGER" property="sceneType"/>
<result column="is_need_reviewed" jdbcType="INTEGER" property="isNeedReviewed"/>
<result column="is_reviewed" jdbcType="INTEGER" property="isReviewed"/>
<result column="manager_id" jdbcType="VARCHAR" property="managerId"/>
<result column="manager_name" jdbcType="VARCHAR" property="managerName"/>
<result column="manager_phone" jdbcType="VARCHAR" property="managerPhone"/>
<result column="manager_commit_time" jdbcType="TIMESTAMP" property="managerCommitTime"/>
<result column="reviewed_by" jdbcType="VARCHAR" property="reviewedBy"/>
<result column="reviewed_name" jdbcType="VARCHAR" property="reviewedName"/>
<result column="reviewed_time" jdbcType="TIMESTAMP" property="reviewedTime"/>
<result column="created_by" jdbcType="VARCHAR" property="createdBy"/>
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate"/>
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy"/>
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate"/>
<result column="deleted_flag" jdbcType="VARCHAR" property="deletedFlag"/>
</resultMap>
<sql id="Base_Column_List">
id, merchant_id, total_delivery_count, area_effective_count,
reviewed_effective_count, review_month, image_urls, remark,
status, brand_id, brand_name, scene_type, is_need_reviewed,
is_reviewed, manager_id, manager_name, manager_phone,
manager_commit_time, reviewed_by, reviewed_name, reviewed_time,
created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!