|
@@ -275,6 +275,7 @@
|
|
|
and a.account_sleeve = #{accountSleeve}
|
|
|
</if>
|
|
|
</trim>
|
|
|
+ order by a.id desc
|
|
|
</select>
|
|
|
<!--查询本地库存.gs库存.录入库存 数量-->
|
|
|
<select id="getInventoryLocality" resultType="java.util.Map">
|
|
@@ -314,4 +315,70 @@
|
|
|
</if>
|
|
|
</foreach>
|
|
|
</select>
|
|
|
+ <!--盘点录入信息导出-->
|
|
|
+ <select id="exportEntering" resultType="java.util.LinkedHashMap">
|
|
|
+ select
|
|
|
+ a.wllb_code,
|
|
|
+ b.name as name ,
|
|
|
+ c.storage_location_name as storageLocationName,
|
|
|
+ a.total,
|
|
|
+ a.amount
|
|
|
+ from tld_plate a
|
|
|
+ left join tld_material b on a.wllb_code = b.code
|
|
|
+ left join tld_storage_location c on a.storage_location_code = c.storage_location_code
|
|
|
+ <trim prefix="WHERE" prefixOverrides="and |or">
|
|
|
+ <if test="wllbCodes != null and wllbCodes != ''">
|
|
|
+ and a.wllb_code like CONCAT(CONCAT('%', #{wllbCodes}), '%')
|
|
|
+ </if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and b.name like CONCAT(CONCAT('%', #{name}), '%')
|
|
|
+ </if>
|
|
|
+ <if test="storageLocationName != null and storageLocationName != ''">
|
|
|
+ and c.storageLocationName like CONCAT(CONCAT('%', #{storageLocationName}), '%')
|
|
|
+ </if>
|
|
|
+ <if test="wllbCodes != null and wllbCodes != ''">
|
|
|
+ and a.wllb_code like CONCAT(CONCAT('%', #{wllbCodes}), '%')
|
|
|
+ </if>
|
|
|
+ <if test="materialId != null and materialId != ''">
|
|
|
+ and a.material_id = #{materialId}
|
|
|
+ </if>
|
|
|
+ <if test="amount != null and amount != ''">
|
|
|
+ and a.amount = #{amount}
|
|
|
+ </if>
|
|
|
+ <if test="total != null and total != ''">
|
|
|
+ and a.total = #{total}
|
|
|
+ </if>
|
|
|
+ <if test="storageLocationCodes != null and storageLocationCodes != ''">
|
|
|
+ and a.storage_location_code like CONCAT(CONCAT('%', #{storageLocationCodes}), '%')
|
|
|
+ </if>
|
|
|
+ <if test="plateId != null and plateId != ''">
|
|
|
+ and a.plate_id = #{plateId}
|
|
|
+ </if>
|
|
|
+ <if test="accountSleeve != null and accountSleeve != ''">
|
|
|
+ and a.account_sleeve = #{accountSleeve}
|
|
|
+ </if>
|
|
|
+ <if test="supplierId != null and supplierId != ''">
|
|
|
+ and a.supplier_id = #{supplierId}
|
|
|
+ </if>
|
|
|
+ <if test="serial != null and serial != ''">
|
|
|
+ and a.serial = #{serial}
|
|
|
+ </if>
|
|
|
+ <if test="attribute != null and attribute != ''">
|
|
|
+ and a.attribute = #{attribute}
|
|
|
+ </if>
|
|
|
+ <if test="uuid != null and uuid != ''">
|
|
|
+ and a.uuid = #{uuid}
|
|
|
+ </if>
|
|
|
+ <if test="scrq != null and scrq != ''">
|
|
|
+ and a.scrq like CONCAT(CONCAT('%', #{scrq}), '%')
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
+ and a.sqrq <![CDATA[>=]]> #{startTime}
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
+ and a.sqrq <![CDATA[<=]]> #{endTime}
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ order by a.scrq desc
|
|
|
+ </select>
|
|
|
</mapper>
|