diff --git a/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/mapper/orderImport/OrderImportTempDataMapper.xml b/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/mapper/orderImport/OrderImportTempDataMapper.xml
index 7c2119260..dd5cc8b06 100644
--- a/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/mapper/orderImport/OrderImportTempDataMapper.xml
+++ b/cf-module-prod-plan/cf-module-prod-plan-biz/src/main/resources/mapper/orderImport/OrderImportTempDataMapper.xml
@@ -112,14 +112,14 @@
select count(1)
from (select room_name
from order_import_temp_data
- where task_id = #{taskId} and type != 0
+ where task_id = #{taskId} and type != '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@ORDER.type}'
group by room_name) temp
select room_name
from order_import_temp_data
- where task_id = #{reqVO.taskId} and type != 0
+ where task_id = #{reqVO.taskId} and type != '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@ORDER.type}'
group by room_name
order by sort
@@ -131,14 +131,14 @@
select count(1)
from (select body_name
from order_import_temp_data
- where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and type != 0
+ where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and type != '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@ORDER.type}'
group by body_name) temp
- select body_name,sum(case type when 1 then num else 0 end) as bodyPlateNum
+ select body_name,sum(case type when '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@PLATE.type}' then num else 0 end) as bodyPlateNum
from order_import_temp_data
- where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and type != 0
+ where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and type != '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@ORDER.type}'
group by body_name
order by sort
@@ -150,14 +150,14 @@
select count(1)
from (select group_type_name
from order_import_temp_data
- where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and body_name = #{reqVO.bodyName} and type != 0
+ where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and body_name = #{reqVO.bodyName} and type != '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@ORDER.type}'
group by group_type_name) temp
select group_type_name, count(1) as count
from order_import_temp_data
- where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and body_name = #{reqVO.bodyName} and type != 0
+ where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and body_name = #{reqVO.bodyName} and type != '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@ORDER.type}'
group by group_type_name
order by sort
@@ -169,7 +169,7 @@
select count(1)
from (select group_name
from order_import_temp_data
- where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and body_name = #{reqVO.bodyName} and type != 0
+ where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and body_name = #{reqVO.bodyName} and type != '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@ORDER.type}'
and group_type_name = #{reqVO.groupTypeName}
@@ -182,9 +182,9 @@
- select group_name, sum(case type when 1 then num else 0 end) as groupNameNum
+ select group_name, sum(case type when '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@PLATE.type}' then num else 0 end) as groupNameNum
from order_import_temp_data
- where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and body_name = #{reqVO.bodyName} and type != 0
+ where task_id = #{reqVO.taskId} and room_name = #{reqVO.roomName} and body_name = #{reqVO.bodyName} and type != '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@ORDER.type}'
and group_type_name = #{reqVO.groupTypeName}
@@ -249,6 +249,6 @@
select *
from order_import_temp_data
- where task_id = #{reqVO.taskId} and type = 2 and inner_goods_id = #{reqVO.goodsId}
+ where task_id = #{reqVO.taskId} and type = '${@com.cf.imes.module.executor.enums.OrderImportTmpDataTypeEnum@PART.type}' and inner_goods_id = #{reqVO.goodsId}
\ No newline at end of file