|
@@ -8,6 +8,7 @@
|
|
|
<result property="id" column="ID" jdbcType="BIGINT"/>
|
|
|
<result property="userName" column="USER_NAME" jdbcType="VARCHAR"/>
|
|
|
<result property="phone" column="PHONE" jdbcType="VARCHAR"/>
|
|
|
+ <result property="tenantId" column="tenant_id" jdbcType="VARCHAR"/>
|
|
|
<result property="companyId" column="COMPANY_ID" jdbcType="INTEGER"/>
|
|
|
<result property="departmentId" column="DEPARTMENT_ID" jdbcType="INTEGER"/>
|
|
|
<result property="operateContent" column="OPERATE_CONTENT" jdbcType="VARCHAR"/>
|
|
@@ -21,6 +22,7 @@
|
|
|
a.id,
|
|
|
a.USER_NAME,
|
|
|
a.phone,
|
|
|
+ a.tenant_id,
|
|
|
a.company_id,
|
|
|
a.DEPARTMENT_ID,
|
|
|
a.operate_content,
|
|
@@ -91,15 +93,15 @@
|
|
|
</select>
|
|
|
<!-- 新增所有列 -->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into uims_opr_log( USER_NAME, phone, company_id, DEPARTMENT_ID, operate_content, create_time, operate_parameter)
|
|
|
- values ( #{userName}, #{phone}, #{companyId}, #{departmentId}, #{operateContent}, #{createTime}, #{operateParameter})
|
|
|
+ insert into uims_opr_log( USER_NAME, tenant_id, phone, company_id, DEPARTMENT_ID, operate_content, create_time, operate_parameter)
|
|
|
+ values ( #{userName}, #{tenantId}, #{phone}, #{companyId}, #{departmentId}, #{operateContent}, #{createTime}, #{operateParameter})
|
|
|
</insert>
|
|
|
<!-- 批量新增 -->
|
|
|
<insert id="batchInsert">
|
|
|
- insert into uims_opr_log( USER_NAME, phone, company_id, DEPARTMENT_ID, operate_content, create_time, operate_parameter )
|
|
|
+ insert into uims_opr_log( USER_NAME, tenant_id,phone, company_id, DEPARTMENT_ID, operate_content, create_time, operate_parameter )
|
|
|
values
|
|
|
<foreach collection="loginLogs" item="item" index="index" separator=",">
|
|
|
- ( #{item.userName}, #{item.phone}, #{item.companyId}, #{item.departmentId}, #{item.operateContent},
|
|
|
+ ( #{item.userName}, #{item.tenantId},#{item.phone}, #{item.companyId}, #{item.departmentId}, #{item.operateContent},
|
|
|
#{item.createTime}, #{item.operateParameter})
|
|
|
</foreach>
|
|
|
</insert>
|