|
|
|
@ -17,6 +17,8 @@ |
|
|
|
<result column="created_at" jdbcType="BIGINT" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" /> |
|
|
|
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" /> |
|
|
|
<result column="manager_contact" jdbcType="VARCHAR" property="managerContact" /> |
|
|
|
<result column="manager_name" jdbcType="VARCHAR" property="managerName" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<!-- |
|
|
|
@ -90,7 +92,7 @@ |
|
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
|
--> |
|
|
|
id, company_id, `name`, code, sort_order, remark, flag, created_by, created_at, updated_at, |
|
|
|
updated_by |
|
|
|
updated_by, manager_contact, manager_name |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.techsor.datacenter.business.model.DashboardLevelBranchExample" resultMap="BaseResultMap"> |
|
|
|
<!-- |
|
|
|
@ -150,11 +152,13 @@ |
|
|
|
insert into dashboard_level_branch (company_id, `name`, code, |
|
|
|
sort_order, remark, flag, |
|
|
|
created_by, created_at, updated_at, |
|
|
|
updated_by) |
|
|
|
updated_by, manager_contact, manager_name |
|
|
|
) |
|
|
|
values (#{companyId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, |
|
|
|
#{sortOrder,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{flag,jdbcType=INTEGER}, |
|
|
|
#{createdBy,jdbcType=BIGINT}, #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT}, |
|
|
|
#{updatedBy,jdbcType=BIGINT}) |
|
|
|
#{updatedBy,jdbcType=BIGINT}, #{managerContact,jdbcType=VARCHAR}, #{managerName,jdbcType=VARCHAR} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.DashboardLevelBranch"> |
|
|
|
<!-- |
|
|
|
@ -196,6 +200,12 @@ |
|
|
|
<if test="updatedBy != null"> |
|
|
|
updated_by, |
|
|
|
</if> |
|
|
|
<if test="managerContact != null"> |
|
|
|
manager_contact, |
|
|
|
</if> |
|
|
|
<if test="managerName != null"> |
|
|
|
manager_name, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="companyId != null"> |
|
|
|
@ -228,6 +238,12 @@ |
|
|
|
<if test="updatedBy != null"> |
|
|
|
#{updatedBy,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="managerContact != null"> |
|
|
|
#{managerContact,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="managerName != null"> |
|
|
|
#{managerName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.techsor.datacenter.business.model.DashboardLevelBranchExample" resultType="java.lang.Long"> |
|
|
|
@ -280,6 +296,12 @@ |
|
|
|
<if test="record.updatedBy != null"> |
|
|
|
updated_by = #{record.updatedBy,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.managerContact != null"> |
|
|
|
manager_contact = #{record.managerContact,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.managerName != null"> |
|
|
|
manager_name = #{record.managerName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
@ -301,7 +323,9 @@ |
|
|
|
created_by = #{record.createdBy,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=BIGINT}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=BIGINT}, |
|
|
|
updated_by = #{record.updatedBy,jdbcType=BIGINT} |
|
|
|
updated_by = #{record.updatedBy,jdbcType=BIGINT}, |
|
|
|
manager_contact = #{record.managerContact,jdbcType=VARCHAR}, |
|
|
|
manager_name = #{record.managerName,jdbcType=VARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
@ -343,6 +367,12 @@ |
|
|
|
<if test="updatedBy != null"> |
|
|
|
updated_by = #{updatedBy,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="managerContact != null"> |
|
|
|
manager_contact = #{managerContact,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="managerName != null"> |
|
|
|
manager_name = #{managerName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
@ -361,7 +391,9 @@ |
|
|
|
created_by = #{createdBy,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=BIGINT}, |
|
|
|
updated_at = #{updatedAt,jdbcType=BIGINT}, |
|
|
|
updated_by = #{updatedBy,jdbcType=BIGINT} |
|
|
|
updated_by = #{updatedBy,jdbcType=BIGINT}, |
|
|
|
manager_contact = #{managerContact,jdbcType=VARCHAR}, |
|
|
|
manager_name = #{managerName,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |