@ -34,4 +34,5 @@ public interface CodesTempDao {
List<WarehouseEntity> findByOrderIdAndCode(WarehouseQueryRequest warehouseQueryRequest);
void deleteByOrderId(String orderId);
}
@ -543,7 +543,7 @@ public class OrderServiceImpl implements OrderService {
//删除码
codesDao.deleteByOrderId(id);
codesTempDao.deleteByOrderId(id);
} catch (Exception e) {
throw new RuntimeException("删除单据失败");
@ -184,4 +184,9 @@
FROM io_codes_temp
WHERE id = #{id}
</delete>
<delete id="deleteByOrderId">
delete
from io_codes_temp
where orderId = #{orderId};
</mapper>