|
|
|
@ -747,4 +747,45 @@
|
|
|
|
|
where is_deleted = 0 |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="exportPanDataWithPackage" resultType="com.logpm.warehouse.excel.QuestContrastPackageExcelVO"> |
|
|
|
|
select order_code orderCode, |
|
|
|
|
waybill_number waybillNumber, |
|
|
|
|
order_package_code orderPackageCode, |
|
|
|
|
material_code materialCode, |
|
|
|
|
material_name materialName, |
|
|
|
|
firsts firsts, |
|
|
|
|
`second` seconds, |
|
|
|
|
third_product thirdProduct, |
|
|
|
|
case when quest_type = 1 then '随机' |
|
|
|
|
when quest_type = 2 then '库位' |
|
|
|
|
when quest_type = 3 then '订单' |
|
|
|
|
when quest_type = 4 then '托盘' |
|
|
|
|
else '未知' |
|
|
|
|
end questType, |
|
|
|
|
case when quest_target = 1 then '订制品' |
|
|
|
|
when quest_target = 2 then '零担' |
|
|
|
|
when quest_target = 3 then '库存品' |
|
|
|
|
else '未知' |
|
|
|
|
end questTarget, |
|
|
|
|
case when quest_status = 1 then '已盘点' |
|
|
|
|
when quest_status = 3 then '已排除' |
|
|
|
|
else '未盘点' |
|
|
|
|
end questStatus, |
|
|
|
|
category_name categoryName, |
|
|
|
|
brand_name brandName, |
|
|
|
|
market_name marketName, |
|
|
|
|
stock_num stockNum, |
|
|
|
|
incoming_batch incomingBatch, |
|
|
|
|
send_warehouse_name sendWarehouseName, |
|
|
|
|
tray_name trayName, |
|
|
|
|
position_code positionCode, |
|
|
|
|
new_tray_name newTrayName, |
|
|
|
|
IFNULL(grounding_position_code,position_code) groundingPositionCode, |
|
|
|
|
inventory_time inventoryTime, |
|
|
|
|
inventory_user inventoryUser |
|
|
|
|
from ${param.questNum} |
|
|
|
|
where is_deleted = 0 |
|
|
|
|
AND quest_status = 1 |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
|