|
@@ -132,10 +132,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
|
<if test="email != null and email != ''">email,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
- <if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
|
|
+ <if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
- create_time
|
|
|
- )values(
|
|
|
+ create_time,
|
|
|
+ jst_distributor
|
|
|
+ )values(
|
|
|
<if test="deptId != null and deptId != 0">#{deptId},</if>
|
|
|
<if test="parentId != null and parentId != 0">#{parentId},</if>
|
|
|
<if test="deptName != null and deptName != ''">#{deptName},</if>
|
|
@@ -147,9 +148,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
|
<if test="email != null and email != ''">#{email},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
- <if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
|
|
+ <if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
- sysdate()
|
|
|
+ sysdate(),
|
|
|
+ #{jstDistributor}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -166,9 +168,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
|
<if test="email != null">email = #{email},</if>
|
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
|
- <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
- update_time = sysdate()
|
|
|
- </set>
|
|
|
+ <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
+ update_time = sysdate(),
|
|
|
+ jst_distributor = #{jstDistributor}
|
|
|
+ </set>
|
|
|
where dept_id = #{deptId}
|
|
|
</update>
|
|
|
|