|
|
|
@ -3,7 +3,7 @@
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.op.device.mapper.SparePartsLedgerMapper">
|
|
|
|
<mapper namespace="com.op.device.mapper.SparePartsLedgerMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="SparePartsLedger" id="SparePartsLedgerResult">
|
|
|
|
<resultMap type="SparePartsLedger" id="SparePartsLedgerResult">
|
|
|
|
<result property="storageId" column="storage_id" />
|
|
|
|
<result property="storageId" column="storage_id" />
|
|
|
|
<result property="storageType" column="storage_type" />
|
|
|
|
<result property="storageType" column="storage_type" />
|
|
|
|
@ -94,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSparePartsLedgerList" parameterType="SparePartsLedger" resultMap="SparePartsLedgerResult">
|
|
|
|
<select id="selectSparePartsLedgerList" parameterType="SparePartsLedger" resultMap="SparePartsLedgerResult">
|
|
|
|
<include refid="selectSparePartsLedgerVo"/>
|
|
|
|
<include refid="selectSparePartsLedgerVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="storageId != null and storageId != ''"> and storage_id = #{storageId}</if>
|
|
|
|
<if test="storageId != null and storageId != ''"> and storage_id = #{storageId}</if>
|
|
|
|
<if test="whCode != null and whCode != ''"> and wh_code = #{whCode}</if>
|
|
|
|
<if test="whCode != null and whCode != ''"> and wh_code = #{whCode}</if>
|
|
|
|
<if test="regionCode != null and regionCode != ''"> and region_code = #{regionCode}</if>
|
|
|
|
<if test="regionCode != null and regionCode != ''"> and region_code = #{regionCode}</if>
|
|
|
|
@ -143,7 +143,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
and del_flag = '0'
|
|
|
|
and del_flag = '0'
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSparePartsLedgerByStorageId" parameterType="String" resultMap="SparePartsLedgerResult">
|
|
|
|
<select id="selectSparePartsLedgerByStorageId" parameterType="String" resultMap="SparePartsLedgerResult">
|
|
|
|
<include refid="selectSparePartsLedgerVo"/>
|
|
|
|
<include refid="selectSparePartsLedgerVo"/>
|
|
|
|
where storage_id = #{storageId}
|
|
|
|
where storage_id = #{storageId}
|
|
|
|
@ -362,7 +362,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="deleteSparePartsLedgerByStorageId" parameterType="String">
|
|
|
|
<update id="deleteSparePartsLedgerByStorageId" parameterType="String">
|
|
|
|
update equ_spareparts_ledger
|
|
|
|
update equ_spareparts_ledger
|
|
|
|
set del_flag = '1'
|
|
|
|
set del_flag = '1'
|
|
|
|
where storage_id = #{storageId}
|
|
|
|
where storage_id = #{storageId}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
@ -394,4 +394,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
where material_code = #{materialCode}
|
|
|
|
where material_code = #{materialCode}
|
|
|
|
and del_flag = '0'
|
|
|
|
and del_flag = '0'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|
|