|
|
@ -80,27 +80,28 @@
|
|
|
|
parameterType="com.glxp.api.entity.thrsys.ThrInvWarehouseEntity">
|
|
|
|
parameterType="com.glxp.api.entity.thrsys.ThrInvWarehouseEntity">
|
|
|
|
replace
|
|
|
|
replace
|
|
|
|
INTO thr_inv_warehouse
|
|
|
|
INTO thr_inv_warehouse
|
|
|
|
(id, code, `name`, parentId, remark, thirdSysFk)
|
|
|
|
(id, code, `name`, parentId, remark, thirdSysFk, updateTime)
|
|
|
|
values (
|
|
|
|
values (
|
|
|
|
#{id},
|
|
|
|
#{id},
|
|
|
|
#{code},
|
|
|
|
#{code},
|
|
|
|
#{name},
|
|
|
|
#{name},
|
|
|
|
#{parentId},
|
|
|
|
#{parentId},
|
|
|
|
#{remark},
|
|
|
|
#{remark},
|
|
|
|
#{thirdSysFk}
|
|
|
|
#{thirdSysFk},
|
|
|
|
|
|
|
|
#{updateTime}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertThrInvWarehouses" parameterType="java.util.List">
|
|
|
|
<insert id="insertThrInvWarehouses" parameterType="java.util.List">
|
|
|
|
replace INTO thr_inv_warehouse
|
|
|
|
replace INTO thr_inv_warehouse
|
|
|
|
(id, code, `name`, parentId, remark, thirdSysFk)
|
|
|
|
(id, code, `name`, parentId, remark, thirdSysFk,updateTime)
|
|
|
|
VALUES
|
|
|
|
VALUES
|
|
|
|
<foreach collection="thrDeptEntities" item="item" index="index"
|
|
|
|
<foreach collection="thrDeptEntities" item="item" index="index"
|
|
|
|
separator=",">
|
|
|
|
separator=",">
|
|
|
|
(
|
|
|
|
(
|
|
|
|
#{item.id}, #{item.code},
|
|
|
|
#{item.id}, #{item.code},
|
|
|
|
#{item.name}, #{item.parentId},
|
|
|
|
#{item.name}, #{item.parentId},
|
|
|
|
#{item.remark}, #{item.thirdSysFk})
|
|
|
|
#{item.remark}, #{item.thirdSysFk}, #{item.updateTime})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -118,6 +119,7 @@
|
|
|
|
<if test="parentId != null">parentId=#{parentId},</if>
|
|
|
|
<if test="parentId != null">parentId=#{parentId},</if>
|
|
|
|
<if test="remark != null">remark=#{remark},</if>
|
|
|
|
<if test="remark != null">remark=#{remark},</if>
|
|
|
|
<if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if>
|
|
|
|
<if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if>
|
|
|
|
|
|
|
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
WHERE id = #{id}
|
|
|
|
WHERE id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|