|
|
@ -31,6 +31,9 @@
|
|
|
|
<if test="lastUpdateTime!=null and lastUpdateTime!=''">
|
|
|
|
<if test="lastUpdateTime!=null and lastUpdateTime!=''">
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="thirdSysFk != null">
|
|
|
|
|
|
|
|
and thirdSysFk = #{thirdSysFk}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -64,6 +67,9 @@
|
|
|
|
<if test="isDefault != '' and isDefault != null">
|
|
|
|
<if test="isDefault != '' and isDefault != null">
|
|
|
|
AND isDefault = #{isDefault}
|
|
|
|
AND isDefault = #{isDefault}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="thirdSysFk != null">
|
|
|
|
|
|
|
|
AND thirdSysFk = #{thirdSysFk}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -71,16 +77,16 @@
|
|
|
|
parameterType="com.glxp.sale.admin.entity.thrsys.ThrInvWarehouseEntity">
|
|
|
|
parameterType="com.glxp.sale.admin.entity.thrsys.ThrInvWarehouseEntity">
|
|
|
|
insert INTO thr_inv_warehouse
|
|
|
|
insert INTO thr_inv_warehouse
|
|
|
|
(pid, code, name, advanceType, isDefault,
|
|
|
|
(pid, code, name, advanceType, isDefault,
|
|
|
|
status, updateTime, remark)
|
|
|
|
status, updateTime, remark,thirdSysFk)
|
|
|
|
values (#{pid}, #{code},
|
|
|
|
values (#{pid}, #{code},
|
|
|
|
#{name}, #{advanceType}, #{isDefault},
|
|
|
|
#{name}, #{advanceType}, #{isDefault},
|
|
|
|
#{status}, #{updateTime},
|
|
|
|
#{status}, #{updateTime},
|
|
|
|
#{remark})
|
|
|
|
#{remark},#{thirdSysFk})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertThrInvWarehouses" parameterType="java.util.List">
|
|
|
|
<insert id="insertThrInvWarehouses" parameterType="java.util.List">
|
|
|
|
insert INTO thr_inv_warehouse
|
|
|
|
insert INTO thr_inv_warehouse
|
|
|
|
(pid, code, name, advanceType, isDefault,
|
|
|
|
(pid, code, name, advanceType, isDefault,
|
|
|
|
status, updateTime, remark)
|
|
|
|
status, updateTime, remark,thirdSysFk)
|
|
|
|
VALUES
|
|
|
|
VALUES
|
|
|
|
<foreach collection="thrInvWarehouseEntitys" item="item" index="index"
|
|
|
|
<foreach collection="thrInvWarehouseEntitys" item="item" index="index"
|
|
|
|
separator=",">
|
|
|
|
separator=",">
|
|
|
@ -88,7 +94,7 @@
|
|
|
|
#{item.pid}, #{item.code},
|
|
|
|
#{item.pid}, #{item.code},
|
|
|
|
#{item.name}, #{item.advanceType}, #{item.isDefault},
|
|
|
|
#{item.name}, #{item.advanceType}, #{item.isDefault},
|
|
|
|
#{item.status}, #{item.updateTime},
|
|
|
|
#{item.status}, #{item.updateTime},
|
|
|
|
#{item.remark})
|
|
|
|
#{item.remark},#{item.thirdSysFk})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -109,6 +115,7 @@
|
|
|
|
<if test="status != null">status=#{status},</if>
|
|
|
|
<if test="status != null">status=#{status},</if>
|
|
|
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
|
|
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
|
|
|
<if test="remark != null">remark=#{remark},</if>
|
|
|
|
<if test="remark != null">remark=#{remark},</if>
|
|
|
|
|
|
|
|
<if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
WHERE id = #{id}
|
|
|
|
WHERE id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
@ -146,6 +153,30 @@
|
|
|
|
<if test="level != null">
|
|
|
|
<if test="level != null">
|
|
|
|
AND `level` = #{level}
|
|
|
|
AND `level` = #{level}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="thirdSysFk != null">
|
|
|
|
|
|
|
|
AND `thirdSysFk` = #{thirdSysFk}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertInvWarehouses">
|
|
|
|
|
|
|
|
replace into thr_inv_warehouse (pid, code, name, advanceType, isDefault, status, updateTime, remark, level,
|
|
|
|
|
|
|
|
pcode,
|
|
|
|
|
|
|
|
thirdSysFk)
|
|
|
|
|
|
|
|
values
|
|
|
|
|
|
|
|
<foreach collection="thrInvWarehouseEntitys" index="index" item="item" separator=",">
|
|
|
|
|
|
|
|
(#{item.pid},
|
|
|
|
|
|
|
|
#{item.code},
|
|
|
|
|
|
|
|
#{item.name},
|
|
|
|
|
|
|
|
#{item.advanceType},
|
|
|
|
|
|
|
|
#{item.isDefault},
|
|
|
|
|
|
|
|
#{item.status},
|
|
|
|
|
|
|
|
#{item.updateTime},
|
|
|
|
|
|
|
|
#{item.remark},
|
|
|
|
|
|
|
|
#{item.level},
|
|
|
|
|
|
|
|
#{item.pcode},
|
|
|
|
|
|
|
|
#{item.thirdSysFk})
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|