2024-03-15 09:05:05 +08:00
|
|
|
<?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.storageLocation.mapper.StorageLocationMapper">
|
|
|
|
|
|
|
|
<resultMap type="StorageLocation" id="StorageLocationResult">
|
|
|
|
<result property="materialBh" column="materialBh" />
|
2024-03-15 11:00:31 +08:00
|
|
|
<result property="materialZlh" column="materialZlh" />
|
2024-03-15 09:05:05 +08:00
|
|
|
<result property="materialXingh" column="materialXingh" />
|
|
|
|
<result property="materialGuig" column="materialGuig" />
|
|
|
|
<result property="materialDiany" column="materialDiany" />
|
|
|
|
<result property="materialMs" column="materialMs" />
|
|
|
|
<result property="materialState" column="materialState" />
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="selectStorageLocationAList" parameterType="StorageLocation" resultMap="StorageLocationResult">
|
2024-03-15 11:00:31 +08:00
|
|
|
select materialBh, materialZlh, materialXingh, materialGuig, materialDiany, materialMs, materialState
|
2024-03-15 09:05:05 +08:00
|
|
|
from storageLocation where materialBh like 'A%'
|
|
|
|
</select>
|
|
|
|
<select id="selectStorageLocationBList" parameterType="StorageLocation" resultMap="StorageLocationResult">
|
2024-03-15 11:00:31 +08:00
|
|
|
select materialBh, materialZlh, materialXingh, materialGuig, materialDiany, materialMs, materialState
|
2024-03-15 09:05:05 +08:00
|
|
|
from storageLocation where materialBh like 'B%'
|
|
|
|
</select>
|
|
|
|
<select id="selectStorageLocationCList" parameterType="StorageLocation" resultMap="StorageLocationResult">
|
2024-03-15 11:00:31 +08:00
|
|
|
select materialBh, materialZlh, materialXingh, materialGuig, materialDiany, materialMs, materialState
|
2024-03-15 09:05:05 +08:00
|
|
|
from storageLocation where materialBh like 'C%'
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<update id="addStorageLocation" parameterType="StorageLocation">
|
|
|
|
update storageLocation
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
2024-03-15 11:00:31 +08:00
|
|
|
<if test="materialZlh != null and materialZlh != ''">materialZlh = #{materialZlh},</if>
|
2024-03-15 09:05:05 +08:00
|
|
|
<if test="materialXingh != null and materialXingh != ''">materialXingh = #{materialXingh},</if>
|
|
|
|
<if test="materialGuig != null and materialGuig != ''">materialGuig = #{materialGuig},</if>
|
|
|
|
<if test="materialDiany != null and materialDiany != ''">materialDiany = #{materialDiany},</if>
|
|
|
|
<if test="materialMs != null and materialMs != ''">materialMs = #{materialMs},</if>
|
|
|
|
materialState = '1'
|
|
|
|
</trim>
|
|
|
|
where materialBh = #{materialBh}
|
|
|
|
</update>
|
|
|
|
|
2024-03-15 15:41:34 +08:00
|
|
|
<update id="confirmStorageLocation">
|
|
|
|
update storageLocation set materialState = '0'
|
|
|
|
<where>
|
|
|
|
materialBh
|
|
|
|
<foreach collection="array" item="materialBh" index="index" open="in (" close=")" separator=",">
|
|
|
|
#{materialBh}
|
|
|
|
</foreach>
|
|
|
|
</where>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
2024-03-15 09:05:05 +08:00
|
|
|
</mapper>
|