This commit is contained in:
sxu 2024-12-25 14:33:29 +08:00
parent d9e6bd9c75
commit a7d37d89df
1 changed files with 15 additions and 7 deletions

View File

@ -12,7 +12,8 @@
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="company_id" jdbcType="INTEGER" property="companyId" />
<result column="buyer_company_id" jdbcType="INTEGER" property="buyerCompanyId" />
<result column="seller_company_id" jdbcType="INTEGER" property="sellerCompanyId" />
</resultMap>
<resultMap id="ResultMap" type="com.bonus.material.task.domain.TmTask">
@ -25,12 +26,13 @@
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="company_id" jdbcType="INTEGER" property="companyId" />
<result column="buyer_company_id" jdbcType="INTEGER" property="buyerCompanyId" />
<result column="seller_company_id" jdbcType="INTEGER" property="sellerCompanyId" />
</resultMap>
<sql id="Base_Column_List">
task_id, task_type, task_status, code, create_by, create_time, update_by, update_time,
remark, company_id
remark, buyer_company_id, seller_company_id
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
@ -68,8 +70,11 @@
<if test="remark != null and remark != ''">
remark,
</if>
<if test="companyId != null">
company_id,
<if test="buyerCompanyId != null">
buyer_company_id,
</if>
<if test="sellerCompanyId != null">
seller_company_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
@ -93,8 +98,11 @@
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
<if test="companyId != null">
#{companyId,jdbcType=INTEGER},
<if test="buyerCompanyId != null">
#{buyerCompanyId,jdbcType=INTEGER},
</if>
<if test="sellerCompanyId != null">
#{sellerCompanyId,jdbcType=INTEGER},
</if>
</trim>
</insert>