ArchivesDepotMapper.xml
1.03 KB
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.service.mapper.ArchivesDepotMapper">
<insert id="insert" parameterType="com.ruoyi.service.domain.ArchivesDepot">
insert into archives_depot(
<if test="archivesId != null and archivesId != ''">archivesId,</if>
<if test="depotNodeId != null and depotNodeId != ''">depotNodeId,</if>
<if test="status != null and status != ''">status,</if>
createTime
)values(
<if test="archivesId != null and archivesId != ''">#{archivesId},</if>
<if test="depotNodeId != null and depotNodeId != ''">#{depotNodeId},</if>
<if test="status != null and status != ''">#{status},</if>
sysdate()
)
</insert>
<update id="shelveDown" parameterType="String">
update archives_depot set
status = '2',
updateTime = sysdate()
where status ='1' and archivesId in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>